Nektar++
|
Converter from fld to vtk. More...
#include <OutputVtk.h>
Public Member Functions | |
OutputVtk (FieldSharedPtr f) | |
virtual | ~OutputVtk () |
virtual std::string | GetModuleName () |
![]() | |
OutputFileBase (FieldSharedPtr f) | |
virtual | ~OutputFileBase () |
virtual void | Process (po::variables_map &vm) |
Write fld to output file. More... | |
virtual std::string | GetModuleDescription () |
virtual ModulePriority | GetModulePriority () |
![]() | |
OutputModule (FieldSharedPtr p_f) | |
FIELD_UTILS_EXPORT void | OpenStream () |
Open a file for output. More... | |
![]() | |
FIELD_UTILS_EXPORT | Module (FieldSharedPtr p_f) |
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 | 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 | |
virtual void | OutputFromPts (po::variables_map &vm) |
Write from pts to output file. More... | |
virtual void | OutputFromExp (po::variables_map &vm) |
Write from m_exp to output file. More... | |
virtual void | OutputFromData (po::variables_map &vm) |
Write from data to output file. More... | |
virtual fs::path | GetPath (std::string &filename, po::variables_map &vm) |
virtual fs::path | GetFullOutName (std::string &filename, po::variables_map &vm) |
![]() | |
Module () | |
Private Member Functions | |
void | WriteVtkHeader (std::ostream &outfile) |
void | WriteVtkFooter (std::ostream &outfile) |
void | WriteEmptyVtkPiece (std::ofstream &outfile) |
void | WritePVtu (po::variables_map &vm) |
std::string | PrepareOutput (po::variables_map &vm) |
Additional Inherited Members | |
![]() | |
bool | m_requireEquiSpaced |
![]() | |
std::ofstream | m_fldFile |
Output stream. More... | |
![]() | |
FieldSharedPtr | m_f |
Field object. More... | |
std::map< std::string, ConfigOption > | m_config |
List of configuration values. More... | |
Converter from fld to vtk.
Definition at line 47 of file library/FieldUtils/OutputModules/OutputVtk.h.
Nektar::FieldUtils::OutputVtk::OutputVtk | ( | FieldSharedPtr | f | ) |
Definition at line 55 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References Nektar::FieldUtils::OutputFileBase::m_requireEquiSpaced.
|
virtual |
Definition at line 60 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 51 of file library/FieldUtils/OutputModules/OutputVtk.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protectedvirtual |
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 305 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References CellMLToNektar.pycml::format, GetPath(), and Nektar::FieldUtils::Module::m_f.
Referenced by GetModuleName(), and PrepareOutput().
|
inlinevirtual |
Reimplemented from Nektar::FieldUtils::OutputFileBase.
Definition at line 60 of file library/FieldUtils/OutputModules/OutputVtk.h.
References GetFullOutName(), GetPath(), OutputFromData(), OutputFromExp(), OutputFromPts(), PrepareOutput(), WriteEmptyVtkPiece(), WritePVtu(), WriteVtkFooter(), and WriteVtkHeader().
|
protectedvirtual |
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 284 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References Nektar::FieldUtils::Module::m_f.
Referenced by GetFullOutName(), GetModuleName(), PrepareOutput(), and WritePVtu().
|
protectedvirtual |
Write from data to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 278 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References Nektar::ErrorUtil::efatal, and NEKERROR.
Referenced by GetModuleName().
|
protectedvirtual |
Write from m_exp to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 230 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References Nektar::FieldUtils::Module::m_f, PrepareOutput(), WriteEmptyVtkPiece(), WritePVtu(), WriteVtkFooter(), and WriteVtkHeader().
Referenced by GetModuleName().
|
protectedvirtual |
Write from pts to output file.
Implements Nektar::FieldUtils::OutputFileBase.
Definition at line 64 of file library/FieldUtils/OutputModules/OutputVtk.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 GetModuleName().
|
private |
Definition at line 427 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References ASSERTL0, GetFullOutName(), GetPath(), Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, and Nektar::LibUtilities::PortablePath().
Referenced by GetModuleName(), OutputFromExp(), and OutputFromPts().
|
private |
Definition at line 343 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
Referenced by GetModuleName(), and OutputFromExp().
|
private |
Definition at line 375 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
References CellMLToNektar.pycml::format, GetPath(), Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, and Nektar::LibUtilities::PortablePath().
Referenced by GetModuleName(), OutputFromExp(), and OutputFromPts().
|
private |
Definition at line 337 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
Referenced by GetModuleName(), OutputFromExp(), and OutputFromPts().
|
private |
Definition at line 329 of file library/FieldUtils/OutputModules/OutputVtk.cpp.
Referenced by GetModuleName(), OutputFromExp(), and OutputFromPts().
|
static |
Definition at line 55 of file library/FieldUtils/OutputModules/OutputVtk.h.