Go to the documentation of this file.
104 <<
" constructed AMI with " <<
nl
105 <<
" " <<
":srcAddress:" <<
AMIPtr_().srcAddress().size()
107 <<
" " <<
" tgAddress :" <<
AMIPtr_().tgtAddress().size()
151 nbrRegionName_(
dict.
lookup(
"neighbourRegion")),
152 sameRegion_(nbrRegionName_ == patch_.boundaryMesh().mesh().name()),
188 if (nbrPatchID_ == -1)
192 patch_.boundaryMesh().mesh().time().foundObject<
polyMesh>
206 if (nbrPatchID_ == -1)
209 <<
"Illegal neighbourPatch name " << nbrPatchName_
210 <<
nl <<
"Valid patch names are "
217 refCast<const regionCoupledBase>
225 <<
"Patch " << patch_.name()
226 <<
" specifies neighbour patch " << nbrPatchName()
227 <<
nl <<
" but that in return specifies "
239 if (nbrRegionName_ == patch_.boundaryMesh().mesh().name())
241 return patch_.index() < neighbPatchID();
245 return patch_.boundaryMesh().mesh().name() < nbrRegionName_;
253 const word surfType(surfDict_.lookupOrDefault<
word>(
"type",
"none"));
255 if (!surfPtr_.valid() && owner() && surfType !=
"none")
257 word surfName(surfDict_.lookupOrDefault(
"name", patch_.name()));
287 <<
"AMI interpolator only available to owner patch"
291 if (!AMIPtr_.valid())
310 return refCast<const regionCoupledBase>(pp);
346 if (!surfDict_.empty())
const autoPtr< searchableSurface > & surfPtr() const
Return a reference to the projection surface.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const regionCoupledBase & neighbPatch() const
Return a reference to the neighbour patch.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
label findPatchID(const word &patchName) const
Find patch index given a name.
A class for handling words, derived from string.
A class for handling file names.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
A List obtained as a section of another List.
const AMIPatchToPatchInterpolation & AMI() const
Return a reference to the AMI interpolator.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
const Time & time() const
Return time.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
autoPtr< searchableSurface > surfPtr_
Projection surface.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const polyPatch & patch_
Patch to sample.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< AMIPatchToPatchInterpolation > AMIPtr_
AMI interpolation class.
virtual bool order(PstreamBuffers &, const primitivePatch &, labelList &faceMap, labelList &rotation) const
Return new ordering for primitivePatch.
Mesh consisting of general polyhedral cells.
wordList names() const
Return a list of patch names.
const bool sameRegion_
Same region.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
virtual ~regionCoupledBase()
Destructor.
A patch is a list of labels that address the faces in the global face list.
label neighbPatchID() const
Neighbour patch ID.
const polyMesh & mesh() const
Return the mesh reference.
Base class with common functinality for regionCoupled polyPatch. It includes AMI.
const dictionary surfDict_
Dictionary used during projection surface construction.
bool owner() const
Does this side own the patch?
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word nbrPatchName_
Name of other half.
errorManip< error > abort(error &err)
static autoPtr< searchableSurface > New(const word &surfaceType, const IOobject &io, const dictionary &dict)
Return a reference to the selected searchableSurface.
const bool AMIReverse_
Flag to indicate that slave patch should be reversed for AMI.
regionCoupledBase(const polyPatch &)
Construct from patch.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
fileName path() const
Return path.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resetAMI() const
Reset the AMI interpolator.
const word & constant() const
Return constant name.
Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mes...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
dictionary subOrEmptyDict(const word &, const bool mustRead=false) const
Find and return a sub-dictionary as a copy, or.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
static const word null
An empty word.
const Time & time() const
Return the top-level database.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
const word & nbrPatchName() const
Neighbour patch name.
const word nbrRegionName_
Name of other region.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void clearGeom()
Clear geometry.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
#define WarningInFunction
Report a warning using Foam::Warning.
label nbrPatchID_
Index of other half.
A list of faces which address into the list of points.