Nektar++
|
Abstract base class for output modules. More...
#include <Module.h>
Public Member Functions | |
NEKMESHUTILS_EXPORT | OutputModule (MeshSharedPtr p_m) |
NEKMESHUTILS_EXPORT void | OpenStream () |
Open a file for output. 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) |
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 Attributes | |
io::filtering_ostream | m_mshFile |
Output stream. More... | |
std::ofstream | 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... | |
Additional Inherited Members | |
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) |
Abstract base class for output modules.
Output modules take the mesh #m and write to the file specified by the stream m_mshFile.
Definition at line 241 of file NekMeshUtils/Module/Module.h.
Nektar::NekMeshUtils::OutputModule::OutputModule | ( | MeshSharedPtr | p_m | ) |
Definition at line 73 of file NekMeshUtils/Module/Module.cpp.
References Nektar::NekMeshUtils::Module::m_config.
void Nektar::NekMeshUtils::OutputModule::OpenStream | ( | ) |
Open a file for output.
Definition at line 107 of file NekMeshUtils/Module/Module.cpp.
References Nektar::NekMeshUtils::Module::m_config, m_mshFile, and m_mshFileStream.
Referenced by Nektar::Utilities::OutputSTL::Process(), and Nektar::Utilities::OutputGmsh::Process().
|
protected |
Output stream.
Definition at line 250 of file NekMeshUtils/Module/Module.h.
Referenced by OpenStream(), Nektar::Utilities::OutputSTL::Process(), and Nektar::Utilities::OutputGmsh::Process().
|
protected |
Input stream.
Definition at line 252 of file NekMeshUtils/Module/Module.h.
Referenced by OpenStream().