19 #ifndef GEOS_MESH_GENERATORS_VTKMESHGENERATOR_HPP
20 #define GEOS_MESH_GENERATORS_VTKMESHGENERATOR_HPP
24 #include "mesh/mpiCommunications/SpatialPartition.hpp"
26 #include <vtkDataSet.h>
45 Group *
const parent );
93 string const & blockName,
94 string const & meshFieldName,
105 constexpr
static char const * regionAttributeString() {
return "regionAttribute"; }
106 constexpr
static char const * mainBlockNameString() {
return "mainBlockName"; }
107 constexpr
static char const * faceBlockNamesString() {
return "faceBlocks"; }
108 constexpr
static char const * nodesetNamesString() {
return "nodesetNames"; }
109 constexpr
static char const * partitionRefinementString() {
return "partitionRefinement"; }
110 constexpr
static char const * partitionMethodString() {
return "partitionMethod"; }
111 constexpr
static char const * useGlobalIdsString() {
return "useGlobalIds"; }
115 void importVolumicFieldOnArray(
string const & cellBlockName,
116 string const & meshFieldName,
117 bool isMaterialField,
118 dataRepository::WrapperBase & wrapper )
const;
120 void importSurfacicFieldOnArray(
string const & faceBlockName,
121 string const & meshFieldName,
122 dataRepository::WrapperBase & wrapper )
const;
129 vtkSmartPointer< vtkDataSet > m_vtkMesh;
132 string m_attributeName;
135 string m_mainBlockName;
138 array1d< string > m_faceBlockNames;
141 std::map< string, vtkSmartPointer< vtkDataSet > > m_faceBlockMeshes;
147 integer m_partitionRefinement = 0;
153 vtk::PartitionMethod m_partitionMethod = vtk::PartitionMethod::parmetis;
156 vtk::CellMapType m_cellMap;
The CellBlockManager class provides an interface to ObjectManagerBase in order to manage CellBlock da...
Base class for external mesh generators (importers).
Block
Describe which kind of block must be considered.
The VTKMeshGenerator class provides a class implementation of VTK generated meshes.
VTKMeshGenerator(const string &name, Group *const parent)
Main constructor for MeshGenerator base class.
void importFieldOnArray(Block block, string const &blockName, string const &meshFieldName, bool isMaterialField, dataRepository::WrapperBase &wrapper) const override
import field from the mesh on the array accessible via the given wrapper.
virtual void fillCellBlockManager(CellBlockManager &cellBlockManager, SpatialPartition &partition) override
Generate the mesh using the VTK library.
virtual void freeResources() override
Free internal resources associated with mesh/data import.
static string catalogName()
Return the name of the VTKMeshGenerator in object Catalog.
Base class for all wrappers containing common operations.
array1d< string > string_array
A 1-dimensional array of geos::string types.
std::int32_t integer
Signed integer type.