mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Minor code clean-up
This commit is contained in:
@ -136,7 +136,7 @@ boundaryRadiationPropertiesFvPatchField
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (dict.found("transmissivityModel"))
|
// if (dict.found("transmissivityModel"))
|
||||||
{
|
{
|
||||||
transmissivity_.reset
|
transmissivity_.reset
|
||||||
(
|
(
|
||||||
@ -230,9 +230,11 @@ transmissiveModel() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::scalarField> Foam::radiation::
|
Foam::tmp<Foam::scalarField>
|
||||||
boundaryRadiationPropertiesFvPatchField::
|
Foam::radiation::boundaryRadiationPropertiesFvPatchField::emissivity
|
||||||
emissivity(const label bandI) const
|
(
|
||||||
|
const label bandI
|
||||||
|
) const
|
||||||
{
|
{
|
||||||
switch (method_)
|
switch (method_)
|
||||||
{
|
{
|
||||||
@ -304,8 +306,8 @@ emissivity(const label bandI) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::scalarField> Foam::radiation::
|
Foam::tmp<Foam::scalarField>
|
||||||
boundaryRadiationPropertiesFvPatchField::absorptivity
|
Foam::radiation::boundaryRadiationPropertiesFvPatchField::absorptivity
|
||||||
(
|
(
|
||||||
const label bandI
|
const label bandI
|
||||||
) const
|
) const
|
||||||
@ -380,9 +382,11 @@ boundaryRadiationPropertiesFvPatchField::absorptivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::scalarField> Foam::radiation::
|
Foam::tmp<Foam::scalarField>
|
||||||
boundaryRadiationPropertiesFvPatchField::
|
Foam::radiation::boundaryRadiationPropertiesFvPatchField::transmissivity
|
||||||
transmissivity(const label bandI) const
|
(
|
||||||
|
const label bandI
|
||||||
|
) const
|
||||||
{
|
{
|
||||||
switch (method_)
|
switch (method_)
|
||||||
{
|
{
|
||||||
@ -457,9 +461,11 @@ transmissivity(const label bandI) const
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::scalarField> Foam::radiation::
|
Foam::tmp<Foam::scalarField>
|
||||||
boundaryRadiationPropertiesFvPatchField::
|
Foam::radiation::boundaryRadiationPropertiesFvPatchField::reflectivity
|
||||||
reflectivity(const label bandI) const
|
(
|
||||||
|
const label bandI
|
||||||
|
) const
|
||||||
{
|
{
|
||||||
const tmp<scalarField> tt = transmissivity(bandI);
|
const tmp<scalarField> tt = transmissivity(bandI);
|
||||||
const tmp<scalarField> ta = absorptivity(bandI);
|
const tmp<scalarField> ta = absorptivity(bandI);
|
||||||
@ -468,16 +474,18 @@ reflectivity(const label bandI) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::radiation::boundaryRadiationPropertiesFvPatchField::
|
void Foam::radiation::boundaryRadiationPropertiesFvPatchField::write
|
||||||
write(Ostream& os) const
|
(
|
||||||
|
Ostream& os
|
||||||
|
) const
|
||||||
{
|
{
|
||||||
calculatedFvPatchScalarField::write(os);
|
calculatedFvPatchScalarField::write(os);
|
||||||
|
|
||||||
os.writeKeyword("mode") << methodTypeNames_[method_]
|
os.writeKeyword("mode") << methodTypeNames_[method_]
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
|
|
||||||
switch (method_)
|
switch (method_)
|
||||||
{
|
{
|
||||||
case MODEL:
|
case MODEL:
|
||||||
{
|
{
|
||||||
word modelType
|
word modelType
|
||||||
|
|||||||
Reference in New Issue
Block a user