This boundary condition sets the pressure gradient to the provided value such that the flux on the boundary is that specified by the velocity boundary condition. More...
Public Member Functions | |
TypeName ("fixedFluxPressure") | |
Runtime type information. More... | |
fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given fixedFluxPressureFvPatchScalarField onto. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy 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 | updateSnGrad (const scalarField &snGradp) |
Update the patch pressure gradient field from the given snGradp. More... | |
virtual void | updateCoeffs () |
Update the patch pressure gradient field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
![]() | |
updateableSnGrad ()=default | |
Constructor. More... | |
virtual | ~updateableSnGrad ()=default |
Destructor. More... | |
This boundary condition sets the pressure gradient to the provided value such that the flux on the boundary is that specified by the velocity boundary condition.
Example of the boundary condition specification:
<patchName> { type fixedFluxPressure; }
Definition at line 69 of file fixedFluxPressureFvPatchScalarField.H.
fixedFluxPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file fixedFluxPressureFvPatchScalarField.C.
Referenced by fixedFluxPressureFvPatchScalarField::clone().
fixedFluxPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 49 of file fixedFluxPressureFvPatchScalarField.C.
fixedFluxPressureFvPatchScalarField | ( | const fixedFluxPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given fixedFluxPressureFvPatchScalarField onto.
a new patch
Definition at line 76 of file fixedFluxPressureFvPatchScalarField.C.
References Foam::notNull(), and Foam::foamVersion::patch.
fixedFluxPressureFvPatchScalarField | ( | const fixedFluxPressureFvPatchScalarField & | wbppsf | ) |
Construct as copy.
Definition at line 118 of file fixedFluxPressureFvPatchScalarField.C.
fixedFluxPressureFvPatchScalarField | ( | const fixedFluxPressureFvPatchScalarField & | wbppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 128 of file fixedFluxPressureFvPatchScalarField.C.
TypeName | ( | "fixedFluxPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in fixedFluxExtrapolatedPressureFvPatchScalarField.
Definition at line 120 of file fixedFluxPressureFvPatchScalarField.H.
References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in fixedFluxExtrapolatedPressureFvPatchScalarField.
Definition at line 137 of file fixedFluxPressureFvPatchScalarField.H.
References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().
|
virtual |
Update the patch pressure gradient field from the given snGradp.
Implements updateableSnGrad.
Definition at line 141 of file fixedFluxPressureFvPatchScalarField.C.
|
virtual |
Update the patch pressure gradient field.
Definition at line 157 of file fixedFluxPressureFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and timeIndex.
|
virtual |
Write.
Definition at line 174 of file fixedFluxPressureFvPatchScalarField.C.
References os(), and Foam::vtk::write().