29 #ifndef NEMOSYS_INPGEOMESH_H_ 30 #define NEMOSYS_INPGEOMESH_H_ 55 std::map<std::string, std::set<vtkIdType>>
nodeSets;
59 std::map<std::string, std::set<vtkIdType>>
elSets;
63 std::map<std::string, std::set<vtkIdType>>
surfaces;
71 void write(
const std::string &fileName)
override;
72 void report(std::ostream &out)
const override;
80 explicit inpGeoMesh(
const std::string &fileName);
82 void reconstructGeo()
override;
90 void resetNative()
override;
91 static std::pair<GeoMesh, InpSets> inp2GM(
const std::string &fileName);
102 #endif // NEMOSYS_INPGEOMESH_H_ std::map< std::string, std::vector< vtkIdType > > elSets
Map from ELSET name to element ids (ids given by .inp file)
std::map< std::string, std::set< vtkIdType > > surfaces
SURFACE keyword; indexing matches GeoMesh::sideSet.
std::map< std::string, std::set< vtkIdType > > nodeSets
NSET keyword; indexing matches GeoMesh::mesh.
Class representing meshes in CalculiX input deck (similar to ABAQUS)
geoMeshBase * Read(const std::string &fileName)
Read a mesh from file.
std::map< std::string, std::vector< vtkIdType > > nodeSets
Map from NSET name to node ids (ids given by .inp file)
geoMeshBase * New(MeshType meshType)
Create a new mesh object.
decltype(InpSets::elSets) & getElSets()
std::map< std::string, std::set< vtkIdType > > elSets
ELSET keyword; indexing matches GeoMesh::mesh.
std::shared_ptr< meshBase > mesh
std::map< std::string, std::vector< std::pair< vtkIdType, int > > > surfaces
Map from SURFACE name to (element id, side) (id and side both use .inp IDs)
abstract class to specify geometry and mesh data
InpSets inpSets_
Holds data specific to inp format.
decltype(InpSets::nodeSets) & getNSets()
decltype(InpSets::surfaces) & getSurfaces()