This boundary condition maps the velocity and flux from a neighbour patch to this patch. More...
Public Member Functions | |
TypeName ("mappedVelocityFlux") | |
Runtime type information. More... | |
mappedVelocityFluxFixedValueFvPatchField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
mappedVelocityFluxFixedValueFvPatchField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
mappedVelocityFluxFixedValueFvPatchField (const mappedVelocityFluxFixedValueFvPatchField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
mappedVelocityFluxFixedValueFvPatchField (const mappedVelocityFluxFixedValueFvPatchField &)=delete | |
Disallow copy without setting internal field reference. More... | |
mappedVelocityFluxFixedValueFvPatchField (const mappedVelocityFluxFixedValueFvPatchField &, 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 velocity and flux from a neighbour patch to this patch.
Property | Description | Required | Default value |
---|---|---|---|
phi | flux field name | no | phi |
Example of the boundary condition specification:
<patchName> { type mappedVelocityFlux; phi phi; value uniform 0; // place holder }
The underlying sample mode should be set to nearestPatchFace
or nearestFace
Note: This boundary condition can only be applied to patches that are of the mappedPolyPatch
type.
Definition at line 89 of file mappedVelocityFluxFixedValueFvPatchField.H.
mappedVelocityFluxFixedValueFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file mappedVelocityFluxFixedValueFvPatchField.C.
Referenced by mappedVelocityFluxFixedValueFvPatchField::clone(), and mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField().
mappedVelocityFluxFixedValueFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 50 of file mappedVelocityFluxFixedValueFvPatchField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField(), mappedPatchBase::mode(), and fvPatch::name().
mappedVelocityFluxFixedValueFvPatchField | ( | const mappedVelocityFluxFixedValueFvPatchField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
mappedVelocityFluxFixedValueFvPatchField onto a new patch
Definition at line 89 of file mappedVelocityFluxFixedValueFvPatchField.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField(), and fvPatch::name().
|
delete |
Disallow copy without setting internal field reference.
mappedVelocityFluxFixedValueFvPatchField | ( | const mappedVelocityFluxFixedValueFvPatchField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 114 of file mappedVelocityFluxFixedValueFvPatchField.C.
TypeName | ( | "mappedVelocityFlux" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 147 of file mappedVelocityFluxFixedValueFvPatchField.H.
References mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and mappedVelocityFluxFixedValueFvPatchField::write().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 126 of file mappedVelocityFluxFixedValueFvPatchField.C.
References Foam::abort(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), mappedPatchBase::distribute(), Foam::FatalError, FatalErrorInFunction, forAll, mappedPatchBase::mode(), UPstream::msgType(), mappedPatchBase::NEARESTFACE, mappedPatchBase::NEARESTPATCHFACE, mappedPatchBase::NEARESTPATCHFACEAMI, Foam::nl, Foam::operator==(), fvPatchField< Type >::patch(), patchi, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), fvPatch::start(), List< T >::transfer(), mappedVelocityFluxFixedValueFvPatchField::write(), and Foam::Zero.
Referenced by mappedVelocityFluxFixedValueFvPatchField::clone().
|
virtual |
Write.
Definition at line 217 of file mappedVelocityFluxFixedValueFvPatchField.C.
References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().
Referenced by mappedVelocityFluxFixedValueFvPatchField::clone(), and mappedVelocityFluxFixedValueFvPatchField::updateCoeffs().