Nektar++
|
Converter for VTK files. More...
#include <InputStarTec.h>
Public Member Functions | |
InputTec (MeshSharedPtr m) | |
virtual | ~InputTec () |
virtual void | Process () |
Populate and validate required data structures. | |
void | ReadZone (int &nComposite) |
Public Member Functions inherited from Nektar::Utilities::InputModule | |
InputModule (FieldSharedPtr p_m) | |
void | AddFile (string fileType, string fileName) |
InputModule (MeshSharedPtr p_m) | |
void | OpenStream () |
Open a file for input. | |
Public Member Functions inherited from Nektar::Utilities::Module | |
Module (FieldSharedPtr p_f) | |
virtual void | Process (po::variables_map &vm)=0 |
void | RegisterConfig (string key, string value) |
Register a configuration option with a module. | |
void | PrintConfig () |
Print out all configuration options for a module. | |
void | SetDefaults () |
Sets default configuration options for those which have not been set. | |
bool | GetRequireEquiSpaced (void) |
void | SetRequireEquiSpaced (bool pVal) |
Module (MeshSharedPtr p_m) | |
void | RegisterConfig (string key, string value) |
void | PrintConfig () |
void | SetDefaults () |
MeshSharedPtr | GetMesh () |
virtual void | ProcessVertices () |
Extract element vertices. |
Static Public Member Functions | |
static ModuleSharedPtr | create (MeshSharedPtr m) |
Creates an instance of this class. |
Static Public Attributes | |
static ModuleKey | className |
Protected Member Functions | |
void | GenElement3D (vector< NodeSharedPtr > &Nodes, int i, vector< int > &ElementFaces, vector< vector< int > > &FaceNodes, int ncomposite, bool DoOrient) |
void | GenElement2D (vector< NodeSharedPtr > &Nodes, int i, vector< int > &ElementFaces, vector< vector< int > > &FaceNodes, int ncomposite) |
Array< OneD, int > | SortEdgeNodes (vector< NodeSharedPtr > &Nodes, vector< int > &ElementFaces, vector< vector< int > > &FaceNodes) |
Array< OneD, int > | SortFaceNodes (vector< NodeSharedPtr > &Nodes, vector< int > &ElementFaces, vector< vector< int > > &FaceNodes) |
void | ResetNodes (vector< NodeSharedPtr > &Nodes, Array< OneD, vector< int > > &ElementFaces, vector< vector< int > > &FaceNodes) |
Protected Member Functions inherited from Nektar::Utilities::InputModule | |
void | PrintSummary () |
Print summary of elements. | |
void | PrintSummary () |
Print summary of elements. | |
Protected Member Functions inherited from Nektar::Utilities::Module | |
virtual void | ProcessEdges (bool ReprocessEdges=true) |
Extract element edges. | |
virtual void | ProcessFaces (bool ReprocessFaces=true) |
Extract element faces. | |
virtual void | ProcessElements () |
Generate element IDs. | |
virtual void | ProcessComposites () |
Generate composites. | |
void | ReorderPrisms (PerMap &perFaces) |
Reorder node IDs so that prisms and tetrahedra are aligned correctly. | |
void | PrismLines (int prism, PerMap &perFaces, set< int > &prismsDone, vector< ElementSharedPtr > &line) |
Additional Inherited Members | |
Protected Attributes inherited from Nektar::Utilities::InputModule | |
set< string > | m_allowedFiles |
std::ifstream | m_mshFile |
Input stream. |
Converter for VTK files.
Definition at line 47 of file InputStarTec.h.
Nektar::Utilities::InputTec::InputTec | ( | MeshSharedPtr | m | ) |
Definition at line 61 of file InputStarTec.cpp.
|
virtual |
Definition at line 66 of file InputStarTec.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 51 of file InputStarTec.h.
|
protected |
Definition at line 676 of file InputStarTec.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::LibUtilities::eQuadrilateral, Nektar::LibUtilities::eTriangle, Nektar::Utilities::GetElementFactory(), Nektar::Utilities::Module::m_mesh, and SortEdgeNodes().
Referenced by ReadZone().
|
protected |
Definition at line 717 of file InputStarTec.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::LibUtilities::ePrism, Nektar::LibUtilities::ePyramid, Nektar::LibUtilities::eTetrahedron, Nektar::Utilities::GetElementFactory(), Nektar::Utilities::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::Utilities::Module.
Definition at line 82 of file InputStarTec.cpp.
References Nektar::Utilities::Module::m_mesh, Nektar::Utilities::InputModule::m_mshFile, Nektar::Utilities::InputModule::OpenStream(), Nektar::Utilities::InputModule::PrintSummary(), Nektar::Utilities::Module::ProcessComposites(), Nektar::Utilities::Module::ProcessEdges(), Nektar::Utilities::Module::ProcessElements(), Nektar::Utilities::Module::ProcessFaces(), and ReadZone().
void Nektar::Utilities::InputTec::ReadZone | ( | int & | nComposite | ) |
Definition at line 128 of file InputStarTec.cpp.
References ASSERTL0, GenElement2D(), GenElement3D(), Nektar::iterator, Nektar::Utilities::Module::m_mesh, Nektar::Utilities::InputModule::m_mshFile, Nektar::Utilities::Module::ProcessVertices(), and ResetNodes().
Referenced by Process().
|
protected |
Definition at line 433 of file InputStarTec.cpp.
References ASSERTL1, Nektar::iterator, Nektar::Utilities::PrismLineFaces(), and SortFaceNodes().
Referenced by ReadZone().
|
protected |
Definition at line 778 of file InputStarTec.cpp.
References ASSERTL1, Nektar::Utilities::Node::curl(), and Nektar::Utilities::Node::dot().
Referenced by GenElement2D().
|
protected |
Definition at line 869 of file InputStarTec.cpp.
References ASSERTL0, ASSERTL1, Nektar::Utilities::Node::curl(), and Nektar::Utilities::Node::dot().
Referenced by GenElement3D(), and ResetNodes().
|
static |
Definition at line 54 of file InputStarTec.h.