This boundary condition provides a total pressure condition for patches in a rotating frame. More...
Public Member Functions | |
TypeName ("rotatingTotalPressure") | |
Runtime type information. More... | |
rotatingTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given rotatingTotalPressureFvPatchScalarField. More... | |
rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
rotatingTotalPressureFvPatchScalarField (const rotatingTotalPressureFvPatchScalarField &, 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... | |
Public Member Functions inherited from totalPressureFvPatchScalarField | |
TypeName ("totalPressure") | |
Runtime type information. More... | |
totalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given totalPressureFvPatchScalarField. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
totalPressureFvPatchScalarField (const totalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
Public Member Functions inherited from dynamicPressureFvPatchScalarField | |
TypeName ("dynamicPressure") | |
Runtime type information. More... | |
dynamicPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given dynamicPressureFvPatchScalarField. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
dynamicPressureFvPatchScalarField (const dynamicPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor setting internal field reference. More... | |
virtual void | map (const fvPatchScalarField &, const fvPatchFieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | reset (const fvPatchScalarField &) |
Reset the fvPatchField to the given fvPatchField. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from dynamicPressureFvPatchScalarField | |
void | updateCoeffs (const scalarField &p0p, const scalarField &K0mKp) |
Update the coefficients associated with the patch field. More... | |
Protected Attributes inherited from totalPressureFvPatchScalarField | |
const word | UName_ |
Name of the velocity field. More... | |
const word | phiName_ |
Name of the flux field. More... | |
Protected Attributes inherited from dynamicPressureFvPatchScalarField | |
const word | rhoName_ |
Name of the density field used to normalise the mass flux. More... | |
const word | psiName_ |
Name of the compressibility field used to calculate the wave speed. More... | |
const scalar | gamma_ |
Heat capacity ratio. More... | |
scalarField | p0_ |
Reference pressure. More... | |
This boundary condition provides a total pressure condition for patches in a rotating frame.
Property | Description | Required | Default value |
---|---|---|---|
U | velocity field name | no | U |
phi | flux field name | no | phi |
rho | density field name | no | none |
psi | compressibility field name | no | none |
gamma | ratio of specific heats (Cp/Cv) | yes | |
p0 | static pressure reference | yes | |
origin | origin of rotation in Cartesian co-ordinates | yes | |
axis | axis of rotation | yes | |
omega | angular velocity of the frame [rad/s] | no | |
rpm | angular velocity of the frame [rpm] | no |
Example of the boundary condition specification:
<patchName> { type rotatingTotalPressure; U U; phi phi; rho rho; psi psi; gamma 1.4; p0 uniform 1e5; origin (0 0 0); axis (0 0 1); rpm 100; }
The omega
or rpm
entries are Function1 of time, see Foam::Function1s.
Definition at line 143 of file rotatingTotalPressureFvPatchScalarField.H.
rotatingTotalPressureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file rotatingTotalPressureFvPatchScalarField.C.
Referenced by rotatingTotalPressureFvPatchScalarField::clone().
rotatingTotalPressureFvPatchScalarField | ( | const rotatingTotalPressureFvPatchScalarField & | psf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given rotatingTotalPressureFvPatchScalarField.
onto a new patch
Definition at line 49 of file rotatingTotalPressureFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
rotatingTotalPressureFvPatchScalarField | ( | const rotatingTotalPressureFvPatchScalarField & | psf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 65 of file rotatingTotalPressureFvPatchScalarField.C.
TypeName | ( | "rotatingTotalPressure" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 199 of file rotatingTotalPressureFvPatchScalarField.H.
References rotatingTotalPressureFvPatchScalarField::rotatingTotalPressureFvPatchScalarField().
|
virtual |
Update the coefficients associated with the patch field.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 81 of file rotatingTotalPressureFvPatchScalarField.C.
References Foam::mag(), Foam::magSqr(), Foam::neg(), omega, and dynamicPressureFvPatchScalarField::updateCoeffs().
|
virtual |
Write.
Reimplemented from totalPressureFvPatchScalarField.
Definition at line 108 of file rotatingTotalPressureFvPatchScalarField.C.
References totalPressureFvPatchScalarField::write(), and Foam::writeEntry().