Fixed heat boundary condition to specify temperature gradient. Input heat source either specified in terms of an absolute power [W], or as a flux [W/m^2]. More...
Public Types | |
enum | heatSourceType { hsPower, hsFlux } |
Enumeration listing the possible hest source input modes. More... | |
Public Types inherited from temperatureCoupledBase | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup } |
Type of supplied Kappa. More... | |
Public Member Functions | |
TypeName ("compressible::turbulentHeatFluxTemperature") | |
Runtime type information. More... | |
turbulentHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
turbulentHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
turbulentHeatFluxTemperatureFvPatchScalarField (const turbulentHeatFluxTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
turbulentHeatFluxTemperatureFvPatchScalarField (const turbulentHeatFluxTemperatureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
turbulentHeatFluxTemperatureFvPatchScalarField (const turbulentHeatFluxTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchScalarField &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from temperatureCoupledBase | |
temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName) | |
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... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const |
Name of thermal conductivity field. More... | |
tmp< scalarField > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
void | write (Ostream &) const |
Write. More... | |
Additional Inherited Members | |
Protected Attributes inherited from temperatureCoupledBase | |
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... | |
Static Protected Attributes inherited from temperatureCoupledBase | |
static const NamedEnum< KMethodType, 4 > | KMethodTypeNames_ |
Fixed heat boundary condition to specify temperature gradient. Input heat source either specified in terms of an absolute power [W], or as a flux [W/m^2].
The thermal conductivity kappa
can either be retrieved from various possible sources, as detailed in the class temperatureCoupledBase.
Property | Description | Required | Default value |
---|---|---|---|
heatSource | 'power' [W] or 'flux' [W/m^2] | yes | |
q | heat power or flux field | yes | |
Qr | name of the radiative flux field | yes | |
value | initial temperature value | no | calculated |
gradient | initial gradient value | no | 0.0 |
kappaMethod | inherited from temperatureCoupledBase | inherited | |
kappa | inherited from temperatureCoupledBase | inherited |
Note: If needed, both 'value' and 'gradient' must be defined to be used.
Example usage:
hotWall { type compressible::turbulentHeatFluxTemperature; heatSource flux; q uniform 10; kappaMethod fluidThermo; kappa none; Qr none; }
Definition at line 126 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
enum heatSourceType |
Enumeration listing the possible hest source input modes.
Enumerator | |
---|---|
hsPower | |
hsFlux |
Definition at line 136 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 73 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone(), NamedEnum< Enum, nEnum >::names(), and turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 105 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References dict, dictionary::found(), fvPatchField< Type >::operator=(), fvPatch::size(), and turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
turbulentHeatFluxTemperatureFvPatchScalarField onto a new patch
Definition at line 88 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | thftpsf | ) |
Construct as copy.
Definition at line 133 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | thftpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 147 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::autoMap().
TypeName | ( | "compressible::turbulentHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 201 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 218 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
References turbulentHeatFluxTemperatureFvPatchScalarField::autoMap(), turbulentHeatFluxTemperatureFvPatchScalarField::rmap(), turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField(), turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and turbulentHeatFluxTemperatureFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 163 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone(), and turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 173 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::autoMap(), turbulentHeatFluxTemperatureFvPatchScalarField::clone(), and turbulentHeatFluxTemperatureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Qr is negative going into the domain
Definition at line 190 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), turbulentHeatFluxTemperatureFvPatchScalarField::hsFlux, turbulentHeatFluxTemperatureFvPatchScalarField::hsPower, temperatureCoupledBase::kappa(), Foam::nl, and turbulentHeatFluxTemperatureFvPatchScalarField::write().
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone().
|
virtual |
Write.
Definition at line 233 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References token::END_STATEMENT, Foam::compressible::makePatchTypeField(), Foam::nl, write(), temperatureCoupledBase::write(), Field< Type >::writeEntry(), and Ostream::writeKeyword().
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone(), and turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs().