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:
\[ U_p = U_c - n (n \cdot U_c) + \frac{n \phi_p}{|S_f|} \]
where
\( U_p \) | = | velocity at the patch [m/s] |
\( U_c \) | = | velocity in cells adjacent to the patch [m/s] |
\( n \) | = | patch normal vectors |
\( \phi_p \) | = | flux at the patch [m3/s or kg/s] |
\( S_f \) | = | 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 131 of file fluxCorrectedVelocityFvPatchVectorField.H.
fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 39 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 67 of file fluxCorrectedVelocityFvPatchVectorField.C.
References dict.
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 52 of file fluxCorrectedVelocityFvPatchVectorField.C.
fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | fcvpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 84 of file fluxCorrectedVelocityFvPatchVectorField.C.
TypeName | ( | "fluxCorrectedVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 178 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 195 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fluxCorrectedVelocityFvPatchVectorField::fluxCorrectedVelocityFvPatchVectorField().
|
virtual |
Evaluate the patch field.
Definition at line 98 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 |
Write.
Definition at line 141 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fvPatchField< vector >::write(), and Ostream::writeEntryIfDifferent().