This boundary condition provides a time-varying form of the uniform total pressure boundary condition Foam::totalPressureFvPatchField. More...
Public Member Functions | |
TypeName ("uniformTotalPressure") | |
Runtime type information. More... | |
uniformTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given patch field onto a new patch. More... | |
uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
uniformTotalPressureFvPatchScalarField (const uniformTotalPressureFvPatchScalarField &, 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... | |
const word & | UName () const |
Return the name of the velocity field. More... | |
word & | UName () |
Return reference to the name of the velocity field. More... | |
scalar | gamma () const |
Return the heat capacity ratio. More... | |
scalar & | gamma () |
Return reference to the heat capacity ratio to allow adjustment. More... | |
virtual void | updateCoeffs (const vectorField &Up) |
Update the coefficients associated with the patch field. 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 time-varying form of the uniform total pressure boundary condition Foam::totalPressureFvPatchField.
Property | Description | Required | Default value |
---|---|---|---|
U | Velocity field name | no | U |
phi | Flux field name | no | phi |
rho | Density field name | no | rho |
psi | Compressibility field name | no | none |
gamma | (Cp/Cv) | no | 1 |
p0 | Total pressure as a function of time | yes |
Example of the boundary condition specification:
<patchName> { type uniformTotalPressure; p0 1e5; }
The p0
entry is specified as a Function1 type, able to describe time varying functions.
Definition at line 113 of file uniformTotalPressureFvPatchScalarField.H.
uniformTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file uniformTotalPressureFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), fvPatchField< Type >::operator==(), and p.
Referenced by uniformTotalPressureFvPatchScalarField::clone().
uniformTotalPressureFvPatchScalarField | ( | const uniformTotalPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given patch field onto a new patch.
Definition at line 73 of file uniformTotalPressureFvPatchScalarField.C.
References fvPatchField< Type >::operator==().
|
delete |
Disallow copy without setting internal field reference.
uniformTotalPressureFvPatchScalarField | ( | const uniformTotalPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 96 of file uniformTotalPressureFvPatchScalarField.C.
TypeName | ( | "uniformTotalPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 178 of file uniformTotalPressureFvPatchScalarField.H.
References uniformTotalPressureFvPatchScalarField::uniformTotalPressureFvPatchScalarField().
|
inline |
Return the name of the velocity field.
Definition at line 195 of file uniformTotalPressureFvPatchScalarField.H.
|
inline |
Return reference to the name of the velocity field.
to allow adjustment
Definition at line 202 of file uniformTotalPressureFvPatchScalarField.H.
|
inline |
Return the heat capacity ratio.
Definition at line 208 of file uniformTotalPressureFvPatchScalarField.H.
|
inline |
Return reference to the heat capacity ratio to allow adjustment.
Definition at line 214 of file uniformTotalPressureFvPatchScalarField.H.
|
virtual |
Update the coefficients associated with the patch field.
using the given patch velocity field
Definition at line 115 of file uniformTotalPressureFvPatchScalarField.C.
References Foam::dimDensity, Foam::dimensions(), Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::magSqr(), Foam::neg(), Foam::nl, Foam::operator==(), Foam::pow(), and rho.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 193 of file uniformTotalPressureFvPatchScalarField.C.
|
virtual |
Write.
Definition at line 199 of file uniformTotalPressureFvPatchScalarField.C.
References Foam::dimensions(), fvPatchField< Type >::write(), and Foam::writeEntry().