|
Nektar++
|
Abstract base class for input modules. More...
#include <Module.h>
Public Member Functions | |
| 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) |
| virtual NEKMESHUTILS_EXPORT void | Process ()=0 |
| NEKMESHUTILS_EXPORT void | RegisterConfig (std::string key, std::string value=std::string()) |
| 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 () |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| 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... | |
Abstract base class for input modules.
Input modules should read the contents of m_mshFile in the Process() function and populate the members of #m. Typically any given module should populate Mesh::expDim, Mesh::spaceDim, Mesh::node and Mesh::element, then call the protected ProcessX functions to generate edges, faces, etc.
Definition at line 206 of file NekMeshUtils/Module/Module.h.
| Nektar::NekMeshUtils::InputModule::InputModule | ( | MeshSharedPtr | p_m | ) |
Definition at line 64 of file NekMeshUtils/Module/Module.cpp.
References Nektar::NekMeshUtils::Module::m_config.
| void Nektar::NekMeshUtils::InputModule::OpenStream | ( | ) |
Open a file for input.
Definition at line 77 of file NekMeshUtils/Module/Module.cpp.
References Nektar::NekMeshUtils::Module::m_config, Nektar::NekMeshUtils::OutputModule::m_mshFile, and Nektar::NekMeshUtils::OutputModule::m_mshFileStream.
Referenced by Nektar::Utilities::InputGmsh::Process(), Nektar::Utilities::InputSem::Process(), Nektar::Utilities::InputNek5000::Process(), Nektar::Utilities::InputTec::Process(), Nektar::Utilities::InputSwan::Process(), Nektar::Utilities::InputPly::Process(), and Nektar::Utilities::InputNek::Process().
|
protected |
Print summary of elements.
Print a brief summary of information.
Definition at line 908 of file NekMeshUtils/Module/Module.cpp.
References Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Nektar::Utilities::InputSem::Process(), Nektar::Utilities::InputTec::Process(), and Nektar::Utilities::InputStar::Process().
|
protected |
Input stream.
Definition at line 216 of file NekMeshUtils/Module/Module.h.
Referenced by Nektar::Utilities::InputGmsh::Process(), Nektar::Utilities::InputSem::Process(), Nektar::Utilities::InputNek5000::Process(), Nektar::Utilities::InputTec::Process(), Nektar::Utilities::InputSwan::Process(), Nektar::Utilities::InputPly::Process(), Nektar::Utilities::InputNek::Process(), Nektar::Utilities::InputGmsh::ReadNextElement(), Nektar::Utilities::InputGmsh::ReadNextNode(), Nektar::Utilities::InputGmsh::ReadNextNodeBlock(), and Nektar::Utilities::InputTec::ReadZone().
|
protected |
Input stream.
Definition at line 218 of file NekMeshUtils/Module/Module.h.
1.8.13