Public Member Functions | List of all members
gradientEnergyFvPatchScalarField Class Reference

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

Inheritance diagram for gradientEnergyFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for gradientEnergyFvPatchScalarField:
Collaboration graph
[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...
 

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]


Patch usage

Example of the boundary condition specification:

    myPatch
    {
        type            gradientEnergy;
        gradient        uniform 10;
    }
See also
Foam::fixedGradientFvPatchField
Source files

Definition at line 104 of file gradientEnergyFvPatchScalarField.H.

Constructor & Destructor Documentation

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

Construct from patch and internal field.

Definition at line 36 of file gradientEnergyFvPatchScalarField.C.

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

Here is the caller graph for this function:

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.

References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().

Here is the call graph for this function:

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.

References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().

Here is the call graph for this function:

Construct as copy.

Definition at line 72 of file gradientEnergyFvPatchScalarField.C.

References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 82 of file gradientEnergyFvPatchScalarField.C.

Member Function Documentation

TypeName ( "gradientEnergy"  )

Runtime type information.

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 149 of file gradientEnergyFvPatchScalarField.H.

References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().

Here is the call graph for this function:

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.

References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField(), and gradientEnergyFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 93 of file gradientEnergyFvPatchScalarField.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), basicThermo::Cpv(), fvPatchField< Type >::evaluate(), basicThermo::he(), basicThermo::lookupThermo(), Foam::makePatchTypeField(), basicThermo::p(), patchi, fvPatchField< Type >::snGrad(), and basicThermo::T().

Referenced by gradientEnergyFvPatchScalarField::clone().

Here is the call graph for this function:

Here is the caller graph for this function:


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