45 "directionalSolidThermo",
60 const word& calculationType,
61 const word& kappaName,
62 const word& alphaAniName
66 method_(KMethodTypeNames_[calculationType]),
67 kappaName_(kappaName),
68 alphaAniName_(alphaAniName)
79 method_(KMethodTypeNames_.read(dict.
lookup(
"kappa"))),
80 kappaName_(dict.
lookup(
"kappaName")),
106 const label patchI = patch_.index();
121 const turbulenceModel& turbModel =
124 return turbModel.kappaEff(patchI);
131 return thermo.
kappa(patchI);
137 "temperatureCoupledBase::kappa(const scalarField&) const" 139 <<
"Kappa defined to employ " << KMethodTypeNames_[method_]
140 <<
" method, but thermo package not available" 152 return thermo.
kappa(patchI);
156 case mtDirectionalSolidThermo:
195 return n & KWall &
n;
201 "temperatureCoupledBase::kappa(const scalarField&) const" 203 <<
"Did not find field " << kappaName_
204 <<
" on mesh " << mesh.
name() <<
" patch " << patch_.name()
206 <<
"Please set 'kappa' to one of " 207 << KMethodTypeNames_.toc()
208 <<
" and 'kappaName' to the name of the volScalar" 209 <<
" or volSymmTensor field (if kappa=lookup)" 220 "temperatureCoupledBase::kappa(const scalarField&) const" 222 <<
"Unimplemented method " << KMethodTypeNames_[method_] <<
nl 223 <<
"Please set 'kappa' to one of " << KMethodTypeNames_.toc()
224 <<
" and 'kappaName' to the name of the volScalar" 225 <<
" or volSymmTensor field (if kappa=lookup)"
static const NamedEnum< KMethodType, 4 > KMethodTypeNames_
const word kappaName_
Name of thermal conductivity field (if looked up from database)
Mesh data needed to do the Finite Volume discretisation.
const word & name() const
Return reference to name.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
bool foundObject(const word &name) const
Is the named Type found?
virtual tmp< volScalarField > kappa() const =0
Thermal diffusivity for temperature of mixture [J/m/s/K].
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void write(Ostream &) const
Write.
virtual volScalarField & p()
Pressure [Pa].
errorManipArg< error, int > exit(error &err, const int errNo=1)
const KMethodType method_
How to get K.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual tmp< volScalarField > Cp() const =0
Heat capacity at constant pressure [J/kg/K].
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Fundamental solid thermodynamic properties.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Fundamental fluid thermodynamic properties.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Initialise the NamedEnum HashTable from the static list of names.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
temperatureCoupledBase(const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName)
Construct from patch and K name.
const polyMesh & mesh() const
Return the mesh reference.
KMethodType
Type of supplied Kappa.
tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
Common functions for use in temperature coupled boundaries.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word propertiesName
Default name of the turbulence properties dictionary.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const word dictName() const
Return the local dictionary name (final part of scoped name)
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
A class for managing temporary objects.
const word alphaAniName_
Name of the non-Isotropic alpha (default: Anialpha)