This velocity inlet boundary condition is applied to patches where the pressure is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces. More...
Public Member Functions | |
TypeName ("pressureInletVelocity") | |
Runtime type information. More... | |
pressureInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
pressureInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given pressureInletVelocityFvPatchVectorField. More... | |
pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
pressureInletVelocityFvPatchVectorField (const pressureInletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
const word & | rhoName () const |
Return the name of rho. More... | |
word & | rhoName () |
Return reference to the name of rho to allow adjustment. More... | |
const word & | phiName () const |
Return the name of phi. More... | |
word & | phiName () |
Return reference to the name of phi to allow adjustment. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | operator= (const fvPatchField< vector > &pvf) |
Private Attributes | |
word | phiName_ |
Flux field name. More... | |
word | rhoName_ |
Density field name. More... | |
This velocity inlet boundary condition is applied to patches where the pressure is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces.
Example of the boundary condition specification:
myPatch { type pressureInletVelocity; phi phi; rho rho; value uniform 0; }
Definition at line 75 of file pressureInletVelocityFvPatchVectorField.H.
pressureInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file pressureInletVelocityFvPatchVectorField.C.
Referenced by pressureInletVelocityFvPatchVectorField::clone().
pressureInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 63 of file pressureInletVelocityFvPatchVectorField.C.
References dict, p, and vectorField().
pressureInletVelocityFvPatchVectorField | ( | const pressureInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given pressureInletVelocityFvPatchVectorField.
onto a new patch
Definition at line 48 of file pressureInletVelocityFvPatchVectorField.C.
Construct as copy.
Definition at line 79 of file pressureInletVelocityFvPatchVectorField.C.
pressureInletVelocityFvPatchVectorField | ( | const pressureInletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 91 of file pressureInletVelocityFvPatchVectorField.C.
TypeName | ( | "pressureInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in pressureInletUniformVelocityFvPatchVectorField.
Definition at line 128 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Reimplemented in pressureInletUniformVelocityFvPatchVectorField.
Definition at line 145 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::pressureInletVelocityFvPatchVectorField().
|
inline |
Return the name of rho.
Definition at line 161 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::rhoName_.
|
inline |
Return reference to the name of rho to allow adjustment.
Definition at line 167 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::rhoName_.
|
inline |
Return the name of phi.
Definition at line 173 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::phiName_.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 179 of file pressureInletVelocityFvPatchVectorField.H.
References pressureInletVelocityFvPatchVectorField::phiName_.
|
virtual |
Update the coefficients associated with the patch field.
Reimplemented in pressureInletUniformVelocityFvPatchVectorField.
Definition at line 104 of file pressureInletVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, dimensionedInternalField(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, Foam::operator==(), phi, pressureInletVelocityFvPatchVectorField::phiName_, and pressureInletVelocityFvPatchVectorField::rhoName_.
Referenced by pressureInletUniformVelocityFvPatchVectorField::updateCoeffs().
|
virtual |
Write.
Definition at line 145 of file pressureInletVelocityFvPatchVectorField.C.
References fvPatchField::write().
|
virtual |
Reimplemented in pressureInletUniformVelocityFvPatchVectorField.
Definition at line 157 of file pressureInletVelocityFvPatchVectorField.C.
References fvPatchField::operator=().
|
private |
Flux field name.
Definition at line 82 of file pressureInletVelocityFvPatchVectorField.H.
Referenced by pressureInletVelocityFvPatchVectorField::phiName(), and pressureInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Density field name.
Definition at line 85 of file pressureInletVelocityFvPatchVectorField.H.
Referenced by pressureInletVelocityFvPatchVectorField::rhoName(), and pressureInletVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.