This boundary condition provides a gradient condition for energy. This is selected when the corresponding temperature condition is zeroGradient, fixedGradient or gradientEnergyCalculatedTemperature. 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... | |
virtual void | write (Ostream &) const |
Write. More... | |
This boundary condition provides a gradient condition for energy. This is selected when the corresponding temperature condition is zeroGradient, fixedGradient or gradientEnergyCalculatedTemperature.
If the temperature condition is fixedGradient or zeroGradient, the parameters of the energy condition are obtained from a linearisation of the corresponding parameters of the temperature condition.
If the temperature condition is gradientEnergyCalculatedTemperature, then the temperature condition explicitly provides an energy gradient field, so no linearisation is needed.
Definition at line 63 of file gradientEnergyFvPatchScalarField.H.
gradientEnergyFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 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 62 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 49 of file gradientEnergyFvPatchScalarField.C.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().
gradientEnergyFvPatchScalarField | ( | const gradientEnergyFvPatchScalarField & | tppsf | ) |
Copy constructor.
Definition at line 74 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 84 of file gradientEnergyFvPatchScalarField.C.
TypeName | ( | "gradientEnergy" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 108 of file gradientEnergyFvPatchScalarField.H.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 125 of file gradientEnergyFvPatchScalarField.H.
References gradientEnergyFvPatchScalarField::gradientEnergyFvPatchScalarField(), gradientEnergyFvPatchScalarField::updateCoeffs(), and gradientEnergyFvPatchScalarField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 95 of file gradientEnergyFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), basicThermo::Cpv(), fvPatchField< Type >::evaluate(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, basicThermo::he(), gradientEnergyCalculatedTemperatureFvPatchScalarField::heGradient(), basicThermo::lookupThermo(), patchi, fvPatchField< Type >::snGrad(), basicThermo::T(), and thermo.
Referenced by gradientEnergyFvPatchScalarField::clone().
|
virtual |
Write.
Definition at line 147 of file gradientEnergyFvPatchScalarField.C.
References Foam::makePatchTypeField(), Foam::vtkWriteOps::write(), and Foam::writeEntry().
Referenced by gradientEnergyFvPatchScalarField::clone().