Nektar++
|
Converter for VTK files. More...
#include <InputStar.h>
Public Member Functions | |
InputStar (MeshSharedPtr m) | |
virtual | ~InputStar () |
virtual void | Process () |
Populate and validate required data structures. More... | |
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. More... | |
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. More... | |
void | PrintConfig () |
Print out all configuration options for a module. More... | |
void | SetDefaults () |
Sets default configuration options for those which have not been set. More... | |
bool | GetRequireEquiSpaced (void) |
void | SetRequireEquiSpaced (bool pVal) |
void | EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield) |
Module (MeshSharedPtr p_m) | |
void | RegisterConfig (std::string key, std::string value) |
void | PrintConfig () |
void | SetDefaults () |
MeshSharedPtr | GetMesh () |
virtual void | ProcessVertices () |
Extract element vertices. More... | |
virtual void | ProcessEdges (bool ReprocessEdges=true) |
Extract element edges. More... | |
virtual void | ProcessFaces (bool ReprocessFaces=true) |
Extract element faces. More... | |
virtual void | ProcessElements () |
Generate element IDs. More... | |
virtual void | ProcessComposites () |
Generate composites. More... | |
virtual void | ClearElementLinks () |
Static Public Member Functions | |
static ModuleSharedPtr | create (MeshSharedPtr m) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static ModuleKey | className |
Protected Member Functions | |
void | GenElement3D (vector< NodeSharedPtr > &Nodes, int i, vector< int > &ElementFaces, map< int, vector< int > > &FaceNodes, int ncomposite, bool DoOrient) |
void | GenElement2D (vector< NodeSharedPtr > &Nodes, int i, vector< int > &FaceNodes, int ncomposite) |
Array< OneD, int > | SortEdgeNodes (vector< NodeSharedPtr > &Nodes, vector< int > &FaceNodes) |
Array< OneD, int > | SortFaceNodes (vector< NodeSharedPtr > &Nodes, vector< int > &ElementFaces, map< int, vector< int > > &FaceNodes) |
void | ResetNodes (vector< NodeSharedPtr > &Nodes, Array< OneD, vector< int > > &ElementFaces, map< int, vector< int > > &FaceNodes) |
Protected Member Functions inherited from Nektar::Utilities::InputModule | |
void | PrintSummary () |
Print summary of elements. More... | |
void | PrintSummary () |
Print summary of elements. More... | |
Protected Member Functions inherited from Nektar::Utilities::Module | |
Module () | |
void | ReorderPrisms (PerMap &perFaces) |
Reorder node IDs so that prisms and tetrahedra are aligned correctly. More... | |
void | PrismLines (int prism, PerMap &perFaces, std::set< int > &prismsDone, std::vector< ElementSharedPtr > &line) |
Private Member Functions | |
void | InitCCM (void) |
void | ReadNodes (std::vector< NodeSharedPtr > &Nodes) |
void | ReadInternalFaces (map< int, vector< int > > &FacesNodes, Array< OneD, vector< int > > &ElementFaces) |
void | ReadBoundaryFaces (vector< vector< int > > &BndElementFaces, map< int, vector< int > > &FacesNodes, Array< OneD, vector< int > > &ElementFaces, vector< string > &facelabels) |
void | SetupElements (void) |
Private Attributes | |
CCMIOError | m_ccmErr |
CCMIOID | m_ccmTopology |
CCMIOID | m_ccmProcessor |
map< int, string > | m_faceLabels |
Additional Inherited Members | |
Protected Attributes inherited from Nektar::Utilities::InputModule | |
set< string > | m_allowedFiles |
std::ifstream | m_mshFile |
Input stream. More... | |
Protected Attributes inherited from Nektar::Utilities::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
map< string, ConfigOption > | m_config |
List of configuration values. More... | |
bool | m_requireEquiSpaced |
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 | ( | MeshSharedPtr | m | ) |
Definition at line 56 of file InputStar.cpp.
References Nektar::Utilities::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::Utilities::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::Utilities::Module::m_mesh, and SortFaceNodes().
Referenced by SetupElements().
Definition at line 899 of file InputStar.cpp.
References m_ccmErr, m_ccmProcessor, and Nektar::Utilities::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::Utilities::Module.
Definition at line 77 of file InputStar.cpp.
References InitCCM(), Nektar::Utilities::Module::m_mesh, Nektar::Utilities::InputModule::PrintSummary(), Nektar::Utilities::Module::ProcessComposites(), Nektar::Utilities::Module::ProcessEdges(), Nektar::Utilities::Module::ProcessElements(), Nektar::Utilities::Module::ProcessFaces(), and SetupElements().
|
private |
Definition at line 1063 of file InputStar.cpp.
References ASSERTL0, m_ccmErr, and m_ccmTopology.
Referenced by SetupElements().
|
private |
Definition at line 969 of file InputStar.cpp.
References ASSERTL0, m_ccmErr, and m_ccmTopology.
Referenced by SetupElements().
|
private |
Definition at line 929 of file InputStar.cpp.
References m_ccmErr, m_ccmProcessor, and m_ccmTopology.
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::Utilities::Module::m_config, Nektar::Utilities::Module::m_mesh, Nektar::Utilities::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(), Nektar::NekMeshUtils::Node::dot(), and Nektar::iterator.
Referenced by GenElement3D(), and ResetNodes().
|
static |
Definition at line 56 of file InputStar.h.
|
private |
Definition at line 91 of file InputStar.h.
Referenced by InitCCM(), ReadBoundaryFaces(), ReadInternalFaces(), and ReadNodes().
|
private |
Definition at line 93 of file InputStar.h.
Referenced by InitCCM(), and ReadNodes().
|
private |
Definition at line 92 of file InputStar.h.
Referenced by ReadBoundaryFaces(), ReadInternalFaces(), and ReadNodes().
|
private |
Definition at line 94 of file InputStar.h.