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 |
Private Attributes | |
operationMode | mode_ |
Operation mode. More... | |
scalarField | q_ |
Heat flux / [W/m2]. More... | |
scalarField | h_ |
Heat transfer coefficient / [W/m2K]. More... | |
scalarField | Ta_ |
Ambient temperature / [K]. More... | |
scalarField | QrPrevious_ |
Chache Qr for relaxation. More... | |
scalar | QrRelaxation_ |
Relaxation for Qr. More... | |
const word | QrName_ |
Name of the radiative heat flux. More... | |
scalarList | thicknessLayers_ |
Thickness of layers. More... | |
scalarList | kappaLayers_ |
Conductivity of layers. More... | |
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 the mesh database using the lookup
option, or from a solidThermo
thermophysical package.
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
kappa | thermal conductivity option | yes | |
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 conductivites per layer [W/m/K] | yes | |
kappaName | name of thermal conductivity field | yes | |
Qr | name of the radiative field | no | no |
relaxation | relaxation factor for radiative field | no | 1 |
Example of the boundary condition specification:
myPatch { type externalWallHeatFluxTemperature; kappa fluidThermo; 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; kappaName none; Qr none; relaxation 1; }
h
and Ta
, or q
in the dictionary (see above)Definition at line 170 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
enum operationMode |
Operation mode enumeration.
Enumerator | |
---|---|
fixedHeatFlux | |
fixedHeatTransferCoeff | |
unknown |
Definition at line 180 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 | ( | 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 dict, dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, p, and scalarField().
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.
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 193 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 213 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
TypeName | ( | "externalWallHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 263 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 280 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 235 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 247 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::h_, externalWallHeatFluxTemperatureFvPatchScalarField::q_, and externalWallHeatFluxTemperatureFvPatchScalarField::Ta_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 263 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References dimensionedInternalField(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, externalWallHeatFluxTemperatureFvPatchScalarField::fixedHeatFlux, externalWallHeatFluxTemperatureFvPatchScalarField::fixedHeatTransferCoeff, forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), externalWallHeatFluxTemperatureFvPatchScalarField::h_, Foam::Info, temperatureCoupledBase::kappa(), externalWallHeatFluxTemperatureFvPatchScalarField::kappaLayers_, externalWallHeatFluxTemperatureFvPatchScalarField::mode_, externalWallHeatFluxTemperatureFvPatchScalarField::operationModeNames, externalWallHeatFluxTemperatureFvPatchScalarField::q_, Qr(), externalWallHeatFluxTemperatureFvPatchScalarField::QrName_, externalWallHeatFluxTemperatureFvPatchScalarField::QrPrevious_, externalWallHeatFluxTemperatureFvPatchScalarField::QrRelaxation_, List::size(), Foam::fvc::snGrad(), externalWallHeatFluxTemperatureFvPatchScalarField::Ta_, and externalWallHeatFluxTemperatureFvPatchScalarField::thicknessLayers_.
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 344 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::abort(), token::END_STATEMENT, Foam::FatalError, FatalErrorInFunction, Foam::nl, write(), temperatureCoupledBase::write(), and Ostream::writeKeyword().
|
static |
Definition at line 187 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Operation mode.
Definition at line 195 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Heat flux / [W/m2].
Definition at line 198 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::rmap(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Heat transfer coefficient / [W/m2K].
Definition at line 201 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::rmap(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Ambient temperature / [K].
Definition at line 204 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::rmap(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Chache Qr for relaxation.
Definition at line 207 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Relaxation for Qr.
Definition at line 210 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Name of the radiative heat flux.
Definition at line 213 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Thickness of layers.
Definition at line 216 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
|
private |
Conductivity of layers.
Definition at line 219 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.