Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area. More...
Public Member Functions | |
TypeName ("mappedFlowRate") | |
Runtime type information. More... | |
mappedFlowRateFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
mappedFlowRateFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &) | |
Construct as copy. More... | |
mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< vector > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
Clone with an internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area.
The inlet mass flux is taken from the neighbour region.
The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. The current density is used to correct the velocity when applying the mass basis.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
rho | density field name | no | rho |
neigPhi | name of flux field on neighbour mesh | yes |
Example of the boundary condition specification:
<patchName> { type mappedFlowRate; phi phi; rho rho; neigPhi phi; value uniform (0 0 0); // placeholder }
Definition at line 95 of file mappedFlowRateFvPatchVectorField.H.
mappedFlowRateFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 32 of file mappedFlowRateFvPatchVectorField.C.
mappedFlowRateFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 60 of file mappedFlowRateFvPatchVectorField.C.
mappedFlowRateFvPatchVectorField | ( | const mappedFlowRateFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
mappedFlowRateFvPatchVectorField onto a new patch
Definition at line 45 of file mappedFlowRateFvPatchVectorField.C.
mappedFlowRateFvPatchVectorField | ( | const mappedFlowRateFvPatchVectorField & | ptf | ) |
Construct as copy.
Definition at line 74 of file mappedFlowRateFvPatchVectorField.C.
mappedFlowRateFvPatchVectorField | ( | const mappedFlowRateFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 86 of file mappedFlowRateFvPatchVectorField.C.
TypeName | ( | "mappedFlowRate" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 180 of file mappedFlowRateFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 189 of file mappedFlowRateFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 100 of file mappedFlowRateFvPatchVectorField.C.
References boundary, Foam::ensightOutput::debug, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimMass, Foam::dimTime, Foam::dimVolume, mappedPatchBase::distribute(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gSum(), UPstream::incrMsgType(), patchIdentifier::index(), Foam::Info, fvPatch::lookupPatchField(), UPstream::msgType(), n, fvPatch::name(), Foam::nl, Foam::operator==(), Foam::foamVersion::patch, phi, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePolyPatch(), U, and fvPatchField< Type >::updateCoeffs().
|
virtual |
Write.
Definition at line 179 of file mappedFlowRateFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), Ostream::writeEntryIfDifferent(), and fvPatchField< Type >::writeValueEntry().