This boundary condition provides a cyclic condition for p_rgh. It applies corrections to the value and gradient on both sides of the cyclic to account for the non-cylicity of the gravitational force. More...
Public Member Functions | |
TypeName ("prghCyclicPressure") | |
Runtime type information. More... | |
prghCyclicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
prghCyclicPressureFvPatchScalarField (const prghCyclicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given fixedValueTypeFvPatchField. More... | |
prghCyclicPressureFvPatchScalarField (const prghCyclicPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
prghCyclicPressureFvPatchScalarField (const prghCyclicPressureFvPatchScalarField &, 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 tmp< scalarField > | jump () const |
Return the "jump". More... | |
virtual void | map (const fvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | reset (const fvPatchScalarField &) |
Reset the fvPatchField to the given fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the patch pressure gradient field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
This boundary condition provides a cyclic condition for p_rgh. It applies corrections to the value and gradient on both sides of the cyclic to account for the non-cylicity of the gravitational force.
This condition is only needed when the cyclic patches have a transformation and a normal component in the direction of gravity. If the cyclic patches are orthogonal to the direction gravity, then a normal cyclic boundary condition can be used instead.
Care must be taken when using this boundary condition that the simulation is actually cyclic. The following constraints apply:
Property | Description | Required | Default value |
---|---|---|---|
patchType | underlying patch type (should be cyclic ) | yes | |
rhoInf | far-field density | yes |
Example of the boundary condition specification:
<patchName> { type prghCyclicPressure; patchType cyclic; rhoInf 1; }
Definition at line 104 of file prghCyclicPressureFvPatchScalarField.H.
prghCyclicPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 35 of file prghCyclicPressureFvPatchScalarField.C.
References dict, DimensionedField< Type, GeoMesh >::dimensions(), and p.
prghCyclicPressureFvPatchScalarField | ( | const prghCyclicPressureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given fixedValueTypeFvPatchField.
onto a new patch
Definition at line 66 of file prghCyclicPressureFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
prghCyclicPressureFvPatchScalarField | ( | const prghCyclicPressureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 81 of file prghCyclicPressureFvPatchScalarField.C.
TypeName | ( | "prghCyclicPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 177 of file prghCyclicPressureFvPatchScalarField.H.
|
virtual |
Return the "jump".
Definition at line 97 of file prghCyclicPressureFvPatchScalarField.C.
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 103 of file prghCyclicPressureFvPatchScalarField.C.
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 118 of file prghCyclicPressureFvPatchScalarField.C.
|
virtual |
Update the patch pressure gradient field.
Definition at line 132 of file prghCyclicPressureFvPatchScalarField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::mesh(), Foam::name(), snGradScheme< Type >::New(), and patchi.
|
virtual |
Write.
Definition at line 184 of file prghCyclicPressureFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().