Public Types | Public Member Functions | Static Public Attributes | List of all members
externalWallHeatFluxTemperatureFvPatchScalarField Class Reference

This boundary condition applies a heat flux condition to temperature on an external wall in one of three modes: More...

Inheritance diagram for externalWallHeatFluxTemperatureFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for externalWallHeatFluxTemperatureFvPatchScalarField:
Collaboration graph
[legend]

Public Types

enum  operationMode { fixedPower, fixedHeatFlux, fixedHeatTransferCoeff }
 
- Public Types inherited from temperatureCoupledBase
enum  KMethodType {
  mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup,
  mtFunction
}
 

Public Member Functions

 TypeName ("externalWallHeatFluxTemperature")
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual bool fixesValue () const
 
virtual void autoMap (const fvPatchFieldMapper &)
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 
virtual void updateCoeffs ()
 
void write (Ostream &) const
 
- Public Member Functions inherited from temperatureCoupledBase
 temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName, const word &alphaName)
 
 temperatureCoupledBase (const fvPatch &patch, const dictionary &dict)
 
 temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base)
 
 temperatureCoupledBase (const temperatureCoupledBase &)
 
virtual ~temperatureCoupledBase ()=default
 
word KMethod () const
 
const wordkappaName () const
 
const wordalphaName () const
 
virtual tmp< scalarFieldkappa (const scalarField &Tp) const
 
virtual tmp< scalarFieldalpha (const scalarField &Tp) const
 
void write (Ostream &os) const
 

Static Public Attributes

static const Enum< operationModeoperationModeNames
 

Additional Inherited Members

- Protected Attributes inherited from temperatureCoupledBase
const fvPatchpatch_
 
const KMethodType method_
 
const word kappaName_
 
const word alphaAniName_
 
const word alphaName_
 
autoPtr< PatchFunction1< scalar > > kappaFunction1_
 
autoPtr< PatchFunction1< scalar > > alphaFunction1_
 
- Static Protected Attributes inherited from temperatureCoupledBase
static const Enum< KMethodTypeKMethodTypeNames_
 

Detailed Description

This boundary condition applies a heat flux condition to temperature on an external wall in one of three modes:

where:

$ Q $ = Power [W]
$ q $ = Heat flux [W/m^2]
$ h $ = Heat transfer coefficient [W/m^2/K]
$ Ta $ = Ambient temperature [K]

For heat transfer coefficient mode 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 in space.

Usage
Property Description Required Default
mode 'power', 'flux' or 'coefficient' yes
Q Power [W] for mode 'power'
q Heat flux [W/m^2] for mode 'flux'
h Heat transfer coefficient [W/m^2/K] for mode 'coefficient'
Ta Ambient temperature [K] for mode 'coefficient'
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
kappaMethod Inherited from temperatureCoupledBase inherited
kappa Inherited from temperatureCoupledBase inherited

Example of the boundary condition specification:

    <patchName>
    {
        type            externalWallHeatFluxTemperature;

        mode            coefficient;

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

        kappaMethod     fluidThermo;

        value           $internalField;
    }
Note
Quantities that are considered "global" (eg, power, ambient temperature) can be specified as Function1 types. Quantities that may have local variations (eg, htc, heat-flux) can be specified as PatchFunction1 types.
See also
Foam::temperatureCoupledBase Foam::mixedFvPatchScalarField
Source files

Definition at line 207 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.

Member Enumeration Documentation

◆ operationMode

Enumerator
fixedPower 

Heat power [W].

fixedHeatFlux 

Heat flux [W/m2].

fixedHeatTransferCoeff 

Heat transfer coefficient [W/m^2/K].

Definition at line 217 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [1/5]

Definition at line 48 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [2/5]

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

Definition at line 82 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::New(), p, Foam::foamVersion::patch, and Foam::Zero.

Here is the call graph for this function:

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [3/5]

Definition at line 172 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References FieldMapper::size().

Here is the call graph for this function:

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [4/5]

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [5/5]

Member Function Documentation

◆ TypeName()

TypeName ( "externalWallHeatFluxTemperature"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

◆ fixesValue()

virtual bool fixesValue ( ) const
inlinevirtual

◆ autoMap()

void autoMap ( const fvPatchFieldMapper mapper)
virtual

◆ rmap()

void rmap ( const fvPatchScalarField ptf,
const labelList addr 
)
virtual

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const

Definition at line 448 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References os(), temperatureCoupledBase::write(), fvPatchField::write(), and Ostream::writeEntry().

Here is the call graph for this function:

Member Data Documentation

◆ operationModeNames


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