51 scalar srcArea = 0, tgtArea = 0, intersectionArea = 0;
57 srcArea += isSrc ? a : 0;
58 tgtArea += isTgt ? a : 0;
59 intersectionArea += isSrc && isTgt ? a : 0;
62 << intersectionArea/srcArea <<
"/"
63 << intersectionArea/tgtArea <<
endl;
78 Info<<
indent <<
"Faces by number of edges = (";
81 Info<< (
n ?
" " :
"") << nEdgesNFaces[
n];
86 Info<< (
n ?
" " :
"") << nFacesNEdges[
n];
96 type() +
"_patch" + (writeSuffix.empty() ?
"" :
"_")
97 + writeSuffix +
".vtk";
117 type() +
"_patchEdges" + (writeSuffix.empty() ?
"" :
"_")
118 + writeSuffix +
".vtk";
119 Info<<
indent <<
"Writing patch edges to " << patchEdgesFileName
134 "intersectedPatchEdges",
154 const label srcNPoints,
155 const label tgtNPoints,
156 const label srcNEdges,
157 const label tgtNEdges,
158 const label srcNFaces,
159 const label tgtNFaces
164 srcPointPoints_(srcNPoints),
165 tgtPointPoints_(tgtNPoints),
169 srcEdgePoints_(srcNEdges),
170 tgtEdgePoints_(tgtNEdges),
179 srcFaceFaces_(srcNFaces),
180 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.
Field< label > labelField
Specialisation of Field<T> for label.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)