|
Nektar++
|
Converter from fld to vtk. More...
#include <OutputVtkBase.h>
Public Member Functions | |
| OutputVtkBase (FieldSharedPtr f) | |
| ~OutputVtkBase () 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 |
| std::string | PrepareOutput (po::variables_map &vm) |
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 | |
| void | WriteVtkHeader (std::ostream &outfile) |
| void | WriteVtkFooter (std::ostream &outfile) |
| void | WriteEmptyVtkPiece (std::ofstream &outfile) |
| void | WritePVtu (po::variables_map &vm) |
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... | |
Converter from fld to vtk.
Definition at line 45 of file OutputVtkBase.h.
| Nektar::FieldUtils::OutputVtkBase::OutputVtkBase | ( | FieldSharedPtr | f | ) |
Definition at line 58 of file OutputVtkBase.cpp.
References Nektar::FieldUtils::OutputFileBase::m_requireEquiSpaced.
|
override |
Definition at line 63 of file OutputVtkBase.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 49 of file OutputVtkBase.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Definition at line 428 of file OutputVtkBase.cpp.
References ASSERTL0, Nektar::FieldUtils::OutputFileBase::GetFullOutName(), Nektar::FieldUtils::OutputFileBase::GetPath(), Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, and Nektar::LibUtilities::PortablePath().
Referenced by Nektar::FieldUtils::OutputVtk::v_OutputFromExp(), v_OutputFromExp(), and v_OutputFromPts().
|
overrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 306 of file OutputVtkBase.cpp.
References CellMLToNektar.pycml::format, Nektar::FieldUtils::OutputFileBase::GetPath(), and Nektar::FieldUtils::Module::m_f.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 59 of file OutputVtkBase.h.
|
overrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 287 of file OutputVtkBase.cpp.
References Nektar::FieldUtils::Module::m_f.
Referenced by Nektar::FieldUtils::OutputVtk::WritePVtu().
|
overrideprotectedvirtual |
Write from data to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 280 of file OutputVtkBase.cpp.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
overrideprotectedvirtual |
Write from m_exp to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 232 of file OutputVtkBase.cpp.
References Nektar::FieldUtils::Module::m_f, PrepareOutput(), WriteEmptyVtkPiece(), WritePVtu(), WriteVtkFooter(), and WriteVtkHeader().
Referenced by Nektar::FieldUtils::OutputVtk::v_OutputFromExp().
|
overrideprotectedvirtual |
Write from pts to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 67 of file OutputVtkBase.cpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::ePtsBox, Nektar::LibUtilities::ePtsFile, Nektar::LibUtilities::ePtsLine, Nektar::LibUtilities::ePtsPlane, Nektar::LibUtilities::ePtsSegBlock, Nektar::LibUtilities::ePtsTetBlock, Nektar::LibUtilities::ePtsTriBlock, Nektar::FieldUtils::Module::m_f, NEKERROR, PrepareOutput(), WritePVtu(), WriteVtkFooter(), and WriteVtkHeader().
Referenced by Nektar::FieldUtils::OutputVtk::v_OutputFromPts().
|
private |
Definition at line 344 of file OutputVtkBase.cpp.
Referenced by v_OutputFromExp().
|
private |
Definition at line 376 of file OutputVtkBase.cpp.
References CellMLToNektar.pycml::format, Nektar::FieldUtils::OutputFileBase::GetPath(), Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, and Nektar::LibUtilities::PortablePath().
Referenced by v_OutputFromExp(), and v_OutputFromPts().
|
private |
Definition at line 338 of file OutputVtkBase.cpp.
Referenced by v_OutputFromExp(), and v_OutputFromPts().
|
private |
Definition at line 330 of file OutputVtkBase.cpp.
Referenced by v_OutputFromExp(), and v_OutputFromPts().
|
static |
Definition at line 53 of file OutputVtkBase.h.