Nektar++
|
Output to fld format. More...
#include <OutputFld.h>
Public Member Functions | |
OutputFld (FieldSharedPtr f) | |
~OutputFld () override | |
Public Member Functions inherited from Nektar::FieldUtils::OutputFileBase | |
OutputFileBase (FieldSharedPtr f) | |
~OutputFileBase () override | |
Public Member Functions inherited from Nektar::FieldUtils::OutputModule | |
OutputModule (FieldSharedPtr p_f) | |
FIELD_UTILS_EXPORT void | OpenStream () |
Open a file for output. 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 std::shared_ptr< Module > | create (FieldSharedPtr f) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static ModuleKey | m_className [] |
Protected Member Functions | |
std::string | v_GetModuleName () override |
void | v_OutputFromPts (po::variables_map &vm) override |
Write from pts to output file. More... | |
void | v_OutputFromExp (po::variables_map &vm) override |
Write from m_exp to output file. More... | |
void | v_OutputFromData (po::variables_map &vm) override |
Write from data to output file. More... | |
fs::path | v_GetPath (std::string &filename, po::variables_map &vm) override |
fs::path | v_GetFullOutName (std::string &filename, po::variables_map &vm) override |
Protected Member Functions inherited from Nektar::FieldUtils::OutputFileBase | |
void | v_Process (po::variables_map &vm) override |
Write fld to output file. More... | |
std::string | v_GetModuleName () override |
std::string | v_GetModuleDescription () override |
ModulePriority | v_GetModulePriority () override |
virtual void | v_OutputFromPts (po::variables_map &vm)=0 |
Write from pts to output file. More... | |
virtual void | v_OutputFromExp (po::variables_map &vm)=0 |
Write from m_exp to output file. More... | |
virtual void | v_OutputFromData (po::variables_map &vm)=0 |
Write from data to output file. More... | |
virtual fs::path | v_GetPath (std::string &filename, po::variables_map &vm) |
fs::path | GetPath (std::string &filename, po::variables_map &vm) |
virtual fs::path | v_GetFullOutName (std::string &filename, po::variables_map &vm) |
fs::path | GetFullOutName (std::string &filename, po::variables_map &vm) |
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 () |
Private Member Functions | |
std::string | GetIOFormat () |
Additional Inherited Members | |
Public Attributes inherited from Nektar::FieldUtils::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
Protected Attributes inherited from Nektar::FieldUtils::OutputFileBase | |
bool | m_requireEquiSpaced |
bool | m_prohibitWrite = false |
bool | m_equispacedSetup = false |
Protected Attributes inherited from Nektar::FieldUtils::OutputModule | |
std::ofstream | m_fldFile |
Output stream. 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... | |
Output to fld format.
Definition at line 45 of file OutputFld.h.
Nektar::FieldUtils::OutputFld::OutputFld | ( | FieldSharedPtr | f | ) |
Definition at line 57 of file OutputFld.cpp.
References Nektar::FieldUtils::Module::m_config.
|
override |
Definition at line 63 of file OutputFld.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 49 of file OutputFld.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
private |
Definition at line 162 of file OutputFld.cpp.
References Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::Module::m_f.
Referenced by v_OutputFromData(), and v_OutputFromExp().
|
overrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 140 of file OutputFld.cpp.
References CellMLToNektar.pycml::format, and Nektar::FieldUtils::Module::m_f.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 59 of file OutputFld.h.
|
overrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 134 of file OutputFld.cpp.
|
overrideprotectedvirtual |
Write from data to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 122 of file OutputFld.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::GetFieldIOFactory(), GetIOFormat(), Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::Module::m_f.
|
overrideprotectedvirtual |
Write from m_exp to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 72 of file OutputFld.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::GetFieldIOFactory(), GetIOFormat(), Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::Module::m_f.
|
overrideprotectedvirtual |
Write from pts to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 67 of file OutputFld.cpp.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
static |
Definition at line 53 of file OutputFld.h.