Foam::fixedRhoFvPatchScalarField. More...
Public Member Functions | |
TypeName ("fixedRho") | |
Runtime type information. More... | |
fixedRhoFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fixedRhoFvPatchScalarField (const fixedRhoFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given fixedRhoFvPatchScalarField. More... | |
fixedRhoFvPatchScalarField (const fixedRhoFvPatchScalarField &, 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... | |
Foam::fixedRhoFvPatchScalarField.
This boundary condition provides a fixed density inlet condition for compressible solvers, where the density of calculated using:
where
![]() | = | pressure [Pa] |
![]() | = | density [kg/m^3] |
Property | Description | Required | Default value |
---|---|---|---|
p | Pressure field name | no | p |
psi | Compressibility field name | no | psi |
Example of the boundary condition specification:
<patchName> { type fixedRho; }
Definition at line 100 of file fixedRhoFvPatchScalarField.H.
fixedRhoFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 33 of file fixedRhoFvPatchScalarField.C.
Referenced by fixedRhoFvPatchScalarField::clone().
fixedRhoFvPatchScalarField | ( | const fixedRhoFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given fixedRhoFvPatchScalarField.
onto a new patch
Definition at line 46 of file fixedRhoFvPatchScalarField.C.
fixedRhoFvPatchScalarField | ( | const fixedRhoFvPatchScalarField & | frpsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 60 of file fixedRhoFvPatchScalarField.C.
TypeName | ( | "fixedRho" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 147 of file fixedRhoFvPatchScalarField.H.
References fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 74 of file fixedRhoFvPatchScalarField.C.
References Foam::operator==().
|
virtual |
Write.
Definition at line 93 of file fixedRhoFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().