This boundary condition maps the flow rate from a neighbouring patch to this patch, then uses it to set a corresponding velocity in a direction normal to the patch. More...
Public Member Functions | |
TypeName ("mappedFlowRateVelocity") | |
Runtime type information. More... | |
mappedFlowRateVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fieldMapper &) | |
Construct by mapping given. More... | |
mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &)=delete | |
Disallow copy without setting internal field reference. More... | |
mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &, 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... | |
This boundary condition maps the flow rate from a neighbouring patch to this patch, then uses it to set a corresponding velocity in a direction normal to the patch.
Property | Description | Required | Default value |
---|---|---|---|
nbrPhi | name of flux field on neighbour mesh | no | phi |
phi | flux field name | no | phi |
rho | density field name | no | rho |
Example of the boundary condition specification:
<patchName> { type mappedFlowRateVelocity; value uniform (0 0 0); }
This boundary condition can only be applied to patches that are of mapped type.
Definition at line 94 of file mappedFlowRateVelocityFvPatchVectorField.H.
mappedFlowRateVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 35 of file mappedFlowRateVelocityFvPatchVectorField.C.
References dict, mappedPatchBaseBase::from::differentPatch, and mappedPatchBaseBase::validateMapForField().
Referenced by mappedFlowRateVelocityFvPatchVectorField::clone().
mappedFlowRateVelocityFvPatchVectorField | ( | const mappedFlowRateVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given.
mappedFlowRateVelocityFvPatchVectorField onto a new patch
Definition at line 58 of file mappedFlowRateVelocityFvPatchVectorField.C.
|
delete |
Disallow copy without setting internal field reference.
mappedFlowRateVelocityFvPatchVectorField | ( | const mappedFlowRateVelocityFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 74 of file mappedFlowRateVelocityFvPatchVectorField.C.
TypeName | ( | "mappedFlowRateVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 151 of file mappedFlowRateVelocityFvPatchVectorField.H.
References mappedFlowRateVelocityFvPatchVectorField::mappedFlowRateVelocityFvPatchVectorField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 90 of file mappedFlowRateVelocityFvPatchVectorField.C.
References DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMassFlux, Foam::dimVolumetricFlux, Foam::exit(), Foam::FatalError, FatalErrorInFunction, mappedFvPatchBaseBase::getMap(), fvPatch::lookupPatchField(), UPstream::msgType(), mappedFvPatchBaseBase::nbrFvPatch(), Foam::nl, Foam::operator==(), and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 152 of file mappedFlowRateVelocityFvPatchVectorField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().