Nektar++
|
Converter for VTK files. More...
#include <InputStarTec.h>
Public Member Functions | |
InputTec (NekMeshUtils::MeshSharedPtr m) | |
virtual | ~InputTec () |
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::vector< std::vector< int > > &FaceNodes, int ncomposite, bool DoOrient) |
void | GenElement2D (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, int i, std::vector< int > &ElementFaces, std::vector< std::vector< int > > &FaceNodes, int ncomposite) |
Array< OneD, int > | SortEdgeNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, std::vector< int > &ElementFaces, std::vector< std::vector< int > > &FaceNodes) |
Array< OneD, int > | SortFaceNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, std::vector< int > &ElementFaces, std::vector< std::vector< int > > &FaceNodes) |
void | ResetNodes (std::vector< NekMeshUtils::NodeSharedPtr > &Nodes, Array< OneD, std::vector< int > > &ElementFaces, std::vector< 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) |
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 46 of file InputStarTec.h.
Nektar::Utilities::InputTec::InputTec | ( | NekMeshUtils::MeshSharedPtr | m | ) |
Definition at line 56 of file InputStarTec.cpp.
|
virtual |
Definition at line 60 of file InputStarTec.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 50 of file InputStarTec.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Definition at line 672 of file InputStarTec.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 ReadZone().
|
protected |
Definition at line 714 of file InputStarTec.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 ReadZone().
|
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 74 of file InputStarTec.cpp.
References Nektar::NekMeshUtils::Module::m_mesh, Nektar::NekMeshUtils::InputModule::m_mshFile, Nektar::NekMeshUtils::InputModule::OpenStream(), Nektar::NekMeshUtils::InputModule::PrintSummary(), Nektar::NekMeshUtils::Module::ProcessComposites(), Nektar::NekMeshUtils::Module::ProcessEdges(), Nektar::NekMeshUtils::Module::ProcessElements(), Nektar::NekMeshUtils::Module::ProcessFaces(), and ReadZone().
void Nektar::Utilities::InputTec::ReadZone | ( | int & | nComposite | ) |
Definition at line 120 of file InputStarTec.cpp.
References ASSERTL0, GenElement2D(), GenElement3D(), Nektar::iterator, Nektar::NekMeshUtils::Module::m_mesh, Nektar::NekMeshUtils::InputModule::m_mshFile, class_topology::Node, Nektar::NekMeshUtils::Module::ProcessVertices(), and ResetNodes().
Referenced by Process().
|
protected |
Definition at line 424 of file InputStarTec.cpp.
References ASSERTL1, Nektar::iterator, Nektar::Utilities::PrismLineFaces(), and SortFaceNodes().
Referenced by ReadZone().
|
protected |
Definition at line 775 of file InputStarTec.cpp.
References ASSERTL1, Nektar::NekMeshUtils::Node::curl(), and Nektar::NekMeshUtils::Node::dot().
Referenced by GenElement2D().
|
protected |
Definition at line 867 of file InputStarTec.cpp.
References ASSERTL0, ASSERTL1, Nektar::NekMeshUtils::Node::curl(), and Nektar::NekMeshUtils::Node::dot().
Referenced by GenElement3D(), and ResetNodes().
|
static |
Definition at line 54 of file InputStarTec.h.