Go to the documentation of this file.
46 <<
"Mesh points already calculated."
62 <<
"Local faces already calculated."
73 mpLookup.insert(
mp[mpI], mpI);
76 const faceList& faces = enrichedFaces();
83 const face&
f = faces[faceI];
85 face& curlf = lf[faceI];
91 curlf[pointI] = mpLookup.find(
f[pointI])();
102 <<
"Local points already calculated."
113 lp[i] = pointMap().find(
mp[i])();
144 masterPatch_(masterPatch),
145 slavePatch_(slavePatch),
148 masterPatch_.meshPoints().size()
149 + slavePatch_.meshPoints().size()
151 pointMapComplete_(
false),
152 pointMergeMap_(2*slavePatch_.meshPoints().size()),
153 slavePointPointHits_(slavePointPointHits),
154 slavePointEdgeHits_(slavePointEdgeHits),
155 slavePointFaceHits_(slavePointFaceHits),
156 enrichedFacesPtr_(NULL),
157 meshPointsPtr_(NULL),
158 localFacesPtr_(NULL),
159 localPointsPtr_(NULL),
160 pointPointsPtr_(NULL),
161 masterPointFacesPtr_(NULL),
163 cutFaceMasterPtr_(NULL),
164 cutFaceSlavePtr_(NULL)
185 return *meshPointsPtr_;
196 return *localFacesPtr_;
202 if (!localPointsPtr_)
207 return *localPointsPtr_;
213 if (!pointPointsPtr_)
218 return *pointPointsPtr_;
224 const faceList& faces = enrichedFaces();
230 const face& curFace = faces[faceI];
234 if (!pointMap().
found(curFace[pointI]))
237 <<
"Point " << pointI <<
" of face " << faceI
238 <<
" global point index: " << curFace[pointI]
239 <<
" not supported in point map. This is not allowed."
262 const faceList& faces = localFaces();
266 const face&
f = faces[faceI];
271 str <<
' ' <<
f[fp]+1;
vectorField pointField
pointField is a vectorField.
const dimensionedScalar mp
Proton mass.
const labelList & meshPoints() const
Return mesh points.
A class for handling file names.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const pointField & localPoints() const
Return local points.
bool checkSupport() const
Check if the patch is fully supported.
labelList * meshPointsPtr_
Mesh points.
Map< point > & pointMap()
Return non-const access to point map to add points.
void deleteDemandDrivenData(DataPtr &dataPtr)
Pre-declare SubField and related Field type.
void writeOBJ(const fileName &) const
Debugging: dump graphical representation to obj format file.
void calcLocalPoints() const
Calculate local points.
errorManip< error > abort(error &err)
const faceList & localFaces() const
Return local faces.
const labelListList & pointPoints() const
Return point-point addressing.
~enrichedPatch()
Destructor.
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void clearOut()
Clear out demand-driven data.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
void calcMeshPoints() const
Calculate mesh points.
defineTypeNameAndDebug(combustionModel, 0)
enrichedPatch(const enrichedPatch &)
Disallow default bitwise copy construct.
void calcLocalFaces() const
Calculate local faces.
#define WarningInFunction
Report a warning using Foam::Warning.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
A list of faces which address into the list of points.