temperatureCoupledBase: Rationalized the selection of the method for obtaining the thermal conductivity

kappa -> kappaMethod
kappaName -> kappa
This commit is contained in:
Henry Weller
2016-05-21 20:26:23 +01:00
parent b00d967c8b
commit 29c985feec
2 changed files with 24 additions and 27 deletions

View File

@ -76,9 +76,9 @@ Foam::temperatureCoupledBase::temperatureCoupledBase
) )
: :
patch_(patch), patch_(patch),
method_(KMethodTypeNames_.read(dict.lookup("kappa"))), method_(KMethodTypeNames_.read(dict.lookup("kappaMethod"))),
kappaName_(dict.lookup("kappaName")), kappaName_(dict.lookupOrDefault<word>("kappa", "none")),
alphaAniName_(dict.lookupOrDefault<word>("alphaAniName","Anialpha")) alphaAniName_(dict.lookupOrDefault<word>("alphaAni","Anialpha"))
{} {}
@ -224,9 +224,10 @@ Foam::tmp<Foam::scalarField> Foam::temperatureCoupledBase::kappa
void Foam::temperatureCoupledBase::write(Ostream& os) const void Foam::temperatureCoupledBase::write(Ostream& os) const
{ {
os.writeKeyword("kappa") << KMethodTypeNames_[method_] os.writeKeyword("kappaMethod") << KMethodTypeNames_[method_]
<< token::END_STATEMENT << nl; << token::END_STATEMENT << nl;
os.writeKeyword("kappaName") << kappaName_ << token::END_STATEMENT << nl; os.writeKeyword("kappa") << kappaName_ << token::END_STATEMENT << nl;
os.writeKeyword("alphaAni") << alphaAniName_ << token::END_STATEMENT << nl;
} }

View File

@ -25,28 +25,24 @@ Class
Foam::temperatureCoupledBase Foam::temperatureCoupledBase
Description Description
Common functions for use in temperature coupled boundaries. Common functions used in temperature coupled boundaries.
For now only provides the following methods: The thermal conductivity \c kappa may be obtained by the following methods:
- kappa() : heat conduction at patch. Gets supplied how to lookup/calculate
'kappa':
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name - 'lookup' : lookup volScalarField (or volSymmTensorField) with name
defined in 'kappaName' defined by 'kappa'
- 'fluidThermo' : use fluidThermo and default - 'fluidThermo' : use fluidThermo and default
compressible::turbulenceModel to calculate kappa compressible::turbulenceModel to calculate kappa
- 'solidThermo' : use solidThermo kappa() - 'solidThermo' : use solidThermo kappa()
- 'directionalSolidThermo': uses look up for volSymmTensorField for - 'directionalSolidThermo': uses look up for volSymmTensorField for
transformed kappa vector. Field name definable in 'alphaAniName', transformed kappa vector. Field name definable in 'alphaAni',
named 'Anialpha' in solid solver by default named 'Anialpha' in solid solver by default
\heading Keywords provided by this class \heading Keywords provided by this class
\table \table
Property | Description | Required | Default value Property | Description | Required | Default value
kappa | heat conduction type at patch, as listed above | yes | kappaMethod | Thermal conductivity method | yes |
kappaName | Name of thermal conductivity field | yes | kappa | Name of thermal conductivity field | no | none
alphaAniName | name of the non-isotropic alpha | no | 'Anialpha' alphaAni | Name of the non-isotropic alpha | no | Anialpha
\endtable \endtable
Usage examples: Usage examples:
@ -54,9 +50,9 @@ Description
nonIsotropicWall nonIsotropicWall
{ {
... ...
kappa directionalSolidThermo; kappaMethod directionalSolidThermo;
kappaName none; kappa none;
alphaAniName Anialpha; alphaAni Anialpha;
... ...
} }
\endverbatim \endverbatim