40#ifndef Foam_faMeshTools_H
41#define Foam_faMeshTools_H
80 const bool verbose =
false
107 const bool masterOnlyReading,
108 const bool verbose =
false
121 const bool masterOnlyReading,
122 const bool verbose =
false
142 const word& areaName,
146 const bool decompose,
147 const bool verbose =
false
159 const bool decompose,
160 const bool verbose =
false
180 const word& areaName,
186 const bool verbose =
false
200 const bool verbose =
false
232 const bool decompose,
236 const faMesh* procMesh =
nullptr
246 const bool primitiveOrdering =
false
253 const int verbose = 1
275 #include "faMeshTools.txx"
Forwards and collection of common area field types.
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
An encapsulation of filesystem-related operations.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Mesh consisting of general polyhedral cells.
A class for managing references or pointers (no reference counting).
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
Forwards for edge field types.