43 nbrRegionName_(patch_.boundaryMesh().mesh().
name()),
44 nbrPatchName_(patch_.
name()),
52 const word& nbrRegionName,
53 const word& nbrPatchName,
59 nbrRegionName_(nbrRegionName),
60 nbrPatchName_(nbrPatchName),
69 const bool transformIsNone
77 :
dict.lookupOrDefaultBackwardsCompatible<
word>
79 {
"neighbourRegion",
"sampleRegion"},
80 pp.boundaryMesh().mesh().name()
96 const bool haveCoupleGroup = coupleGroup_.valid();
98 const bool haveNbrRegion =
100 const bool haveNbrPatch =
105 if ((haveNbrRegion || haveNbrPatch || isSamePatch) && haveCoupleGroup)
108 <<
"Either neighbourRegion/Patch information or a coupleGroup "
112 if (haveNbrPatch && isSamePatch)
115 <<
"Either a neighbourPatch should be specified, or samePatch "
128 coupleGroup_(mpb.coupleGroup_),
129 nbrRegionName_(mpb.nbrRegionName_),
130 nbrPatchName_(mpb.nbrPatchName_),
131 transform_(mpb.transform_)
161 const polyMesh& nbrMesh = this->nbrMesh();
168 <<
"Cannot find patch " << nbrPatchName()
169 <<
" in region " << nbrRegionName() <<
endl
195 coupleGroup_.write(os);
197 transform_.write(os);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
ITstream & lookupBackwardsCompatible(const wordList &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream, trying a list of keywords.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Base class for engines and poly patches which provide mapping between two poly patches.
const polyPatch & nbrPolyPatch() const
Get the patch to map from.
virtual void write(Ostream &) const
Write as a dictionary.
const polyMesh & nbrMesh() const
Get the mesh for the region to map from.
virtual ~mappedPatchBaseBase()
Destructor.
bool haveNbr() const
Is the neighbour available?
static bool specified(const dictionary &dict)
Return whether or not the given dictionary contains a.
mappedPatchBaseBase(const polyPatch &)
Construct from patch.
const Time & time() const
Return time.
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.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
A class for handling words, derived from string.
static const word null
An empty word.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool valid(const PtrList< ModelType > &l)
errorManipArg< error, int > exit(error &err, const int errNo=1)
void writeEntryIfDifferent(Ostream &os, const word &entryName, const EntryType &value1, const EntryType &value2)
Helper function to write the keyword and entry only if the.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
dimensionSet transform(const dimensionSet &)
defineTypeNameAndDebug(combustionModel, 0)