This boundary condition supplies a heat flux condition for temperature on an external wall. Optional thin thermal layer resistances can be specified through thicknessLayers and kappaLayers entries for the fixed heat transfer coefficient mode. More...
Public Types | |
enum | operationMode { fixedHeatFlux, fixedHeatTransferCoeff, unknown } |
Operation mode enumeration. More... | |
![]() | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup } |
Type of supplied Kappa. More... | |
Public Member Functions | |
TypeName ("externalWallHeatFluxTemperature") | |
Runtime type information. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, 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... | |
void | write (Ostream &) const |
Write. More... | |
![]() | |
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... | |
Static Public Attributes | |
static const NamedEnum< operationMode, 3 > | operationModeNames |
Additional Inherited Members | |
![]() | |
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 const NamedEnum< KMethodType, 4 > | KMethodTypeNames_ |
This boundary condition supplies a heat flux condition for temperature on an external wall. Optional thin thermal layer resistances can be specified through thicknessLayers and kappaLayers entries for the fixed heat transfer coefficient mode.
The condition can operate in two modes:
where:
![]() | = | heat transfer coefficient [W/m^2/K] |
![]() | = | ambient temperature [K] |
![]() | = | heat 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 |
---|---|---|---|
q | heat flux [W/m^2] | yes* | |
Ta | ambient temperature [K] | yes* | |
h | heat transfer coefficient [W/m^2/K] | yes* | |
thicknessLayers | list of thicknesses per layer [m] | yes | |
kappaLayers | list of thermal conductivities per layer [W/m/K] | yes | |
Qr | name of the radiative field | no | no |
relaxation | relaxation factor for radiative field | no | 1 |
kappaMethod | inherited from temperatureCoupledBase | inherited | |
kappa | inherited from temperatureCoupledBase | inherited |
Example of the boundary condition specification:
<patchName> { type externalWallHeatFluxTemperature; q uniform 1000; Ta uniform 300.0; h uniform 10.0; thicknessLayers (0.1 0.2 0.3 0.4); kappaLayers (1 2 3 4); value uniform 300.0; Qr none; relaxation 1; kappaMethod fluidThermo; kappa none; }
Note:
h
and Ta
, or q
in the dictionary (see above)Definition at line 169 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
enum operationMode |
Operation mode enumeration.
Enumerator | |
---|---|
fixedHeatFlux | |
fixedHeatTransferCoeff | |
unknown |
Definition at line 179 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 62 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), and NamedEnum< Enum, nEnum >::names().
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 110 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::exit(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), dictionary::lookup(), fvPatch::name(), fvPatchField< Type >::operator=(), and fvPatch::size().
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
externalWallHeatFluxTemperatureFvPatchScalarField onto a new patch
Definition at line 87 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 181 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 201 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::autoMap().
TypeName | ( | "externalWallHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 262 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 279 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), externalWallHeatFluxTemperatureFvPatchScalarField::rmap(), externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and externalWallHeatFluxTemperatureFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 223 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone(), and externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 236 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::clone(), and externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 253 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, Foam::constant::electromagnetic::kappa, Qr(), List< T >::size(), Foam::fvc::snGrad(), and externalWallHeatFluxTemperatureFvPatchScalarField::write().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone().
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 334 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::abort(), token::END_STATEMENT, Foam::FatalError, FatalErrorInFunction, Foam::makePatchTypeField(), Foam::nl, write(), temperatureCoupledBase::write(), and Ostream::writeKeyword().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
static |
Definition at line 186 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by NamedEnum< Enum, nEnum >::names().