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") | |
fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
virtual tmp< fvPatchVectorField > | clone () const |
fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::blocking) |
virtual void | write (Ostream &) const |
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:
<patchName> { type fluxCorrectedVelocity; phi phi; rho rho; }
Definition at line 127 of file fluxCorrectedVelocityFvPatchVectorField.H.
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 32 of file fluxCorrectedVelocityFvPatchVectorField.C.
Referenced by fluxCorrectedVelocityFvPatchVectorField::clone().
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 60 of file fluxCorrectedVelocityFvPatchVectorField.C.
References dict.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 45 of file fluxCorrectedVelocityFvPatchVectorField.C.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | fcvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Definition at line 77 of file fluxCorrectedVelocityFvPatchVectorField.C.
TypeName | ( | "fluxCorrectedVelocity" | ) |
|
inlinevirtual |
Definition at line 174 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
inlinevirtual |
Definition at line 191 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
virtual |
Definition at line 91 of file fluxCorrectedVelocityFvPatchVectorField.C.
References Foam::dimArea, Foam::dimDensity, Foam::dimVelocity, Foam::stringOps::evaluate(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, Foam::operator==(), Foam::foamVersion::patch, and phi.
|
virtual |
Definition at line 134 of file fluxCorrectedVelocityFvPatchVectorField.C.
References os(), and fvPatchField::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.