Public Types | Public Member Functions | List of all members
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 }
 Enumeration listing the possible hest source input modes. More...
 
- Public Types inherited from temperatureCoupledBase
enum  KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup }
 Type of supplied Kappa. More...
 

Public Member Functions

 TypeName ("compressible::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...
 
- 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...
 

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

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

The thermal conductivity kappa can either be retrieved from various possible sources, as detailed in the class temperatureCoupledBase.

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 yes
value initial temperature value no calculated
gradient initial gradient value no 0.0
kappaMethod inherited from temperatureCoupledBase inherited
kappa inherited from temperatureCoupledBase inherited

Note: If needed, both 'value' and 'gradient' must be defined to be used.

Example usage:

    hotWall
    {
        type            compressible::turbulentHeatFluxTemperature;
        heatSource      flux;
        q               uniform 10;
        kappaMethod     fluidThermo;
        kappa           none;
        Qr              none;
    }
See also
Foam::temperatureCoupledBase
Source files

Definition at line 126 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

Member Enumeration Documentation

Enumeration listing the possible hest source input modes.

Enumerator
hsPower 
hsFlux 

Definition at line 136 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

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

Construct from patch, internal field and dictionary.

Definition at line 105 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References dict, dictionary::found(), fvPatchField< Type >::operator=(), fvPatch::size(), and turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

Construct by mapping given.

turbulentHeatFluxTemperatureFvPatchScalarField onto a new patch

Definition at line 88 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

Construct as copy.

Definition at line 133 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 147 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References turbulentHeatFluxTemperatureFvPatchScalarField::autoMap().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "compressible::turbulentHeatFluxTemperature"  )

Runtime type information.

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 201 of file turbulentHeatFluxTemperatureFvPatchScalarField.H.

References turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField().

Here is the call graph for this function:

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

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

Definition at line 163 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References turbulentHeatFluxTemperatureFvPatchScalarField::rmap().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Update the coefficients associated with the patch field.

Qr is negative going into the domain

Definition at line 190 of file turbulentHeatFluxTemperatureFvPatchScalarField.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), turbulentHeatFluxTemperatureFvPatchScalarField::hsFlux, turbulentHeatFluxTemperatureFvPatchScalarField::hsPower, temperatureCoupledBase::kappa(), Foam::nl, and turbulentHeatFluxTemperatureFvPatchScalarField::write().

Referenced by turbulentHeatFluxTemperatureFvPatchScalarField::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const
virtual

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