84 const label unmappedIndex
89 static void MapVolField
95 const bool fullyMapped
100 static void MapSurfaceField
106 const bool fullyMapped
111 static void MapDimField
133 const bool validBoundary =
true,
134 const bool fullyMapped =
false
147 const bool fullyMapped =
false
157 const bool fullyMapped =
false
193 static void MapDimField
197 const bool fullyMapped
202 static void MapVolField
210 const bool fullyMapped
215 static void MapSurfaceField
224 const bool fullyMapped
237 const bool fullyMapped =
false
254 const bool fullyMapped =
false
269 const bool fullyMapped =
false
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))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Container for information needed to couple to meshes. When constructed from two meshes and a geometri...
Adds two fvMeshes without using any polyMesh morphing. Uses polyMeshAdder.
static void MapSurfaceFields(const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd, const bool fullyMapped=false)
Map all surfaceFields of Type.
static autoPtr< mapAddedPolyMesh > add(fvMesh &mesh0, const fvMesh &mesh1, const faceCoupleInfo &coupleInfo, const bool validBoundary=true, const bool fullyMapped=false)
Inplace add mesh to fvMesh. Maps all stored fields. Returns map.
static void MapDimFields(const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd)
Map all DimensionedFields of Type.
static void MapVolFields(const mapAddedPolyMesh &, const fvMesh &mesh, const fvMesh &meshToAdd, const bool fullyMapped=false)
Map all volFields of Type.
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a mesh addition where we add a mesh ('added m...
Adds two meshes without using any polyMesh morphing.
A patch is a list of labels that address the faces in the global face list.
Mesh data needed to do the Finite Volume discretisation.
Mesh data needed to do the Finite Volume discretisation.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
Foam::PtrList< Foam::fvMesh > meshes(regionNames.size())
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
Forwards and collection of common volume field types.