59 if (!isA<mappedFvPatchBaseBase>(patch))
62 <<
"Patch " << patch.
name() <<
" is not of type "
66 return refCast<const mappedFvPatchBaseBase>(patch);
88 const fvMesh& nbrMesh = this->nbrMesh();
96 <<
"Cannot find patch " << mapper_.nbrPatchName()
97 <<
" in region " << mapper_.nbrRegionName() <<
endl
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual const word & name() const
Return name.
Base class for fv patches that provide mapping between two fv patches.
mappedFvPatchBaseBase(const fvPatch &patch)
Construct from a patch.
const fvPatch & nbrFvPatch() const
Get the patch to map from.
static const mappedFvPatchBaseBase & getMap(const fvPatch &patch)
Cast the given fvPatch to a mappedFvPatchBaseBase. Handle errors.
bool haveNbr() const
Is the neighbour available?
const fvMesh & nbrMesh() const
Get the mesh for the region to map from.
virtual ~mappedFvPatchBaseBase()
Destructor.
Base class for engines and poly patches which provide mapping between two poly patches.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
bool foundObject(const word &name) const
Is the named Type in registry.
label findIndex(const word &patchName) const
Find patch index given a name.
wordList names() const
Return the list of patch names.
const polyMesh & mesh() const
Return the mesh reference.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
defineTypeNameAndDebug(combustionModel, 0)