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...
#include <fluxCorrectedVelocityFvPatchVectorField.H>


Public Member Functions | |
| TypeName ("fluxCorrectedVelocity") | |
| Runtime type information. | |
| fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. | |
| fluxCorrectedVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given fluxCorrectedVelocityFvPatchVectorField. | |
| fluxCorrectedVelocityFvPatchVectorField (const fluxCorrectedVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< vector > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
| Evaluate the patch field. | |
| virtual void | write (Ostream &) const |
| Write. | |
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|}
\]](form_146.png)
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 ) |
Construct from patch and internal field.
Definition at line 30 of file fluxCorrectedVelocityFvPatchVectorField.C.
References p.
Referenced by fluxCorrectedVelocityFvPatchVectorField(), fluxCorrectedVelocityFvPatchVectorField(), and TypeName().

| fluxCorrectedVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 58 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 43 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fluxCorrectedVelocityFvPatchVectorField(), and p.

| fluxCorrectedVelocityFvPatchVectorField | ( | const fluxCorrectedVelocityFvPatchVectorField & | fcvpvf, |
| const DimensionedField< vector, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 72 of file fluxCorrectedVelocityFvPatchVectorField.C.
References fluxCorrectedVelocityFvPatchVectorField().

| TypeName | ( | "fluxCorrectedVelocity" | ) |
Runtime type information.
References fluxCorrectedVelocityFvPatchVectorField().

|
inlinevirtual |
Return a clone.
Definition at line 198 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 206 of file fluxCorrectedVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Evaluate the patch field.
Definition at line 87 of file fluxCorrectedVelocityFvPatchVectorField.C.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, Foam::exit(), Foam::FatalError, FatalErrorInFunction, n, and Foam::operator==().

|
virtual |
Write.
Definition at line 126 of file fluxCorrectedVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), and fvPatchField< Type >::writeValueEntry().
