Go to the documentation of this file.
55 #include "primitiveFacePatch.H"
68 label edgeI = pEdges[pEdgeI];
72 if (
e.otherVertex(v0) == v1)
79 <<
"Cannot find edge between mesh points " << v0 <<
" and " << v1
94 <<
"Cannot find patch " <<
name <<
nl
95 <<
"It should be present but of zero size" <<
endl
96 <<
"Valid patches are " <<
bMesh.names()
100 if (
bMesh[patchI].size())
103 <<
"Patch " <<
name <<
" is present but non-zero size"
110 int main(
int argc,
char *argv[])
121 runTime.functionObjects().off();
133 Info<<
"Read " << facesSet.size() <<
" faces to split" <<
endl <<
endl;
145 <<
"Face " << faces[i] <<
" in faceSet " << setName
146 <<
" is not an internal face."
176 const labelList& meshPoints = fPatch.meshPoints();
184 forAll(allEdgeFaces, patchEdgeI)
186 if (allEdgeFaces[patchEdgeI].size() == 1)
188 const edge&
e = fPatch.edges()[patchEdgeI];
194 meshPoints[
e.start()],
198 fenceEdges.insert(edgeI);
203 label startFaceI = faces[0];
219 zoneFlip[i] = !regionInfo.sideOwner().found(faces[i]);
238 Info<<
"Adding point and face zones" <<
endl;
261 Info<<
nl <<
"Constructed topologyModifier:" <<
endl;
262 splitter[0].writeDict(
Info);
280 Info<<
"Writing mesh to " << runTime.timeName() <<
endl;
284 <<
"Failed writing polyMesh."
static SLList< string > validArgs
A list of valid (mandatory) arguments.
virtual const pointField & points() const
Return raw points.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const labelListList & pointEdges() const
This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh b...
const faceZoneMesh & faceZones() const
Return face zone mesh.
virtual bool write() const
Write mesh using IO settings from time.
const fileName & pointsInstance() const
Return the current instance directory for points.
Attach/detach boundary mesh modifier. This modifier takes a set of internal faces and converts them i...
Determines the 'side' for every face and connected to a singly-connected (through edges) region of fa...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
virtual const labelList & faceOwner() const
Return face owner.
int main(int argc, char *argv[])
errorManip< error > abort(error &err)
const double e
Elementary charge.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setInstance(const fileName &)
Set the instance for mesh files.
virtual const faceList & faces() const
Return raw faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
bool optionFound(const word &opt) const
Return true if the named option is found.
A List with indirect addressing.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
void addZones(const List< pointZone * > &pz, const List< faceZone * > &fz, const List< cellZone * > &cz)
Add mesh zones.
word name(const complex &)
Return a string representation of a complex.
A list of faces which address into the list of points.
Cell-face mesh analysis engine.