This boundary condition applies a heat flux condition to temperature on an external wall. Heat flux can be specified in the following ways: 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 &)=delete | |
Disallow copy without setting internal field reference. More... | |
externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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 bool | fixesValue () const |
Allow manipulation of the boundary values. 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 | reset (const fvPatchScalarField &) |
Reset the fvPatchField to the given fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from temperatureCoupledBase | |
temperatureCoupledBase (const fvPatch &patch) | |
Construct from patch. 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... | |
tmp< scalarField > | kappa (const fvPatchScalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
void | write (Ostream &) const |
Write. More... | |
This boundary condition applies a heat flux condition to temperature on an external wall. Heat flux can be specified in the following ways:
where:
= | Power [W] | |
= | Heat flux [W/m^2] | |
= | Heat transfer coefficient [W/m^2/K] | |
= | Ambient temperature [K] |
If more than one parameter is given then the heat fluxes are summed.
If a heat transfer coefficient is given optional thin thermal layer resistances can be specified through thicknessLayers and kappaLayers entries.
The thermal conductivity kappa
can either be retrieved from various possible sources, as detailed in the class temperatureCoupledBase.
The ambient temperature Ta is specified as a Foam::Function1 of time but uniform is space.
Property | Description | Required | Default value |
---|---|---|---|
Q | Power [W] | no | 0 |
q | Heat flux [W/m^2] | no | 0 |
h | Heat transfer coefficient [W/m^2/K] | no | 0 |
Ta | Ambient temperature [K] | if h is given | |
thicknessLayers | Layer thicknesses [m] | no | |
kappaLayers | Layer thermal conductivities [W/m/K] | no | |
relaxation | Relaxation for the wall temperature | no | 1 |
emissivity | Surface emissivity for radiative flux to ambient | no | 0 |
qr | Name of the radiative field | no | none |
qrRelaxation | Relaxation factor for radiative field | no | 1 |
Example of the boundary condition specification:
<patchName> { type externalWallHeatFluxTemperature; Ta constant 300.0; h uniform 10.0; thicknessLayers (0.1 0.2 0.3 0.4); kappaLayers (1 2 3 4); value $internalField; }
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 38 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone(), and externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 68 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::exit(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), scalarField(), 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 141 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
delete |
Disallow copy without setting internal field reference.
externalWallHeatFluxTemperatureFvPatchScalarField | ( | const externalWallHeatFluxTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 174 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::autoMap().
TypeName | ( | "externalWallHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 291 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Allow manipulation of the boundary values.
Definition at line 307 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.
References externalWallHeatFluxTemperatureFvPatchScalarField::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::reset(), externalWallHeatFluxTemperatureFvPatchScalarField::rmap(), externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and externalWallHeatFluxTemperatureFvPatchScalarField::write().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Used to update fields following mesh topology change
Definition at line 201 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), and externalWallHeatFluxTemperatureFvPatchScalarField::fixesValue().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Used to reconstruct fields
Definition at line 225 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::reset(), and externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::autoMap(), externalWallHeatFluxTemperatureFvPatchScalarField::fixesValue(), and externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 253 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References externalWallHeatFluxTemperatureFvPatchScalarField::reset().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::fixesValue(), externalWallHeatFluxTemperatureFvPatchScalarField::reset(), and externalWallHeatFluxTemperatureFvPatchScalarField::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 279 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, temperatureCoupledBase::kappa(), word::null, Foam::pow3(), Foam::constant::physicoChemical::sigma, List< T >::size(), Foam::fvc::snGrad(), dimensioned< Type >::value(), and externalWallHeatFluxTemperatureFvPatchScalarField::write().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::fixesValue().
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 405 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.
References Foam::makePatchTypeField(), word::null, temperatureCoupledBase::write(), fvPatchField< Type >::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().
Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::fixesValue(), and externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs().