75 origPatch().faceAreas(),
92 if (moveUpdate_ == moveUpdate::never)
96 else if (moveUpdate_ == moveUpdate::detect)
98 intersectionIsValid_ =
min(intersectionIsValid_, 1);
99 raysIsValid_ =
min(raysIsValid_, 1);
103 intersectionIsValid_ = 0;
112 intersectionIsValid_ = 0;
120 intersectionIsValid_ = 0;
152 intersectionIsValid_(0),
153 intersection_(false),
167 const word& nbrPatchName,
168 const word& origPatchName,
183 intersectionIsValid_(0),
184 intersection_(false),
201 intersectionIsValid_(0),
202 intersection_(false),
228 intersectionIsValid_(0),
229 intersection_(false),
232 moveUpdate_(pp.moveUpdate_)
242 const label newStart,
243 const word& nbrPatchName,
244 const word& origPatchName
249 intersectionIsValid_(0),
250 intersection_(false),
253 moveUpdate_(pp.moveUpdate_)
269 refCast<const nonConformalCyclicPolyPatch>
288 <<
"The non-conformal cyclic intersection is only available to "
292 const bool intersectionIsValid =
293 (intersectionIsValid_ == 2)
295 intersectionIsValid_ == 1
299 nbrPatch().origPatch()
303 if (!intersectionIsValid)
309 const string inRegionName =
318 nbrPatch().origPatch(),
321 origPatchName() + inRegionName,
322 nbrPatch().origPatchName() + inRegionName
327 intersectionIsValid_ = 2;
330 return intersection_;
340 <<
"The non-conformal cyclic rays is only available to "
344 const bool raysIsValid =
351 nbrPatch().origPatch()
361 const string inRegionName =
378 nbrPatch().origPatch(),
384 origPatchName() + inRegionName,
385 nbrPatch().origPatchName() + inRegionName
400 const label origFacei,
409 owner() ? *this : nbrPatch();
411 auto ownerRaysMethod =
417 (ownerPatch.
rays().*ownerRaysMethod)
421 nbrPatch().origPatch(),
438 writeEntryIfDifferent<word>
442 moveUpdateNames_[moveUpdate::always],
443 moveUpdateNames_[moveUpdate_]
Macros for easy insertion into run-time selection tables.
static nonConformalBoundary & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Initialise the NamedEnum HashTable from the static list of names.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
const cyclicPolyPatch & nbrPatch() const
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual void rename(const wordList &newNames)
Reset the patch name.
virtual void reorder(const labelUList &newToOldIndex)
Reset the patch index.
virtual void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
virtual void initTopoChange(PstreamBuffers &)
Initialise the update of the patch topology.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return reference to name.
static bool moving(const polyPatch &patch, const polyPatch &nbrPatch)
Return whether or not the patches have moved.
Class to generate patchToPatch coupling geometry. A full geometric intersection is done between a fac...
remote srcToTgtRay(const primitiveOldTimePatch &tgtPatch, const scalar fraction, const label srcFacei, const vector &srcP, const vector &srcN, point &tgtP) const
Compute a ray intersection from the source side to the target.
remote tgtToSrcRay(const primitiveOldTimePatch &srcPatch, const scalar fraction, const label tgtFacei, const vector &tgtP, const vector &tgtN, point &srcP) const
Compute a ray intersection from the target side to the source.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
virtual const pointField & points() const
Return raw points.
A patch is a list of labels that address the faces in the global face list.
virtual void clearGeom()
Clear geometry.
Struct for keeping processor, element (cell, face, point) index.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
bool read(const char *, int32_t &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void transform(GeometricField< Type, GeoMesh > &rtf, const GeometricField< tensor, GeoMesh > &trf, const GeometricField< Type, GeoMesh > &tf)
errorManip< error > abort(error &err)
PrimitiveOldTimePatch< SubList< face >, const pointField & > primitiveOldTimePatch
Addressing for a faceList slice.
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)