Nektar++
|
Converter for Gmsh files. More...
#include <OutputNekpp.h>
Public Member Functions | |
OutputNekpp (NekMeshUtils::MeshSharedPtr m) | |
virtual | ~OutputNekpp () |
virtual void | Process () |
Write mesh to output file. More... | |
![]() | |
NEKMESHUTILS_EXPORT | OutputModule (MeshSharedPtr p_m) |
NEKMESHUTILS_EXPORT void | OpenStream () |
Open a file for output. More... | |
![]() | |
NEKMESHUTILS_EXPORT | Module (MeshSharedPtr p_m) |
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 () |
Static Public Member Functions | |
static std::shared_ptr< Module > | create (NekMeshUtils::MeshSharedPtr m) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static NekMeshUtils::ModuleKey | className1 |
static NekMeshUtils::ModuleKey | className2 |
Private Member Functions | |
void | TransferVertices (SpatialDomains::MeshGraphSharedPtr graph) |
void | TransferEdges (SpatialDomains::MeshGraphSharedPtr graph, std::unordered_map< int, SpatialDomains::SegGeomSharedPtr > &edgeMap) |
void | TransferFaces (SpatialDomains::MeshGraphSharedPtr graph, std::unordered_map< int, SpatialDomains::SegGeomSharedPtr > &edgeMap) |
void | TransferElements (SpatialDomains::MeshGraphSharedPtr graph) |
void | TransferCurves (SpatialDomains::MeshGraphSharedPtr graph) |
void | TransferComposites (SpatialDomains::MeshGraphSharedPtr graph) |
void | TransferDomain (SpatialDomains::MeshGraphSharedPtr graph) |
Private Attributes | |
LibUtilities::Interpreter | m_strEval |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
io::filtering_ostream | m_mshFile |
Output stream. More... | |
std::ofstream | m_mshFileStream |
Input stream. More... | |
![]() | |
MeshSharedPtr | m_mesh |
Mesh object. More... | |
std::map< std::string, ConfigOption > | m_config |
List of configuration values. More... | |
Converter for Gmsh files.
Definition at line 46 of file OutputNekpp.h.
Nektar::Utilities::OutputNekpp::OutputNekpp | ( | NekMeshUtils::MeshSharedPtr | m | ) |
Definition at line 73 of file OutputNekpp.cpp.
References Nektar::NekMeshUtils::Module::m_config.
|
virtual |
Definition at line 85 of file OutputNekpp.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 50 of file OutputNekpp.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
virtual |
Write mesh to output file.
Implements Nektar::NekMeshUtils::Module.
Definition at line 143 of file OutputNekpp.cpp.
References Nektar::LibUtilities::SessionReader::CreateInstance(), Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::Interpreter::DefineFunction(), Nektar::LibUtilities::ePolyEvenlySpaced, Nektar::SpatialDomains::GetMeshGraphFactory(), Nektar::NekMeshUtils::Module::m_config, Nektar::NekMeshUtils::Module::m_mesh, m_strEval, Nektar::SpatialDomains::MeshGraph::Read(), Nektar::Utilities::TestElmts(), TransferComposites(), TransferCurves(), TransferDomain(), TransferEdges(), TransferElements(), TransferFaces(), and TransferVertices().
|
private |
Definition at line 558 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 444 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 682 of file OutputNekpp.cpp.
References Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 255 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 313 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::eQuadrilateral, Nektar::LibUtilities::eTriangle, and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 274 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
private |
Definition at line 243 of file OutputNekpp.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::NekMeshUtils::Module::m_mesh.
Referenced by Process().
|
static |
Definition at line 54 of file OutputNekpp.h.
|
static |
Definition at line 54 of file OutputNekpp.h.
|
private |
Definition at line 63 of file OutputNekpp.h.
Referenced by Process().