gradientEnergyFvPatchScalarField Class Reference

This boundary condition provides a gradient condition for internal energy, where the gradient is calculated using: More...

Inheritance diagram for gradientEnergyFvPatchScalarField:
[legend]
Collaboration diagram for gradientEnergyFvPatchScalarField:
[legend]

Public Member Functions

 TypeName ("gradientEnergy")
 Runtime type information. More...
 
 gradientEnergyFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 gradientEnergyFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given gradientEnergyFvPatchScalarField. More...
 
 gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &, 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 updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition provides a gradient condition for internal energy, where the gradient is calculated using:

\[ \nabla(e_p) = \nabla_\perp C_p(p, T) + \frac{e_p - e_c}{\Delta} \]

where

\( e_p \) = energy at patch faces [J]
\( e_c \) = energy at patch internal cells [J]
\( p \) = pressure [bar]
\( T \) = temperature [K]
\( C_p \) = specific heat [J/kg/K]
\( \Delta \) = distance between patch face and internal cell centres [m]
Usage
Example of the boundary condition specification:
<patchName>
{
    type            gradientEnergy;
    gradient        uniform 10;
}
See also
Foam::fixedGradientFvPatchField
Source files

Definition at line 105 of file gradientEnergyFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ gradientEnergyFvPatchScalarField() [1/5]

gradientEnergyFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 36 of file gradientEnergyFvPatchScalarField.C.

◆ gradientEnergyFvPatchScalarField() [2/5]

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

Construct from patch, internal field and dictionary.

Definition at line 60 of file gradientEnergyFvPatchScalarField.C.

◆ gradientEnergyFvPatchScalarField() [3/5]

gradientEnergyFvPatchScalarField ( const gradientEnergyFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given gradientEnergyFvPatchScalarField.

onto a new patch

Definition at line 47 of file gradientEnergyFvPatchScalarField.C.

◆ gradientEnergyFvPatchScalarField() [4/5]

Construct as copy.

Definition at line 72 of file gradientEnergyFvPatchScalarField.C.

◆ gradientEnergyFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Definition at line 82 of file gradientEnergyFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "gradientEnergy"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp< fvPatchScalarField > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 150 of file gradientEnergyFvPatchScalarField.H.

◆ clone() [2/2]

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

Construct and return a clone setting internal field reference.

Definition at line 166 of file gradientEnergyFvPatchScalarField.H.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 95 of file gradientEnergyFvPatchScalarField.C.

References fvPatchField< Type >::evaluate(), basicThermo::lookupThermo(), and fvPatchField< Type >::snGrad().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 122 of file gradientEnergyFvPatchScalarField.C.

References os().

Here is the call graph for this function:

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