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

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -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:
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name
- kappa() : heat conduction at patch. Gets supplied how to lookup/calculate defined by 'kappa'
'kappa': - 'fluidThermo' : use fluidThermo and default
- 'lookup' : lookup volScalarField (or volSymmTensorField) with name compressible::turbulenceModel to calculate kappa
defined in 'kappaName' - 'solidThermo' : use solidThermo kappa()
- 'fluidThermo' : use fluidThermo and default - 'directionalSolidThermo': uses look up for volSymmTensorField for
compressible::turbulenceModel to calculate kappa transformed kappa vector. Field name definable in 'alphaAni',
- 'solidThermo' : use solidThermo kappa() named 'Anialpha' in solid solver by default
- 'directionalSolidThermo': uses look up for volSymmTensorField for
transformed kappa vector. Field name definable in 'alphaAniName',
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