This boundary condition provides a gradient condition for internal energy, where the gradient is calculated using: More...
#include <gradientEnergyFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("gradientEnergy") | |
| Runtime type information. | |
| gradientEnergyFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| gradientEnergyFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given gradientEnergyFvPatchScalarField. | |
| gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &) | |
| Construct as copy. | |
| gradientEnergyFvPatchScalarField (const gradientEnergyFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
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}
\]](form_930.png)
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 101 of file gradientEnergyFvPatchScalarField.H.
| gradientEnergyFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 29 of file gradientEnergyFvPatchScalarField.C.
References p.
Referenced by gradientEnergyFvPatchScalarField(), gradientEnergyFvPatchScalarField(), gradientEnergyFvPatchScalarField(), and TypeName().

| gradientEnergyFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 53 of file gradientEnergyFvPatchScalarField.C.
| 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 40 of file gradientEnergyFvPatchScalarField.C.
References gradientEnergyFvPatchScalarField(), and p.

| gradientEnergyFvPatchScalarField | ( | const gradientEnergyFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 65 of file gradientEnergyFvPatchScalarField.C.
References gradientEnergyFvPatchScalarField().

| gradientEnergyFvPatchScalarField | ( | const gradientEnergyFvPatchScalarField & | tppsf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 75 of file gradientEnergyFvPatchScalarField.C.
References gradientEnergyFvPatchScalarField().

| TypeName | ( | "gradientEnergy" | ) |
Runtime type information.
References gradientEnergyFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 168 of file gradientEnergyFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 176 of file gradientEnergyFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 88 of file gradientEnergyFvPatchScalarField.C.
References fvPatchField< Type >::evaluate(), basicThermo::lookupThermo(), and fvPatchField< Type >::snGrad().

|
virtual |
Write.
Definition at line 115 of file gradientEnergyFvPatchScalarField.C.
References os(), fixedGradientFvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
