Nektar++
|
Abstract base class for input modules. More...
#include <Module.h>
Public Member Functions | |
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) | |
virtual void | Process ()=0 |
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 () |
Protected Member Functions | |
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) |
Protected Attributes | |
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... | |
Abstract base class for input modules.
Input modules should read the contents of #fldFile 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.
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 182 of file FieldConvert/Module.h.
Nektar::Utilities::InputModule::InputModule | ( | FieldSharedPtr | p_m | ) |
Definition at line 66 of file FieldConvert/Module.cpp.
References Nektar::Utilities::Module::m_config.
Nektar::Utilities::InputModule::InputModule | ( | MeshSharedPtr | p_m | ) |
Definition at line 65 of file NekMesh/Module.cpp.
References Nektar::Utilities::Module::m_config.
void Nektar::Utilities::InputModule::AddFile | ( | string | fileType, |
string | fileName | ||
) |
Definition at line 76 of file FieldConvert/Module.cpp.
References m_allowedFiles, and Nektar::Utilities::Module::m_f.
Referenced by main().
void Nektar::Utilities::InputModule::OpenStream | ( | ) |
Open a file for input.
Definition at line 78 of file NekMesh/Module.cpp.
References Nektar::Utilities::Module::m_config, and m_mshFile.
Referenced by Nektar::Utilities::InputGmsh::Process(), Nektar::Utilities::InputSem::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 165 of file FieldConvert/Module.cpp.
References Nektar::Utilities::Module::m_f.
Referenced by Nektar::Utilities::InputSem::Process(), Nektar::Utilities::InputTec::Process(), and Nektar::Utilities::InputStar::Process().
|
protected |
Print summary of elements.
|
protected |
Definition at line 191 of file FieldConvert/Module.h.
Referenced by AddFile(), Nektar::Utilities::InputDat::InputDat(), Nektar::Utilities::InputFld::InputFld(), Nektar::Utilities::InputPts::InputPts(), and Nektar::Utilities::InputXml::InputXml().
|
protected |
Input stream.
Definition at line 214 of file NekMesh/Module.h.
Referenced by OpenStream(), Nektar::Utilities::InputGmsh::Process(), Nektar::Utilities::InputSem::Process(), Nektar::Utilities::InputTec::Process(), Nektar::Utilities::InputSwan::Process(), Nektar::Utilities::InputPly::Process(), Nektar::Utilities::InputNek::Process(), and Nektar::Utilities::InputTec::ReadZone().