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 &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
mappedVelocityFluxFixedValueFvPatchField (const mappedVelocityFluxFixedValueFvPatchField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy 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... | |
Private Attributes | |
word | phiName_ |
Name of flux field. 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:
myPatch { type mappedVelocityFlux; phi phi; value uniform 0; // place holder }
The underlying sample mode should be set to nearestPatchFace
or nearestFace
mappedPolyPatch
type.Definition at line 93 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().
mappedVelocityFluxFixedValueFvPatchField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 75 of file mappedVelocityFluxFixedValueFvPatchField.C.
References dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, mappedPatchBase::mode(), and p.
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 50 of file mappedVelocityFluxFixedValueFvPatchField.C.
References dimensionedInternalField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, and p.
Construct as copy.
Definition at line 114 of file mappedVelocityFluxFixedValueFvPatchField.C.
mappedVelocityFluxFixedValueFvPatchField | ( | const mappedVelocityFluxFixedValueFvPatchField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 125 of file mappedVelocityFluxFixedValueFvPatchField.C.
TypeName | ( | "mappedVelocityFlux" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 143 of file mappedVelocityFluxFixedValueFvPatchField.H.
References mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 160 of file mappedVelocityFluxFixedValueFvPatchField.H.
References mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 137 of file mappedVelocityFluxFixedValueFvPatchField.C.
References Foam::abort(), GeometricField::boundaryField(), polyMesh::boundaryMesh(), dimensionedInternalField(), mappedPatchBase::distribute(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), forAll, objectRegistry::lookupObject(), mappedPatchBase::mode(), UPstream::msgType(), mappedPatchBase::NEARESTFACE, mappedPatchBase::NEARESTPATCHFACE, mappedPatchBase::NEARESTPATCHFACEAMI, primitiveMesh::nFaces(), Foam::nl, Foam::operator==(), fvPatchField::patch(), mappedVelocityFluxFixedValueFvPatchField::phiName_, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch(), fvPatch::start(), and Vector< scalar >::zero.
|
virtual |
Write.
Definition at line 230 of file mappedVelocityFluxFixedValueFvPatchField.C.
References fvPatchField::write().
|
private |
Name of flux field.
Definition at line 100 of file mappedVelocityFluxFixedValueFvPatchField.H.
Referenced by mappedVelocityFluxFixedValueFvPatchField::updateCoeffs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.