Velocity outlet boundary condition which corrects the extrapolated velocity to match the flow rate of the specified corresponding inlet patch. More...


Public Member Functions | |
| TypeName ("matchedFlowRateOutletVelocity") | |
| Runtime type information. More... | |
| matchedFlowRateOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
| Construct from patch and internal field. More... | |
| matchedFlowRateOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| matchedFlowRateOutletVelocityFvPatchVectorField (const matchedFlowRateOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| matchedFlowRateOutletVelocityFvPatchVectorField (const matchedFlowRateOutletVelocityFvPatchVectorField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| matchedFlowRateOutletVelocityFvPatchVectorField (const matchedFlowRateOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
| Copy constructor 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 | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Velocity outlet boundary condition which corrects the extrapolated velocity to match the flow rate of the specified corresponding inlet patch.
| Property | Description | Required | Default value |
|---|---|---|---|
inletPatch | Corresponding inlet patch name | yes | |
volumetric | Set volumetric or mass flow-rate | no | false |
rho | density field name | no | rho |
Example of the boundary condition specification for a volumetric flow rate:
<patchName>
{
type matchedFlowRateOutletVelocity;
inletPatch inlet;
value uniform (0 0 0);
}Definition at line 90 of file matchedFlowRateOutletVelocityFvPatchVectorField.H.
| matchedFlowRateOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 35 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
Referenced by matchedFlowRateOutletVelocityFvPatchVectorField::clone(), and matchedFlowRateOutletVelocityFvPatchVectorField::matchedFlowRateOutletVelocityFvPatchVectorField().

| matchedFlowRateOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 49 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
References Foam::evaluate(), matchedFlowRateOutletVelocityFvPatchVectorField::matchedFlowRateOutletVelocityFvPatchVectorField(), List< Type >::size(), and vectorField().

| matchedFlowRateOutletVelocityFvPatchVectorField | ( | const matchedFlowRateOutletVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
matchedFlowRateOutletVelocityFvPatchVectorField onto a new patch
Definition at line 85 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
References matchedFlowRateOutletVelocityFvPatchVectorField::matchedFlowRateOutletVelocityFvPatchVectorField().

|
delete |
Disallow copy without setting internal field reference.
| matchedFlowRateOutletVelocityFvPatchVectorField | ( | const matchedFlowRateOutletVelocityFvPatchVectorField & | ptf, |
| const DimensionedField< vector, volMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 101 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), fvPatch::boundaryMesh(), Foam::gSum(), Foam::mag(), Foam::max(), n, fvPatch::nf(), Foam::operator==(), fvPatch::Sf(), U, and fvPatchField< Type >::updateCoeffs().

| TypeName | ( | "matchedFlowRateOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 167 of file matchedFlowRateOutletVelocityFvPatchVectorField.H.
References matchedFlowRateOutletVelocityFvPatchVectorField::matchedFlowRateOutletVelocityFvPatchVectorField(), matchedFlowRateOutletVelocityFvPatchVectorField::updateCoeffs(), and matchedFlowRateOutletVelocityFvPatchVectorField::write().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 178 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, rho, and matchedFlowRateOutletVelocityFvPatchVectorField::write().
Referenced by matchedFlowRateOutletVelocityFvPatchVectorField::clone().


|
virtual |
Write.
Definition at line 229 of file matchedFlowRateOutletVelocityFvPatchVectorField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by matchedFlowRateOutletVelocityFvPatchVectorField::clone(), and matchedFlowRateOutletVelocityFvPatchVectorField::updateCoeffs().

