This boundary condition provides static pressure condition for p_rgh, calculated as: More...


Public Member Functions | |
| TypeName ("freeSurfacePressure") | |
| Runtime type information. More... | |
| freeSurfacePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| freeSurfacePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| freeSurfacePressureFvPatchScalarField (const freeSurfacePressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| freeSurfacePressureFvPatchScalarField (const freeSurfacePressureFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| freeSurfacePressureFvPatchScalarField (const freeSurfacePressureFvPatchScalarField &, 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... | |
| const scalarField & | pa () const |
| Return the ambient pressure. More... | |
| scalarField & | pa () |
| Return reference to the ambient pressure to allow adjustment. More... | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. More... | |
| virtual void | rmap (const fvPatchScalarField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Protected Attributes | |
| scalarField | pa_ |
| Ambient pressure. More... | |
This boundary condition provides static pressure condition for p_rgh, calculated as:
where
| = | Free surface modified pressure |
| = | Free surface ambient pressure |
| = | acceleration due to gravity [m/s^2] |
| Property | Description | Required | Default value |
|---|---|---|---|
pa | static ambient pressure | yes | 0 |
Example of the boundary condition specification:
<patchName>
{
type freeSurfacePressure;
pa uniform 0;
value uniform 0; // optional initial value
}Definition at line 102 of file freeSurfacePressureFvPatchScalarField.H.
| freeSurfacePressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 34 of file freeSurfacePressureFvPatchScalarField.C.
Referenced by freeSurfacePressureFvPatchScalarField::clone().

| freeSurfacePressureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 46 of file freeSurfacePressureFvPatchScalarField.C.
References dict, dictionary::found(), p, and UList< T >::size().

| freeSurfacePressureFvPatchScalarField | ( | const freeSurfacePressureFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
freeSurfacePressureFvPatchScalarField onto a new patch
Definition at line 71 of file freeSurfacePressureFvPatchScalarField.C.
Construct as copy.
Definition at line 85 of file freeSurfacePressureFvPatchScalarField.C.
| freeSurfacePressureFvPatchScalarField | ( | const freeSurfacePressureFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 96 of file freeSurfacePressureFvPatchScalarField.C.
| TypeName | ( | "freeSurfacePressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 168 of file freeSurfacePressureFvPatchScalarField.H.
References freeSurfacePressureFvPatchScalarField::freeSurfacePressureFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 189 of file freeSurfacePressureFvPatchScalarField.H.
References freeSurfacePressureFvPatchScalarField::freeSurfacePressureFvPatchScalarField().

|
inline |
Return the ambient pressure.
Definition at line 207 of file freeSurfacePressureFvPatchScalarField.H.
References freeSurfacePressureFvPatchScalarField::pa_.
|
inline |
Return reference to the ambient pressure to allow adjustment.
Definition at line 215 of file freeSurfacePressureFvPatchScalarField.H.
References freeSurfacePressureFvPatchScalarField::pa_.
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 109 of file freeSurfacePressureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 119 of file freeSurfacePressureFvPatchScalarField.C.
References freeSurfacePressureFvPatchScalarField::pa_, and freeSurfacePressureFvPatchScalarField::rmap().
Referenced by freeSurfacePressureFvPatchScalarField::rmap().


|
virtual |
Update the coefficients associated with the patch field.
Definition at line 133 of file freeSurfacePressureFvPatchScalarField.C.
References interfaceTrackingFvMesh::freeSurfacePressureJump(), objectRegistry::lookupObject(), mesh, freeSurfacePressureFvPatchScalarField::pa_, and Foam::foamVersion::patch.

|
virtual |
Write.
Definition at line 160 of file freeSurfacePressureFvPatchScalarField.C.
References os(), and fvPatchField< scalar >::write().

|
protected |
Ambient pressure.
Definition at line 113 of file freeSurfacePressureFvPatchScalarField.H.
Referenced by freeSurfacePressureFvPatchScalarField::pa(), freeSurfacePressureFvPatchScalarField::rmap(), and freeSurfacePressureFvPatchScalarField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.