This boundary condition provides a gradient condition for internal energy, where the gradient is calculated using: More...
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 &) | |
Copy constructor. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (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... | |
This boundary condition provides a gradient condition for internal energy, where the gradient is calculated using:
where
= | energy at patch faces [J] | |
= | energy at patch internal cells [J] | |
= | pressure [bar] | |
= | temperature [K] | |
= | specific heat [J/kg/K] | |
= | distance between patch face and internal cell centres [m] |
<patchName> { type gradientEnergy; gradient uniform 10; }
Definition at line 100 of file gradientEnergyFvPatchScalarField.H.
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().
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().
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().
gradientEnergyFvPatchScalarField | ( | const gradientEnergyFvPatchScalarField & | tppsf | ) |
Copy constructor.
Definition at line 72 of file gradientEnergyFvPatchScalarField.C.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().
gradientEnergyFvPatchScalarField | ( | const gradientEnergyFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 82 of file gradientEnergyFvPatchScalarField.C.
TypeName | ( | "gradientEnergy" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 145 of file gradientEnergyFvPatchScalarField.H.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 162 of file gradientEnergyFvPatchScalarField.H.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField(), and gradientEnergyFvPatchScalarField::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(), basicThermo::T(), and thermo.
Referenced by gradientEnergyFvPatchScalarField::clone().