externalTemperatureFvPatchScalarField Class Reference

This boundary condition applies a heat flux condition to temperature on an external wall. Heat flux can be specified in the following ways: More...

Inheritance diagram for externalTemperatureFvPatchScalarField:
Collaboration diagram for externalTemperatureFvPatchScalarField:

Public Member Functions

 TypeName ("externalTemperature")
 Runtime type information. More...
 
 externalTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 externalTemperatureFvPatchScalarField (const externalTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (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 map (const fvPatchScalarField &, const fvPatchFieldMapper &)
 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...
 

Detailed Description

This boundary condition applies a heat flux condition to temperature on an external wall. Heat flux can be specified in the following ways:

  • fixed power: supply Q
  • fixed heat flux: supply q
  • fixed heat transfer coefficient: supply h and Ta

where:

$ Q $ = Power [W]
$ q $ = Heat flux [W/m^2]
$ h $ = Heat transfer coefficient [W/m^2/K]
$ Ta $ = 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 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.

The ambient temperature Ta is specified as a Foam::Function1 of time but uniform is space.

Usage
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            externalTemperature;

        Ta              constant 300.0;
        h               uniform 10.0;
        thicknessLayers (0.1 0.2 0.3 0.4);
        kappaLayers     (1 2 3 4);

        value           $internalField;
    }
See also
Foam::patchKappa Foam::mixedFvPatchScalarField
Source files

Definition at line 180 of file externalTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ externalTemperatureFvPatchScalarField() [1/4]

externalTemperatureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 36 of file externalTemperatureFvPatchScalarField.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, fvPatchField< Type >::operator=(), p, and List< T >::size().

Referenced by externalTemperatureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ externalTemperatureFvPatchScalarField() [2/4]

externalTemperatureFvPatchScalarField ( const externalTemperatureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given.

externalTemperatureFvPatchScalarField onto a new patch

Definition at line 108 of file externalTemperatureFvPatchScalarField.C.

◆ externalTemperatureFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ externalTemperatureFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 140 of file externalTemperatureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "externalTemperature"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 282 of file externalTemperatureFvPatchScalarField.H.

References externalTemperatureFvPatchScalarField::externalTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ fixesValue()

virtual bool fixesValue ( ) const
inlinevirtual

Allow manipulation of the boundary values.

Definition at line 299 of file externalTemperatureFvPatchScalarField.H.

◆ map()

void map ( const fvPatchScalarField ptf,
const fvPatchFieldMapper mapper 
)
virtual

Map the given fvPatchField onto this fvPatchField.

Definition at line 167 of file externalTemperatureFvPatchScalarField.C.

References word::null.

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Definition at line 195 of file externalTemperatureFvPatchScalarField.C.

References word::null.

◆ updateCoeffs()

◆ write()

void write ( Ostream os) const

Write.

Definition at line 359 of file externalTemperatureFvPatchScalarField.C.

References word::null, fvPatchField< Type >::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: