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 > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given fixedFluxPressureFvPatchScalarField onto. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, 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... | |
void | map (const fixedFluxPressureFvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs (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... | |
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 62 of file fixedFluxPressureFvPatchScalarField.H.
fixedFluxPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file fixedFluxPressureFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimLength, fvPatchField< Type >::operator=(), p, and Foam::Zero.
Referenced by fixedFluxPressureFvPatchScalarField::clone().
fixedFluxPressureFvPatchScalarField | ( | const fixedFluxPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given fixedFluxPressureFvPatchScalarField onto.
a new patch
Definition at line 61 of file fixedFluxPressureFvPatchScalarField.C.
References fixedFluxPressureFvPatchScalarField::map().
|
delete |
Disallow copy without setting internal field reference.
fixedFluxPressureFvPatchScalarField | ( | const fixedFluxPressureFvPatchScalarField & | wbppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 76 of file fixedFluxPressureFvPatchScalarField.C.
TypeName | ( | "fixedFluxPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in fixedFluxExtrapolatedPressureFvPatchScalarField.
Definition at line 112 of file fixedFluxPressureFvPatchScalarField.H.
References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().
void map | ( | const fixedFluxPressureFvPatchScalarField & | ptf, |
const fieldMapper & | mapper | ||
) |
Map the given fvPatchField onto this fvPatchField.
Definition at line 89 of file fixedFluxPressureFvPatchScalarField.C.
Referenced by fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 100 of file fixedFluxPressureFvPatchScalarField.C.
|
virtual |
Update the patch pressure gradient field from the given snGradp.
Definition at line 110 of file fixedFluxPressureFvPatchScalarField.C.
|
virtual |
Update the patch pressure gradient field.
Definition at line 127 of file fixedFluxPressureFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and timeIndex.
|
virtual |
Write.
Definition at line 144 of file fixedFluxPressureFvPatchScalarField.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().