checkGeometry.H
Go to the documentation of this file.
1 #include "label.H"
2 #include "HashSet.H"
3 #include "labelVector.H"
4 
5 namespace Foam
6 {
7  // Forward Declarations
8  class polyMesh;
9  class wedgePolyPatch;
10  class coordSetWriter;
11  class surfaceWriter;
12 
13  label findOppositeWedge(const polyMesh&, const wedgePolyPatch&);
14 
15  //- Check wedge orientation
16  bool checkWedges
17  (
18  const polyMesh&,
19  const bool report,
20  const Vector<label>&,
22  );
23 
24  //- Check 0th vertex on coupled faces
25  bool checkCoupledPoints(const polyMesh&, const bool report, labelHashSet*);
26 
27  //- Collect AMI weights to master and write
29  (
30  const polyMesh& mesh,
31  surfaceWriter& wr,
32  const fileName& fName,
33  const scalarField& weights,
34  const faceList& localFaces,
35  const labelList& meshPoints,
36  const Map<label>& meshPointMap,
37 
38  // Collect geometry
39  faceList& mergedFaces,
40  pointField& mergedPoints,
41  autoPtr<globalIndex>& globalFaces,
42  autoPtr<globalIndex>& globalPoints
43  );
44 
45  label checkGeometry
46  (
47  const polyMesh& mesh,
48  const bool allGeometry,
49  autoPtr<surfaceWriter>& surfWriter,
50  autoPtr<coordSetWriter>& setWriter
51  );
52 }
void collectAndWriteAMIWeights(const polyMesh &mesh, surfaceWriter &wr, const fileName &fName, const scalarField &weights, const faceList &localFaces, const labelList &meshPoints, const Map< label > &meshPointMap, faceList &mergedFaces, pointField &mergedPoints, autoPtr< globalIndex > &globalFaces, autoPtr< globalIndex > &globalPoints)
Collect AMI weights to master and write.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
Definition: HashSet.H:85
List< face > faceList
List of faces.
Definition: faceListFwd.H:39
vectorField pointField
pointField is a vectorField.
Definition: pointFieldFwd.H:38
dynamicFvMesh & mesh
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
bool checkWedges(const polyMesh &, const bool report, const Vector< label > &, labelHashSet *)
Check wedge orientation.
label findOppositeWedge(const polyMesh &, const wedgePolyPatch &)
bool checkCoupledPoints(const polyMesh &, const bool report, labelHashSet *)
Check 0th vertex on coupled faces.
List< label > labelList
A List of labels.
Definition: List.H:62
Namespace for OpenFOAM.
label checkGeometry(const polyMesh &mesh, const bool allGeometry, autoPtr< surfaceWriter > &surfWriter, autoPtr< coordSetWriter > &setWriter)