Public Types | Public Member Functions | Private Attributes | Static Private Attributes
turbulentHeatFluxTemperatureFvPatchScalarField Class Reference

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

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

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< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 turbulentHeatFluxTemperatureFvPatchScalarField (const turbulentHeatFluxTemperatureFvPatchScalarField &, 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...
 
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< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 turbulentHeatFluxTemperatureFvPatchScalarField (const turbulentHeatFluxTemperatureFvPatchScalarField &, 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...
 
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...
 

Detailed Description

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


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
    }
Note
  • The units of alphaEff are [kg/m/s]
  • The density and specific heat capacity rho, Cp (units [kg/m^3], [J/kg/K]) are read from the transport dictionary entry
Source files

Property 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
    }
Note
  • The units of alphaEff are [kg/m/s]
  • The density*specific heat capacity rhoCp0 (units [kg/m^3]*[J/kg/K]) is read from the transport dictionary entry
Source files

Definition at line 114 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

Member Enumeration Documentation

◆ heatSourceType [1/2]

Enumeration listing the possible hest source input modes.

Enumerator
hsPower 
hsFlux 
hsPower 
hsFlux 

Definition at line 123 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

◆ heatSourceType [2/2]

Enumeration listing the possible hest source input modes.

Enumerator
hsPower 
hsFlux 
hsPower 
hsFlux 

Definition at line 100 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [1/10]

Construct from patch and internal field.

Definition at line 74 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [2/10]

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.

Here is the call graph for this function:

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [3/10]

Construct by mapping given.

turbulentHeatFluxTemperatureFvPatchScalarField onto a new patch

Definition at line 88 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [4/10]

Construct as copy.

Definition at line 130 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [5/10]

Construct as copy setting internal field reference.

Definition at line 143 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [6/10]

Construct from patch and internal field.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [7/10]

turbulentHeatFluxTemperatureFvPatchScalarField ( const fvPatch ,
const DimensionedField< scalar, volMesh > &  ,
const dictionary  
)

Construct from patch, internal field and dictionary.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [8/10]

Construct by mapping given.

turbulentHeatFluxTemperatureFvPatchScalarField onto a new patch

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [9/10]

Construct as copy.

◆ turbulentHeatFluxTemperatureFvPatchScalarField() [10/10]

Construct as copy setting internal field reference.

Member Function Documentation

◆ TypeName() [1/2]

TypeName ( "turbulentHeatFluxTemperature"  )

Runtime type information.

◆ clone() [1/4]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 188 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/4]

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

Construct and return a clone setting internal field reference.

Definition at line 205 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

◆ autoMap() [1/2]

void autoMap ( const fvPatchFieldMapper m)
virtual

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

Definition at line 158 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

◆ rmap() [1/2]

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

◆ updateCoeffs() [1/2]

void updateCoeffs ( )
virtual

◆ write() [1/2]

void write ( Ostream os) const
virtual

◆ TypeName() [2/2]

TypeName ( "turbulentHeatFluxTemperature"  )

Runtime type information.

◆ clone() [3/4]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 165 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.

References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [4/4]

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

Construct and return a clone setting internal field reference.

Definition at line 182 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.

◆ autoMap() [2/2]

virtual void autoMap ( const fvPatchFieldMapper )
virtual

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

◆ rmap() [2/2]

virtual void rmap ( const fvPatchScalarField ,
const labelList  
)
virtual

Reverse map the given fvPatchField onto this fvPatchField.

◆ updateCoeffs() [2/2]

virtual void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

◆ write() [2/2]

virtual void write ( Ostream ) const
virtual

Write.

Field Documentation

◆ heatSourceTypeNames_

static const NamedEnum< heatSourceType, 2 > heatSourceTypeNames_
staticprivate

◆ heatSource_

heatSourceType heatSource_
private

◆ q_

scalarField q_
private

◆ QrName_

word QrName_
private

◆ alphaEffName_

word alphaEffName_
private

Name of effective thermal diffusivity field.

Definition at line 121 of file bak_turbulentHeatFluxTemperatureFvPatchScalarField.H.


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