33 namespace patchToPatches
52 const scalar l = bb.
maxDim();
70 srcLocalTgtFaces_[srcFacei].append(tgtFacei);
71 tgtLocalSrcFaces_[tgtFacei].append(srcFacei);
98 srcSpheres_.resize(srcPatch.size());
101 srcSpheres_[srcFacei] =
108 tgtSpheres_.resize(tgtPatch.size());
109 forAll(tgtPatch, tgtFacei)
111 tgtSpheres_[tgtFacei] =
#define forAll(list, i)
Loop across all elements in list.
const Field< PointType > & points() const
Return reference to global points.
A List with indirect addressing.
point midpoint() const
The midpoint of the bounding box.
scalar maxDim() const
Largest length/height/width dimension.
static bool overlap(const boundSphere &a, const boundSphere &b)
Return whether two spheres overlap.
A face is a list of labels corresponding to mesh vertices.
Class to generate coupling geometry between two primitive patches.
virtual void initialise(const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch)
Initialisation.
Class to generate patchToPatch coupling geometry. Couples a face to the single nearby opposite face o...
nearby(const bool reverse)
Construct from components.
virtual bool intersectFaces(const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch, const label srcFacei, const label tgtFacei)
Intersect two faces.
virtual treeBoundBox srcBox(const face &srcFace, const pointField &srcPoints, const vectorField &srcPointNormals) const
Get the bound box for a source face.
virtual void initialise(const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch)
Initialisation.
Standard boundBox + extra functionality for use in octree.
const dimensionedScalar c
Speed of light in a vacuum.
defineTypeNameAndDebug(intersection, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void reverse(UList< T > &, const label n)