lumpedMassTemperatureFvPatchScalarField Class Reference

This boundary condition is applied to a patch which bounds a solid body, wholly or partially. It represents the body as a lumped mass, i.e. by a single temperature T which is fixed across the patch. The body has a volume V which is either specified by the user, or is calculated when the patch describes a closed volume (including in 2D meshes). Starting from an initial, specified T, the change in temperature is calculated over time according to an applied power source Q and the heat transferred across the boundary $Q_{b}$ (positive into the lumped mass): More...

Inheritance diagram for lumpedMassTemperatureFvPatchScalarField:
Collaboration diagram for lumpedMassTemperatureFvPatchScalarField:

Public Member Functions

 TypeName ("lumpedMassTemperature")
 Runtime type information. More...
 
 lumpedMassTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &)
 Construct by mapping given fixedValueTypeFvPatchField. More...
 
 lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &, 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 void map (const fvPatchScalarField &, const fieldMapper &)
 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...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition is applied to a patch which bounds a solid body, wholly or partially. It represents the body as a lumped mass, i.e. by a single temperature T which is fixed across the patch. The body has a volume V which is either specified by the user, or is calculated when the patch describes a closed volume (including in 2D meshes). Starting from an initial, specified T, the change in temperature is calculated over time according to an applied power source Q and the heat transferred across the boundary $Q_{b}$ (positive into the lumped mass):

\[ dT/dt = frac{Q + Q_{b}}{\rho C_{v} V} \]

where

$ Q $ = specified power source [W]
$ Q_{b} $ = total calculated heat transferred across the boundary [W]
$ \rho $ = density [kg/m^3]
$ C_{v} $ = specific heat capacity [J/(kg K)]
$ V $ = volume of the lumped mass [m^3}
Usage
Property Description Req'd? Default
rho density yes
Cv specific heat capacity yes
T temperature yes
Q power source no 0
volume volume of the lumped mass no calculated

Example of the boundary condition specification:

    <patchName>
    {
        type       lumpedMassTemperature;
        rho        1000;
        Cv         1300;
        T          500;
        Q          constant 0.5;
        value      uniform $T; // placeholder
    }
Source files

Definition at line 143 of file lumpedMassTemperatureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ lumpedMassTemperatureFvPatchScalarField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 47 of file lumpedMassTemperatureFvPatchScalarField.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::nl, fvPatchField< Type >::operator=(), and UniformDimensionedField< Type >::value().

Here is the call graph for this function:

◆ lumpedMassTemperatureFvPatchScalarField() [2/4]

lumpedMassTemperatureFvPatchScalarField ( const lumpedMassTemperatureFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fieldMapper mapper 
)

Construct by mapping given fixedValueTypeFvPatchField.

onto a new patch

Definition at line 104 of file lumpedMassTemperatureFvPatchScalarField.C.

◆ lumpedMassTemperatureFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ lumpedMassTemperatureFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 122 of file lumpedMassTemperatureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "lumpedMassTemperature"  )

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 214 of file lumpedMassTemperatureFvPatchScalarField.H.

◆ map()

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

Map the given fvPatchField onto this fvPatchField.

Definition at line 140 of file lumpedMassTemperatureFvPatchScalarField.C.

◆ reset()

void reset ( const fvPatchScalarField ptf)
virtual

Reset the fvPatchField to the given fvPatchField.

Used for mesh to mesh mapping

Definition at line 150 of file lumpedMassTemperatureFvPatchScalarField.C.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 159 of file lumpedMassTemperatureFvPatchScalarField.C.

References Foam::gSum(), thermophysicalTransportModel::kappaEff(), Foam::operator==(), and patchi.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 196 of file lumpedMassTemperatureFvPatchScalarField.C.

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

Here is the call graph for this function:

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