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 }
 Operation mode enumeration. More...
 
- Public Types inherited from temperatureCoupledBase
enum  KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup }
 Type of supplied Kappa. 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 &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 externalWallHeatFluxTemperatureFvPatchScalarField (const externalWallHeatFluxTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy 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 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...
 
void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from temperatureCoupledBase
 temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName)
 Construct from patch and K name. 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...
 
word KMethod () const
 Method to obtain K. More...
 
const wordkappaName () const
 Name of thermal conductivity field. More...
 
tmp< scalarFieldkappa (const scalarField &Tp) const
 Given patch temperature calculate corresponding K field. More...
 
void write (Ostream &) const
 Write. More...
 

Static Public Attributes

static const NamedEnum< operationMode, 3 > operationModeNames
 

Additional Inherited Members

- Protected Attributes inherited from temperatureCoupledBase
const fvPatchpatch_
 Underlying patch. More...
 
const KMethodType method_
 How to get K. More...
 
const word kappaName_
 Name of thermal conductivity field (if looked up from database) More...
 
const word alphaAniName_
 Name of the non-Isotropic alpha (default: Anialpha) More...
 
- Static Protected Attributes inherited from temperatureCoupledBase
static const NamedEnum< KMethodType, 4 > KMethodTypeNames_
 

Detailed Description

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

- fixed power: supply Q

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 is space.

Usage
Property Description Required Default value
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 'coefficent'
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               uniform 10.0;
        thicknessLayers (0.1 0.2 0.3 0.4);
        kappaLayers     (1 2 3 4);

        kappaMethod     fluidThermo;

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

Definition at line 202 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.

Member Enumeration Documentation

◆ operationMode

Operation mode enumeration.

Enumerator
fixedPower 
fixedHeatFlux 
fixedHeatTransferCoeff 

Definition at line 212 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [1/5]

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [2/5]

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

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [3/5]

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 215 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ externalWallHeatFluxTemperatureFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 238 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References externalWallHeatFluxTemperatureFvPatchScalarField::autoMap().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "externalWallHeatFluxTemperature"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 304 of file externalWallHeatFluxTemperatureFvPatchScalarField.H.

References externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Map (and resize as needed) from self given a mapping object.

Definition at line 263 of file externalWallHeatFluxTemperatureFvPatchScalarField.C.

References externalWallHeatFluxTemperatureFvPatchScalarField::rmap().

Referenced by externalWallHeatFluxTemperatureFvPatchScalarField::clone(), and externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField().

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

◆ rmap()

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

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const

Member Data Documentation

◆ operationModeNames


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