This boundary condition is designed to be used in conjunction with surface film modelling. It provides a velocity inlet boundary condition for patches where the film height is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces using: More...
Public Member Functions | |
TypeName ("filmHeightInletVelocity") | |
Runtime type information. More... | |
filmHeightInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
filmHeightInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
filmHeightInletVelocityFvPatchVectorField (const filmHeightInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given filmHeightInletVelocityFvPatchVectorField. More... | |
filmHeightInletVelocityFvPatchVectorField (const filmHeightInletVelocityFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
filmHeightInletVelocityFvPatchVectorField (const filmHeightInletVelocityFvPatchVectorField &, 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 & | phiName () const |
Return the name of phi. More... | |
word & | phiName () |
Return reference to the name of phi to allow adjustment. 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 & | deltafName () const |
Return the name of deltaf. More... | |
word & | deltafName () |
Return reference to the name of df 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_ |
Name of flux field. More... | |
word | rhoName_ |
Name of density field. More... | |
word | deltafName_ |
Name of film height field. More... | |
This boundary condition is designed to be used in conjunction with surface film modelling. It provides a velocity inlet boundary condition for patches where the film height is specified. The inflow velocity is obtained from the flux with a direction normal to the patch faces using:
where
![]() | = | patch velocity [m/s] |
![]() | = | patch normal vector |
![]() | = | mass flux [kg/s] |
![]() | = | density [kg/m3] |
![]() | = | patch face area vectors [m2] |
![]() | = | film height [m] |
Patch usage
Property | Description | Required | Default value |
---|---|---|---|
phi | Flux field name | no | phi |
rho | density field name | no | rho |
deltaf | height field name | no | deltaf |
Example of the boundary condition specification:
myPatch { type filmHeightInletVelocity; phi phi; rho rho; deltaf deltaf; value uniform (0 0 0); // initial velocity / [m/s] }
Definition at line 137 of file filmHeightInletVelocityFvPatchVectorField.H.
filmHeightInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 35 of file filmHeightInletVelocityFvPatchVectorField.C.
Referenced by filmHeightInletVelocityFvPatchVectorField::clone().
filmHeightInletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 65 of file filmHeightInletVelocityFvPatchVectorField.C.
References dict, p, and vectorField().
filmHeightInletVelocityFvPatchVectorField | ( | const filmHeightInletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given filmHeightInletVelocityFvPatchVectorField.
onto a new patch
Definition at line 49 of file filmHeightInletVelocityFvPatchVectorField.C.
filmHeightInletVelocityFvPatchVectorField | ( | const filmHeightInletVelocityFvPatchVectorField & | fhivpvf | ) |
Construct as copy.
Definition at line 82 of file filmHeightInletVelocityFvPatchVectorField.C.
filmHeightInletVelocityFvPatchVectorField | ( | const filmHeightInletVelocityFvPatchVectorField & | fhivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 95 of file filmHeightInletVelocityFvPatchVectorField.C.
TypeName | ( | "filmHeightInletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 193 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::filmHeightInletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 210 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::filmHeightInletVelocityFvPatchVectorField().
|
inline |
Return the name of phi.
Definition at line 226 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::phiName_.
|
inline |
Return reference to the name of phi to allow adjustment.
Definition at line 232 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::phiName_.
|
inline |
Return the name of rho.
Definition at line 238 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::rhoName_.
|
inline |
Return reference to the name of rho to allow adjustment.
Definition at line 244 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::rhoName_.
|
inline |
Return the name of deltaf.
Definition at line 250 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::deltafName_.
|
inline |
Return reference to the name of df to allow adjustment.
Definition at line 256 of file filmHeightInletVelocityFvPatchVectorField.H.
References filmHeightInletVelocityFvPatchVectorField::deltafName_.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 109 of file filmHeightInletVelocityFvPatchVectorField.C.
References filmHeightInletVelocityFvPatchVectorField::deltafName_, n, Foam::operator==(), filmHeightInletVelocityFvPatchVectorField::phiName_, and filmHeightInletVelocityFvPatchVectorField::rhoName_.
|
virtual |
Write.
Definition at line 134 of file filmHeightInletVelocityFvPatchVectorField.C.
References fvPatchField::write().
|
virtual |
Definition at line 147 of file filmHeightInletVelocityFvPatchVectorField.C.
References fvPatchField::operator=().
|
private |
Name of flux field.
Definition at line 144 of file filmHeightInletVelocityFvPatchVectorField.H.
Referenced by filmHeightInletVelocityFvPatchVectorField::phiName(), and filmHeightInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Name of density field.
Definition at line 147 of file filmHeightInletVelocityFvPatchVectorField.H.
Referenced by filmHeightInletVelocityFvPatchVectorField::rhoName(), and filmHeightInletVelocityFvPatchVectorField::updateCoeffs().
|
private |
Name of film height field.
Definition at line 150 of file filmHeightInletVelocityFvPatchVectorField.H.
Referenced by filmHeightInletVelocityFvPatchVectorField::deltafName(), and filmHeightInletVelocityFvPatchVectorField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.