Common functions used in temperature coupled boundaries. More...
Public Types | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup } |
Type of supplied Kappa. More... | |
Public Member Functions | |
temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName, const word &alphaName) | |
Construct from patch and K name. More... | |
temperatureCoupledBase (const fvPatch &patch, const dictionary &dict) | |
Construct from patch and dictionary. More... | |
temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base) | |
Construct from patch and temperatureCoupledBase. More... | |
virtual | ~temperatureCoupledBase ()=default |
Destructor. More... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const |
Name of thermal conductivity field. More... | |
const word & | alphaName () const |
Name of thermal diffusivity field. More... | |
virtual tmp< scalarField > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
virtual tmp< scalarField > | alpha (const scalarField &Tp) const |
Given patch temperature calculate corresponding alphaEff field. More... | |
void | write (Ostream &os) const |
Write. More... | |
Protected Attributes | |
const fvPatch & | patch_ |
Underlying patch. More... | |
const KMethodType | method_ |
How to get K. More... | |
const word | kappaName_ |
Name of thermal conductivity field (if looked up from database) More... | |
const word | alphaAniName_ |
Name of the non-Isotropic alpha (default: Anialpha) More... | |
const word | alphaName_ |
Name of thermal diffusivity. More... | |
Static Protected Attributes | |
static const Enum< KMethodType > | KMethodTypeNames_ |
Common functions used in temperature coupled boundaries.
The thermal conductivity kappa
may be obtained by the following methods:
Property | Description | Required | Default |
---|---|---|---|
kappaMethod | Thermal conductivity method | yes | |
kappa | Name of thermal conductivity field | no | none |
alpha | Name of thermal diffusivity field | no | none |
alphaAni | Name of non-isotropic alpha | no | none |
nonIsotropicWall { ... kappaMethod directionalSolidThermo; kappa none; alphaAni Anialpha; ... }
Definition at line 110 of file temperatureCoupledBase.H.
enum KMethodType |
Type of supplied Kappa.
Enumerator | |
---|---|
mtFluidThermo | |
mtSolidThermo | |
mtDirectionalSolidThermo | |
mtLookup |
Definition at line 117 of file temperatureCoupledBase.H.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const word & | calculationMethod, | ||
const word & | kappaName, | ||
const word & | alphaAniName, | ||
const word & | alphaName | ||
) |
Construct from patch and K name.
Definition at line 53 of file temperatureCoupledBase.C.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const dictionary & | dict | ||
) |
Construct from patch and dictionary.
Definition at line 70 of file temperatureCoupledBase.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and Foam::nl.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const temperatureCoupledBase & | base | ||
) |
Construct from patch and temperatureCoupledBase.
Definition at line 122 of file temperatureCoupledBase.C.
|
virtualdefault |
Destructor.
|
inline |
Method to obtain K.
Definition at line 184 of file temperatureCoupledBase.H.
References temperatureCoupledBase::KMethodTypeNames_, and temperatureCoupledBase::method_.
|
inline |
Name of thermal conductivity field.
Definition at line 190 of file temperatureCoupledBase.H.
References temperatureCoupledBase::kappaName_.
|
inline |
Name of thermal diffusivity field.
Definition at line 196 of file temperatureCoupledBase.H.
References temperatureCoupledBase::alphaName_.
|
virtual |
Given patch temperature calculate corresponding K field.
Definition at line 138 of file temperatureCoupledBase.C.
References dictName(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::constant::electromagnetic::kappa, basicThermo::kappa(), mesh, n, and Foam::nl.
Referenced by lumpedMassWallTemperatureFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().
|
virtual |
Given patch temperature calculate corresponding alphaEff field.
Definition at line 284 of file temperatureCoupledBase.C.
References basicThermo::alpha(), dictName(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), mesh, n, and Foam::nl.
Referenced by filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 426 of file temperatureCoupledBase.C.
References temperatureCoupledBase::alphaAniName_, temperatureCoupledBase::alphaName_, temperatureCoupledBase::kappaName_, temperatureCoupledBase::KMethodTypeNames_, temperatureCoupledBase::method_, and Ostream::writeEntry().
Referenced by fixedIncidentRadiationFvPatchScalarField::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), externalWallHeatFluxTemperatureFvPatchScalarField::write(), and humidityTemperatureCoupledMixedFvPatchScalarField::write().
|
staticprotected |
Definition at line 130 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::KMethod(), and temperatureCoupledBase::write().
|
protected |
Underlying patch.
Definition at line 133 of file temperatureCoupledBase.H.
|
protected |
How to get K.
Definition at line 136 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::KMethod(), and temperatureCoupledBase::write().
|
protected |
Name of thermal conductivity field (if looked up from database)
Definition at line 139 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::kappaName(), and temperatureCoupledBase::write().
|
protected |
Name of the non-Isotropic alpha (default: Anialpha)
Definition at line 142 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::write().
|
protected |
Name of thermal diffusivity.
Definition at line 145 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::alphaName(), and temperatureCoupledBase::write().