Nektar++
|
Converter for VTK files. More...
#include <InputStar.h>
Public Member Functions | |
InputStar (NekMeshUtils::MeshSharedPtr m) | |
virtual | ~InputStar () |
virtual void | Process () |
Populate and validate required data structures. More... | |
void | ReadZone (int &nComposite) |
Public Member Functions inherited from Nektar::NekMeshUtils::InputModule | |
NEKMESHUTILS_EXPORT | InputModule (MeshSharedPtr p_m) |
NEKMESHUTILS_EXPORT void | OpenStream () |
Open a file for input. More... | |
Public Member Functions inherited from Nektar::NekMeshUtils::Module | |
NEKMESHUTILS_EXPORT | Module (MeshSharedPtr p_m) |
NEKMESHUTILS_EXPORT void | RegisterConfig (std::string key, std::string value) |
Register a configuration option with a module. More... | |
NEKMESHUTILS_EXPORT void | PrintConfig () |
Print out all configuration options for a module. More... | |
NEKMESHUTILS_EXPORT void | SetDefaults () |
Sets default configuration options for those which have not been set. More... | |
NEKMESHUTILS_EXPORT MeshSharedPtr | GetMesh () |
virtual NEKMESHUTILS_EXPORT void | ProcessVertices () |
Extract element vertices. More... | |
virtual NEKMESHUTILS_EXPORT void | ProcessEdges (bool ReprocessEdges=true) |
Extract element edges. More... | |
virtual NEKMESHUTILS_EXPORT void | ProcessFaces (bool ReprocessFaces=true) |
Extract element faces. More... | |
virtual NEKMESHUTILS_EXPORT void | ProcessElements () |
Generate element IDs. More... | |
virtual NEKMESHUTILS_EXPORT void | ProcessComposites () |
Generate composites. More... | |
virtual NEKMESHUTILS_EXPORT void | ClearElementLinks () |
Static Public Member Functions | |
static NekMeshUtils::ModuleSharedPtr | create (NekMeshUtils::MeshSharedPtr m) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static NekMeshUtils::ModuleKey | className |
Protected Member Functions | |
void | GenElement3D (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, int i, std::vector< int > &ElementFaces, std::map< int, std::vector< int > > &FaceNodes, int ncomposite, bool DoOrient) |
void | GenElement2D (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, int i, std::vector< int > &FaceNodes, int ncomposite) |
Array< OneD, int > | SortEdgeNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, std::vector< int > &FaceNodes) |
Array< OneD, int > | SortFaceNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, std::vector< int > &ElementFaces, std::map< int, std::vector< int > > &FaceNodes) |
void | ResetNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, Array< OneD, std::vector< int > > &ElementFaces, std::map< int, std::vector< int > > &FaceNodes) |
Protected Member Functions inherited from Nektar::NekMeshUtils::InputModule | |
NEKMESHUTILS_EXPORT void | PrintSummary () |
Print summary of elements. More... | |
Protected Member Functions inherited from Nektar::NekMeshUtils::Module | |
NEKMESHUTILS_EXPORT void | ReorderPrisms (PerMap &perFaces) |
Reorder node IDs so that prisms and tetrahedra are aligned correctly. More... | |
NEKMESHUTILS_EXPORT void | PrismLines (int prism, PerMap &perFaces, std::set< int > &prismsDone, std::vector< ElementSharedPtr > &line) |
Private Member Functions | |
void | InitCCM (void) |
void | ReadNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes) |
void | ReadInternalFaces (std::map< int, std::vector< int > > &FacesNodes, Array< OneD, std::vector< int > > &ElementFaces) |
void | ReadBoundaryFaces (std::vector< std::vector< int > > &BndElementFaces, std::map< int, std::vector< int > > &FacesNodes, Array< OneD, std::vector< int > > &ElementFaces, std::vector< std::string > &facelabels) |
void | SetupElements (void) |
Private Attributes | |
CCMIOError | m_ccmErr |
CCMIOID | m_ccmTopology |
CCMIOID | m_ccmProcessor |
std::map< int, std::string > | m_faceLabels |
Additional Inherited Members | |
Protected Attributes inherited from Nektar::NekMeshUtils::InputModule | |
io::filtering_istream | m_mshFile |
Input stream. More... | |
std::ifstream | m_mshFileStream |
Input stream. More... | |
Protected Attributes inherited from Nektar::NekMeshUtils::Module | |
MeshSharedPtr | m_mesh |
Mesh object. More... | |
std::map< std::string, ConfigOption > | m_config |
List of configuration values. More... | |
Converter for VTK files.
Definition at line 48 of file InputStar.h.
Nektar::Utilities::InputStar::InputStar | ( | NekMeshUtils::MeshSharedPtr | m | ) |
Definition at line 56 of file InputStar.cpp.
References Nektar::NekMeshUtils::Module::m_config.
|
virtual |
Definition at line 64 of file InputStar.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 52 of file InputStar.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Definition at line 458 of file InputStar.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::LibUtilities::eQuadrilateral, Nektar::LibUtilities::eTriangle, Nektar::NekMeshUtils::GetElementFactory(), Nektar::NekMeshUtils::Module::m_mesh, and SortEdgeNodes().
Referenced by SetupElements().
|
protected |
Definition at line 498 of file InputStar.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::LibUtilities::ePrism, Nektar::LibUtilities::ePyramid, Nektar::LibUtilities::eTetrahedron, Nektar::NekMeshUtils::GetElementFactory(), Nektar::NekMeshUtils::Module::m_mesh, and SortFaceNodes().
Referenced by SetupElements().
Definition at line 893 of file InputStar.cpp.
References m_ccmErr, m_ccmProcessor, and Nektar::NekMeshUtils::Module::m_config.
Referenced by Process().
|
virtual |
Populate and validate required data structures.
Tecplot file Polyhedron format contains a list of nodes, a node count per face, the node ids, Element ids that are on the left of each face and Element ids which are on the right of each face. There are then a series of zone of each surface. In the case of a surface the number of nodes is not provided indicating it is a 2D zone.
pFilename | Filename of Tecplot file to read. |
Implements Nektar::NekMeshUtils::Module.
Definition at line 77 of file InputStar.cpp.
References InitCCM(), Nektar::NekMeshUtils::Module::m_mesh, Nektar::NekMeshUtils::InputModule::PrintSummary(), Nektar::NekMeshUtils::Module::ProcessComposites(), Nektar::NekMeshUtils::Module::ProcessEdges(), Nektar::NekMeshUtils::Module::ProcessElements(), Nektar::NekMeshUtils::Module::ProcessFaces(), and SetupElements().
|
private |
Definition at line 1057 of file InputStar.cpp.
References ASSERTL0, m_ccmErr, and m_ccmTopology.
Referenced by SetupElements().
|
private |
Definition at line 963 of file InputStar.cpp.
References ASSERTL0, m_ccmErr, and m_ccmTopology.
Referenced by SetupElements().
|
private |
Definition at line 923 of file InputStar.cpp.
References m_ccmErr, m_ccmProcessor, m_ccmTopology, and class_topology::Node.
Referenced by SetupElements().
void Nektar::Utilities::InputStar::ReadZone | ( | int & | nComposite | ) |
|
protected |
Definition at line 210 of file InputStar.cpp.
References ASSERTL1, Nektar::iterator, Nektar::Utilities::PrismLineFaces(), and SortFaceNodes().
Referenced by SetupElements().
Definition at line 99 of file InputStar.cpp.
References ASSERTL0, GenElement2D(), GenElement3D(), Nektar::NekMeshUtils::Module::m_config, Nektar::NekMeshUtils::Module::m_mesh, CellMLToNektar.pycml::msg, Nektar::NekMeshUtils::Module::ProcessVertices(), ReadBoundaryFaces(), ReadInternalFaces(), ReadNodes(), and ResetNodes().
Referenced by Process().
|
protected |
Definition at line 559 of file InputStar.cpp.
References Nektar::NekMeshUtils::Node::curl(), and Nektar::NekMeshUtils::Node::dot().
Referenced by GenElement2D().
|
protected |
Definition at line 613 of file InputStar.cpp.
References ASSERTL0, ASSERTL1, Nektar::NekMeshUtils::Node::curl(), and Nektar::NekMeshUtils::Node::dot().
Referenced by GenElement3D(), and ResetNodes().
|
static |
Definition at line 56 of file InputStar.h.
|
private |
Definition at line 93 of file InputStar.h.
Referenced by InitCCM(), ReadBoundaryFaces(), ReadInternalFaces(), and ReadNodes().
|
private |
Definition at line 95 of file InputStar.h.
Referenced by InitCCM(), and ReadNodes().
|
private |
Definition at line 94 of file InputStar.h.
Referenced by ReadBoundaryFaces(), ReadInternalFaces(), and ReadNodes().
|
private |
Definition at line 96 of file InputStar.h.