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