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...
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 [m^3/s or kg/s] | |
= | patch face area vectors [m^2] |
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; }
Note: If reverse flow is possible or expected use the pressureInletOutletVelocity condition instead.
Definition at line 126 of file fluxCorrectedVelocityFvPatchVectorField.H.
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fvPatchField< Type >::operator=().
Referenced by fluxCorrectedVelocityFvPatchVectorField::clone().
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given fluxCorrectedVelocityFvPatchVectorField.
onto a new patch
Definition at line 50 of file fluxCorrectedVelocityFvPatchVectorField.C.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | fcvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 65 of file fluxCorrectedVelocityFvPatchVectorField.C.
TypeName | ( | "fluxCorrectedVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 173 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
virtual |
Evaluate the patch field.
Definition at line 80 of file fluxCorrectedVelocityFvPatchVectorField.C.
References DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMassFlux, Foam::dimVolumetricFlux, Foam::evaluate(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, and Foam::operator==().
|
virtual |
Write.
Definition at line 124 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().