This boundary condition provides a velocity outlet boundary condition for patches where the pressure is specified. The outflow velocity is obtained by "zeroGradient" and then corrected from the flux: More...
Public Member Functions | |
TypeName ("fluxCorrectedVelocity") | |
Runtime type information. More... | |
fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given fluxCorrectedVelocityFvPatchVectorField. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, 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... | |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::blocking) |
Evaluate the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Private Attributes | |
word | phiName_ |
Name of flux field. More... | |
word | rhoName_ |
Name of density field. More... | |
This boundary condition provides a velocity outlet boundary condition for patches where the pressure is specified. The outflow velocity is obtained by "zeroGradient" and then corrected from the flux:
where
![]() | = | velocity at the patch [m/s] |
![]() | = | velocity in cells adjacent to the patch [m/s] |
![]() | = | patch normal vectors |
![]() | = | flux at the patch [m3/s or kg/s] |
![]() | = | patch face area vectors [m2] |
where
Property | Description | Required | Default value |
---|---|---|---|
phi | name of flux field | no | phi |
rho | name of density field | no | rho |
Example of the boundary condition specification:
myPatch { type fluxCorrectedVelocity; phi phi; rho rho; }
Definition at line 129 of file fluxCorrectedVelocityFvPatchVectorField.H.
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 36 of file fluxCorrectedVelocityFvPatchVectorField.C.
Referenced by fluxCorrectedVelocityFvPatchVectorField::clone().
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 64 of file fluxCorrectedVelocityFvPatchVectorField.C.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given fluxCorrectedVelocityFvPatchVectorField.
onto a new patch
Definition at line 49 of file fluxCorrectedVelocityFvPatchVectorField.C.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | fcvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 80 of file fluxCorrectedVelocityFvPatchVectorField.C.
TypeName | ( | "fluxCorrectedVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 176 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 193 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
virtual |
Evaluate the patch field.
Definition at line 94 of file fluxCorrectedVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, dimensionedInternalField(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, Foam::operator==(), and phi.
|
virtual |
Write.
Definition at line 137 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fluxCorrectedVelocityFvPatchVectorField::phiName_, fluxCorrectedVelocityFvPatchVectorField::rhoName_, and fvPatchField::write().
|
private |
Name of flux field.
Definition at line 136 of file fluxCorrectedVelocityFvPatchVectorField.H.
Referenced by fluxCorrectedVelocityFvPatchVectorField::write().
|
private |
Name of density field.
Definition at line 139 of file fluxCorrectedVelocityFvPatchVectorField.H.
Referenced by fluxCorrectedVelocityFvPatchVectorField::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.