51 scalar area = 0, srcArea = 0, tgtArea = 0;
59 Info<<
indent <<
"Source/target coverage = " << srcArea/area
60 <<
"/" << tgtArea/area <<
endl;
75 Info<<
indent <<
"Faces by number of edges = (";
78 Info<< (
n ?
" " :
"") << nEdgesNFaces[
n];
83 Info<< (
n ?
" " :
"") << nFacesNEdges[
n];
93 type() +
"_patch" + (writeSuffix.empty() ?
"" :
"_")
94 + writeSuffix +
".vtk";
114 type() +
"_patchEdges" + (writeSuffix.empty() ?
"" :
"_")
115 + writeSuffix +
".vtk";
116 Info<<
indent <<
"Writing patch edges to " << patchEdgesFileName
131 "intersectedPatchEdges",
151 const label srcNPoints,
152 const label tgtNPoints,
153 const label srcNEdges,
154 const label tgtNEdges,
155 const label srcNFaces,
156 const label tgtNFaces
161 srcPointPoints_(srcNPoints),
162 tgtPointPoints_(tgtNPoints),
166 srcEdgePoints_(srcNEdges),
167 tgtEdgePoints_(tgtNEdges),
176 srcFaceFaces_(srcNFaces),
177 tgtFaceFaces_(tgtNFaces),
#define forAll(list, i)
Loop across all elements in list.
void resize(const label)
Alter the addressed list size.
void size(const label)
Override size to be inconsistent with allocated storage.
label nEdges() const
Return number of edges in patch.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
const labelListList & edgeFaces() const
Return edge-face addressing.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
A List obtained as a section of another List.
A class for handling file names.
Base class for patch intersections. Provides type name and debugging. See templated derivatives for a...
virtual word type() const =0
DynamicField< point > points_
The intersection points.
virtual ~patchIntersection()
Destructor.
void report(const word &writeSuffix=word::null)
Report properties of the intersection process.
DynamicList< face > faces_
The intersection faces.
DynamicList< label > faceTgtFaces_
The intersection faces' corresponding target faces, or -1.
patchIntersection(const label srcNPoints, const label tgtNPoints, const label srcNEdges, const label tgtNEdges, const label srcNFaces, const label tgtNFaces)
Construct given sizes.
static const bool orientToSource_
Flag to set whether the faces of the intersection are oriented the.
DynamicList< label > faceSrcFaces_
The intersection faces' corresponding source faces, or -1.
A class for handling words, derived from string.
void write(const fileName &file, const word &title, const bool binary, const PointField &points, const VertexList &vertices, const LineList &lines, const FaceList &faces, const wordList &fieldNames, const boolList &fieldIsPointValues, const UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesConstArg(Type, nullArg))
Write VTK polygonal data to a file. Takes a PtrList of fields of labels and.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
List< labelList > labelListList
A List of labelList.
defineTypeNameAndDebug(combustionModel, 0)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Field< label > labelField
Specialisation of Field<T> for label.
Ostream & indent(Ostream &os)
Indent stream.