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, hsPower, hsFlux } |
Enumeration listing the possible hest source input modes. More... | |
enum | heatSourceType { hsPower, hsFlux, hsPower, hsFlux } |
Enumeration listing the possible hest source input modes. More... | |
Public Member Functions | |
TypeName ("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... | |
TypeName ("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... | |
Private Attributes | |
heatSourceType | heatSource_ |
Heat source type. More... | |
scalarField | q_ |
Heat power [W] or flux [W/m2]. More... | |
word | QrName_ |
Name of radiative in flux field. More... | |
word | alphaEffName_ |
Name of effective thermal diffusivity field. More... | |
Static Private Attributes | |
static const NamedEnum< heatSourceType, 2 > | heatSourceTypeNames_ |
Heat source type names. More... | |
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].
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].
Patch usage
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 | no | none |
value | initial temperature value | no | calculated |
gradient | initial gradient value | no | 0.0 |
Example of the boundary condition specification:
myPatch { type incompressible::turbulentHeatFluxTemperature; heatSource flux; q uniform 10; value uniform 300; // place holder }
alphaEff
are [kg/m/s]rho
, Cp (units [kg/m^3], [J/kg/K]) are read from the transport dictionary entryProperty | Description | Required | Default value |
---|---|---|---|
heatSource | heat source type: flux [W/m^2] or power [W] | yes | |
q | heat source value | yes | |
alphaEff | turbulent thermal diffusivity field name | yes |
Example of the boundary condition specification:
myPatch { type turbulentHeatFluxTemperature; heatSource flux; q uniform 10; alphaEff alphaEff; value uniform 300; // place holder }
alphaEff
are [kg/m/s]rhoCp0
(units [kg/m^3]*[J/kg/K]) is read from the transport dictionary entry Definition at line 114 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
enum heatSourceType |
Enumeration listing the possible hest source input modes.
Enumerator | |
---|---|
hsPower | |
hsFlux | |
hsPower | |
hsFlux |
Definition at line 123 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
enum heatSourceType |
Enumeration listing the possible hest source input modes.
Enumerator | |
---|---|
hsPower | |
hsFlux | |
hsPower | |
hsFlux |
Definition at line 100 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 74 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone().
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 104 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References dict, dictionary::found(), fvPatchField::operator=(), and p.
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.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | thftpsf | ) |
Construct as copy.
Definition at line 130 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | thftpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 143 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | , |
const DimensionedField< scalar, volMesh > & | |||
) |
Construct from patch and internal field.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const fvPatch & | , |
const DimensionedField< scalar, volMesh > & | , | ||
const dictionary & | |||
) |
Construct from patch, internal field and dictionary.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | , |
const fvPatch & | , | ||
const DimensionedField< scalar, volMesh > & | , | ||
const fvPatchFieldMapper & | |||
) |
Construct by mapping given.
turbulentHeatFluxTemperatureFvPatchScalarField onto a new patch
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | ) |
Construct as copy.
turbulentHeatFluxTemperatureFvPatchScalarField | ( | const turbulentHeatFluxTemperatureFvPatchScalarField & | , |
const DimensionedField< scalar, volMesh > & | |||
) |
Construct as copy setting internal field reference.
TypeName | ( | "turbulentHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 188 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 205 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 158 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 168 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References turbulentHeatFluxTemperatureFvPatchScalarField::q_.
|
virtual |
Update the coefficients associated with the patch field.
Qr is negative going into the domain
Definition at line 185 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References alphat, GeometricField::boundaryField(), dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::constant::atomic::group, IOobject::groupName(), Foam::gSum(), turbulentHeatFluxTemperatureFvPatchScalarField::heatSource_, turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_, turbulentHeatFluxTemperatureFvPatchScalarField::hsFlux, turbulentHeatFluxTemperatureFvPatchScalarField::hsPower, dictionary::lookup(), Foam::nl, nu, Pr(), turbulenceModel::propertiesName, turbulentHeatFluxTemperatureFvPatchScalarField::q_, turbulentHeatFluxTemperatureFvPatchScalarField::QrName_, rho, and dimensioned::value().
|
virtual |
Write.
Definition at line 252 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.
References token::END_STATEMENT, turbulentHeatFluxTemperatureFvPatchScalarField::heatSource_, turbulentHeatFluxTemperatureFvPatchScalarField::heatSourceTypeNames_, Foam::nl, turbulentHeatFluxTemperatureFvPatchScalarField::q_, turbulentHeatFluxTemperatureFvPatchScalarField::QrName_, write(), Field::writeEntry(), and Ostream::writeKeyword().
TypeName | ( | "turbulentHeatFluxTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 165 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.
References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 182 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.
|
virtual |
Map (and resize as needed) from self given a mapping object.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
|
virtual |
Update the coefficients associated with the patch field.
|
virtual |
Write.
|
staticprivate |
Heat source type names.
Definition at line 135 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and turbulentHeatFluxTemperatureFvPatchScalarField::write().
|
private |
Heat source type.
Definition at line 138 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and turbulentHeatFluxTemperatureFvPatchScalarField::write().
|
private |
Heat power [W] or flux [W/m2].
Definition at line 141 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::rmap(), turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and turbulentHeatFluxTemperatureFvPatchScalarField::write().
|
private |
Name of radiative in flux field.
Definition at line 144 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.
Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs(), and turbulentHeatFluxTemperatureFvPatchScalarField::write().
|
private |
Name of effective thermal diffusivity field.
Definition at line 121 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.