Common functions used in temperature coupled boundaries. More...
Public Types | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup, mtFunction } |
Type of supplied Kappa. More... | |
Public Member Functions | |
temperatureCoupledBase (const fvPatch &patch, const KMethodType method=KMethodType::mtFluidThermo) | |
Default construct from patch, using fluidThermo (default) or specified method. More... | |
temperatureCoupledBase (const fvPatch &patch, const KMethodType method, const word &kappaName, const word &alphaName, const word &alphaAniName) | |
Construct from patch, method type and field names. 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... | |
temperatureCoupledBase (const temperatureCoupledBase &base) | |
Copy construct. More... | |
virtual | ~temperatureCoupledBase ()=default |
Destructor. More... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const noexcept |
Name of thermal conductivity field. More... | |
const word & | alphaName () const noexcept |
Name of thermal diffusivity field. More... | |
virtual void | autoMap (const fvPatchFieldMapper &)=0 |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchField< scalar > &, const labelList &)=0 |
Reverse map the given fvPatchField onto this fvPatchField. 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 | alphaName_ |
Name of thermal diffusivity. More... | |
const word | alphaAniName_ |
Name of the non-isotropic alpha (for directional solidThermo) More... | |
autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
Function1 for kappa. More... | |
autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
Function1 for alpha. 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 | partly | |
alpha | Name of thermal diffusivity field | partly | |
alphaAni | Name of non-isotropic alpha | partly | |
kappaValue | Function1 supplying kappa | partly | |
alphaValue | Function1 supplying alpha | partly |
nonIsotropicWall { ... kappaMethod directionalSolidThermo; alphaAni Anialpha; ... }
specifiedWall { ... kappaMethod function; kappaFunction constant 1.0; alphaFunction constant 100.0; ... }
Definition at line 131 of file temperatureCoupledBase.H.
enum KMethodType |
Type of supplied Kappa.
Enumerator | |
---|---|
mtFluidThermo | |
mtSolidThermo | |
mtDirectionalSolidThermo | |
mtLookup | |
mtFunction |
Definition at line 140 of file temperatureCoupledBase.H.
|
explicit |
Default construct from patch, using fluidThermo (default) or specified method.
Definition at line 48 of file temperatureCoupledBase.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const KMethodType | method, | ||
const word & | kappaName, | ||
const word & | alphaName, | ||
const word & | alphaAniName | ||
) |
Construct from patch, method type and field names.
Definition at line 82 of file temperatureCoupledBase.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const dictionary & | dict | ||
) |
Construct from patch and dictionary.
Definition at line 117 of file temperatureCoupledBase.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::New(), and Foam::nl.
temperatureCoupledBase | ( | const fvPatch & | patch, |
const temperatureCoupledBase & | base | ||
) |
Construct from patch and temperatureCoupledBase.
Definition at line 198 of file temperatureCoupledBase.C.
temperatureCoupledBase | ( | const temperatureCoupledBase & | base | ) |
Copy construct.
Definition at line 189 of file temperatureCoupledBase.C.
|
virtualdefault |
Destructor.
|
inline |
Method to obtain K.
Definition at line 253 of file temperatureCoupledBase.H.
References temperatureCoupledBase::KMethodTypeNames_, and temperatureCoupledBase::method_.
|
inlinenoexcept |
Name of thermal conductivity field.
Definition at line 261 of file temperatureCoupledBase.H.
References temperatureCoupledBase::kappaName_.
|
inlinenoexcept |
Name of thermal diffusivity field.
Definition at line 269 of file temperatureCoupledBase.H.
References temperatureCoupledBase::alphaName_.
|
pure virtual |
Map (and resize as needed) from self given a mapping object.
Implemented in humidityTemperatureCoupledMixedFvPatchScalarField, turbulentTemperatureRadCoupledMixedFvPatchScalarField, externalWallHeatFluxTemperatureFvPatchScalarField, turbulentTemperatureCoupledBaffleMixedFvPatchScalarField, filmPyrolysisRadiativeCoupledMixedFvPatchScalarField, lumpedMassWallTemperatureFvPatchScalarField, and fixedIncidentRadiationFvPatchScalarField.
Definition at line 216 of file temperatureCoupledBase.C.
Referenced by fixedIncidentRadiationFvPatchScalarField::autoMap(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::autoMap(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::autoMap(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::autoMap(), and humidityTemperatureCoupledMixedFvPatchScalarField::autoMap().
|
pure virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Implemented in humidityTemperatureCoupledMixedFvPatchScalarField, turbulentTemperatureRadCoupledMixedFvPatchScalarField, externalWallHeatFluxTemperatureFvPatchScalarField, turbulentTemperatureCoupledBaffleMixedFvPatchScalarField, filmPyrolysisRadiativeCoupledMixedFvPatchScalarField, lumpedMassWallTemperatureFvPatchScalarField, and fixedIncidentRadiationFvPatchScalarField.
Definition at line 232 of file temperatureCoupledBase.C.
Referenced by fixedIncidentRadiationFvPatchScalarField::rmap(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::rmap(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::rmap(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::rmap(), and humidityTemperatureCoupledMixedFvPatchScalarField::rmap().
|
virtual |
Given patch temperature calculate corresponding K field.
Reimplemented in turbulentTemperatureRadCoupledMixedFvPatchScalarField, and turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.
Definition at line 254 of file temperatureCoupledBase.C.
References dictName(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::constant::electromagnetic::kappa, basicThermo::kappa(), multiphaseInterSystem::kappaEff(), mesh, n, Foam::nl, and pp().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::kappa(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::kappa(), lumpedMassWallTemperatureFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
virtual |
Given patch temperature calculate corresponding alphaEff field.
Definition at line 415 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 563 of file temperatureCoupledBase.C.
References temperatureCoupledBase::alphaAniName_, temperatureCoupledBase::alphaFunction1_, temperatureCoupledBase::alphaName_, temperatureCoupledBase::kappaFunction1_, temperatureCoupledBase::kappaName_, temperatureCoupledBase::KMethodTypeNames_, temperatureCoupledBase::method_, and os().
Referenced by fixedIncidentRadiationFvPatchScalarField::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), externalWallHeatFluxTemperatureFvPatchScalarField::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), and humidityTemperatureCoupledMixedFvPatchScalarField::write().
|
staticprotected |
Definition at line 154 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::KMethod(), and temperatureCoupledBase::write().
|
protected |
Underlying patch.
Definition at line 159 of file temperatureCoupledBase.H.
|
protected |
How to get K.
Definition at line 164 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 169 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::kappaName(), and temperatureCoupledBase::write().
|
protected |
Name of thermal diffusivity.
Definition at line 174 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::alphaName(), and temperatureCoupledBase::write().
|
protected |
Name of the non-isotropic alpha (for directional solidThermo)
Definition at line 179 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::write().
|
protected |
Function1 for kappa.
Definition at line 184 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::write().
|
protected |
Function1 for alpha.
Definition at line 189 of file temperatureCoupledBase.H.
Referenced by temperatureCoupledBase::write().