Nektar++
|
#include <InputNek5000.h>
Public Member Functions | |
InputNek5000 (FieldSharedPtr f) | |
Set up InputNek5000 object. More... | |
~InputNek5000 () override | |
Public Member Functions inherited from Nektar::FieldUtils::InputModule | |
InputModule (FieldSharedPtr p_m) | |
void | PrintSummary () |
Print a brief summary of information. More... | |
Public Member Functions inherited from Nektar::FieldUtils::Module | |
FIELD_UTILS_EXPORT | Module (FieldSharedPtr p_f) |
virtual | ~Module ()=default |
void | Process (po::variables_map &vm) |
std::string | GetModuleName () |
std::string | GetModuleDescription () |
const ConfigOption & | GetConfigOption (const std::string &key) const |
ModulePriority | GetModulePriority () |
std::vector< ModuleKey > | GetModulePrerequisites () |
FIELD_UTILS_EXPORT void | RegisterConfig (std::string key, std::string value="") |
Register a configuration option with a module. More... | |
FIELD_UTILS_EXPORT void | PrintConfig () |
Print out all configuration options for a module. More... | |
FIELD_UTILS_EXPORT void | SetDefaults () |
Sets default configuration options for those which have not been set. More... | |
FIELD_UTILS_EXPORT void | AddFile (std::string fileType, std::string fileName) |
FIELD_UTILS_EXPORT void | EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield) |
Static Public Member Functions | |
static ModuleSharedPtr | create (FieldSharedPtr f) |
Creates an instance of this class. More... | |
Static Public Member Functions inherited from Nektar::FieldUtils::InputModule | |
static FIELD_UTILS_EXPORT std::string | GuessFormat (std::string fileName) |
Tries to guess the format of the input file. More... | |
Static Public Attributes | |
static ModuleKey | m_className [] |
ModuleKey for class. More... | |
Protected Member Functions | |
void | v_Process (po::variables_map &vm) override |
Process Nek5000 input file. More... | |
std::string | v_GetModuleName () override |
std::string | v_GetModuleDescription () override |
ModulePriority | v_GetModulePriority () override |
Protected Member Functions inherited from Nektar::FieldUtils::Module | |
Module () | |
virtual void | v_Process (po::variables_map &vm) |
virtual std::string | v_GetModuleName () |
virtual std::string | v_GetModuleDescription () |
virtual ModulePriority | v_GetModulePriority () |
virtual std::vector< ModuleKey > | v_GetModulePrerequisites () |
Additional Inherited Members | |
Public Attributes inherited from Nektar::FieldUtils::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
Protected Attributes inherited from Nektar::FieldUtils::Module | |
std::map< std::string, ConfigOption > | m_config |
List of configuration values. More... | |
std::set< std::string > | m_allowedFiles |
List of allowed file formats. More... | |
Converter for Fld files.
Definition at line 46 of file InputNek5000.h.
Nektar::FieldUtils::InputNek5000::InputNek5000 | ( | FieldSharedPtr | f | ) |
Set up InputNek5000 object.
Definition at line 57 of file InputNek5000.cpp.
References Nektar::FieldUtils::Module::m_allowedFiles.
|
override |
Definition at line 65 of file InputNek5000.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 53 of file InputNek5000.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 68 of file InputNek5000.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 63 of file InputNek5000.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 73 of file InputNek5000.h.
References Nektar::FieldUtils::eCreateFieldData.
|
overrideprotectedvirtual |
Process Nek5000 input file.
This routine reads a binary-format Nek5000 field file, loads the data into memory and populates the field definitions to match the data format. Nek5000 is a classic nodal-Lagrangian spectral element code at a single polynomial order, meaning that the field data are set up according to this structure.
This module is adapted from the VisIt visualisation software, which supports a number of Nek5000 inputs.
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 80 of file InputNek5000.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::eGLL_Lagrange, Nektar::LibUtilities::eHexahedron, Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, Nektar::FieldUtils::swap_endian(), and Nektar::UnitTests::test().
|
static |
ModuleKey for class.
Definition at line 58 of file InputNek5000.h.