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 ("externalTemperature") | |
| Runtime type information. More... | |
| externalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, fvMesh > &, const fieldMapper &) | |
| Construct by mapping given. More... | |
| externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &, const DimensionedField< scalar, fvMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, fvMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual | ~externalTemperatureFvPatchScalarField () |
| Destructor. More... | |
| virtual bool | fixesValue () const |
| Disallow manipulation of the boundary values. More... | |
| virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
| 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... | |
Protected Member Functions | |
| void | plusEqOp (tmp< scalarField > &tf, const scalar d) const |
| Plus-equals op for a tmp field. Will initialise the tmp if empty. More... | |
| void | plusEqOp (tmp< scalarField > &tf, const tmp< scalarField > &tdf) const |
| Plus-equals op for a tmp field. Will initialise the tmp if empty. More... | |
| virtual void | getKappa (scalarField &kappa, tmp< scalarField > &sumKappaTcByDelta, tmp< scalarField > &sumKappaByDelta, tmp< scalarField > &T, tmp< scalarField > &sumq) const |
| Get the patch kappa, kappa*Tc/delta, kappa/delta,. More... | |
This boundary condition applies a heat flux condition to temperature on an external wall. Heat flux can be specified in the following ways:
Q q h and Ta where:
| = | Power Function1 of time [W] | |
| = | Heat flux Function1 of time [W/m^2] | |
| = | Heat transfer coefficient DimensionedFieldFunction [W/m^2/K] | |
| = | Ambient temperature Function1 of time [K] |
Only one of Q or q may be specified, if h and Ta are also specified the corresponding heat-flux is added.
The patch thermal conductivity kappa is obtained from the region thermophysicalTransportModel so that this boundary condition can be applied directly to either fluid or solid regions.
| Property | Description | Required | Default value |
|---|---|---|---|
Q | Power [W] | no | |
q | Heat flux [W/m^2] | no | |
h | Heat transfer coefficient [W/m^2/K] | no | |
Ta | Ambient temperature [K] | if h is given | |
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 externalTemperature;
Ta constant 300.0;
h uniform 10.0;
value $internalField;
}Definition at line 161 of file externalTemperatureFvPatchScalarField.H.
| externalTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, fvMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 96 of file externalTemperatureFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::dimLength, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::units::fraction, fvPatchField< Type >::operator, and p.

| externalTemperatureFvPatchScalarField | ( | const externalTemperatureFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, fvMesh > & | iF, | ||
| const fieldMapper & | mapper | ||
| ) |
Construct by mapping given.
externalTemperatureFvPatchScalarField onto a new patch
Definition at line 206 of file externalTemperatureFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
| externalTemperatureFvPatchScalarField | ( | const externalTemperatureFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, fvMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 245 of file externalTemperatureFvPatchScalarField.C.
|
virtual |
Destructor.
Definition at line 291 of file externalTemperatureFvPatchScalarField.C.
|
protected |
Plus-equals op for a tmp field. Will initialise the tmp if empty.
Definition at line 34 of file externalTemperatureFvPatchScalarField.C.
References tf.
|
protected |
Plus-equals op for a tmp field. Will initialise the tmp if empty.
Definition at line 51 of file externalTemperatureFvPatchScalarField.C.
References tmp< T >::ptr(), tf, and tmp< T >::valid().

|
protectedvirtual |
Get the patch kappa, kappa*Tc/delta, kappa/delta,.
reference T, current wall T and also the heat-flux/delta obtained from the sum heat-flux provided
Reimplemented in multiphaseExternalTemperatureFvPatchScalarField.
Definition at line 73 of file externalTemperatureFvPatchScalarField.C.
References Foam::constant::electromagnetic::kappa, thermophysicalTransportModel::kappaEff(), thermophysicalTransportModel::qCorr(), and Foam::T().

| TypeName | ( | "externalTemperature" | ) |
Runtime type information.
|
virtual |
Construct and return a clone setting internal field reference.
Reimplemented in multiphaseExternalTemperatureFvPatchScalarField.
Definition at line 277 of file externalTemperatureFvPatchScalarField.C.
|
inlinevirtual |
Disallow manipulation of the boundary values.
The boundary temperature is evaluated only by this boundary condition
Definition at line 297 of file externalTemperatureFvPatchScalarField.H.
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 298 of file externalTemperatureFvPatchScalarField.C.
References fieldMapper::direct(), and word::null.

|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 321 of file externalTemperatureFvPatchScalarField.C.
References word::null.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 344 of file externalTemperatureFvPatchScalarField.C.
References Foam::endl(), f(), Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, Foam::constant::electromagnetic::kappa, Foam::max(), word::null, Foam::constant::physicoChemical::sigma, Foam::fvc::snGrad(), Foam::sqr(), Foam::T(), Foam::dimensions::time, tmp< T >::valid(), and Foam::Zero.

| void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 493 of file externalTemperatureFvPatchScalarField.C.
References Foam::dimArea, Foam::dimPower, Foam::dimTemperature, word::null, Foam::dimensions::time, fvPatchField< Type >::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().
