|
Nektar++
|
Converter from fld to vtk. More...
#include <OutputVtk.h>
Public Member Functions | |
| OutputVtk (FieldSharedPtr f) | |
| ~OutputVtk () final=default | |
Public Member Functions inherited from Nektar::FieldUtils::OutputVtkBase | |
| OutputVtkBase (FieldSharedPtr f) | |
| virtual | ~OutputVtkBase () |
Public Member Functions inherited from Nektar::FieldUtils::OutputFileBase | |
| OutputFileBase (FieldSharedPtr f) | |
| virtual | ~OutputFileBase () |
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 () |
| 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 (const FieldSharedPtr &f) |
| Creates an instance of this class. More... | |
Static Public Member Functions inherited from Nektar::FieldUtils::OutputVtkBase | |
| static std::shared_ptr< Module > | create (FieldSharedPtr f) |
| Creates an instance of this class. More... | |
Static Public Attributes | |
| static ModuleKey | m_className |
Static Public Attributes inherited from Nektar::FieldUtils::OutputVtkBase | |
| static ModuleKey | m_className |
Protected Member Functions | |
| virtual std::string | v_GetModuleName () override final |
| virtual void | v_OutputFromPts (po::variables_map &vm) override final |
| Write from pts to output file. More... | |
| virtual void | v_OutputFromExp (po::variables_map &vm) override final |
| Write from m_exp to output file. More... | |
| virtual void | v_OutputFromData (po::variables_map &vm) override final |
| Write from data to output file. More... | |
Protected Member Functions inherited from Nektar::FieldUtils::OutputVtkBase | |
| virtual fs::path | v_GetPath (std::string &filename, po::variables_map &vm) override |
| virtual 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 | |
| virtual void | v_Process (po::variables_map &vm) override |
| Write fld to output file. More... | |
| virtual std::string | v_GetModuleDescription () override |
| virtual ModulePriority | v_GetModulePriority () override |
| fs::path | GetPath (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 () | |
Protected Attributes | |
| vtkSmartPointer< vtkUnstructuredGrid > | m_vtkMesh |
| Cache file for unstructured grid VTK mesh data. More... | |
| int | m_numPlanes = 1 |
| Number of planes if homogeneous. More... | |
| bool | m_extraPlane = false |
| Flag if extra plane in case of fourier expansion in homogeneous dir. More... | |
| bool | m_cachedMesh = false |
| Flag if mesh has been cached. More... | |
Protected Attributes inherited from Nektar::FieldUtils::OutputFileBase | |
| bool | m_requireEquiSpaced |
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... | |
Private Member Functions | |
| vtkSmartPointer< vtkUnstructuredGrid > | OutputFromExpHighOrder (po::variables_map &vm) |
| Prepare high order Lagrange VTK output. More... | |
| void | AddFieldDataToVTKHighOrder (po::variables_map &vm, std::string &filename, vtkSmartPointer< vtkUnstructuredGrid > &vtkMesh) |
| Add field data to high order Lagrange VTK output. More... | |
| vtkSmartPointer< vtkUnstructuredGrid > | OutputFromExpLowOrder () |
| Prepare low order VTK output. More... | |
| void | AddFieldDataToVTKLowOrder (po::variables_map &vm, std::string &filename, vtkSmartPointer< vtkUnstructuredGrid > &vtkMesh) |
| Add field data to low order VTK output. More... | |
| void | OutputFromExpLowOrderMultiBlock (po::variables_map &vm, std::string &filename) |
| Prepare low order multi-block VTK output & add field data. More... | |
| void | WriteVTK (vtkDataObject *vtkMesh, std::string &filename, po::variables_map &vm) |
| Write VTK file using. More... | |
| void | WritePVtu (po::variables_map &vm) |
| Write the parallel .pvtu file. More... | |
Additional Inherited Members | |
Public Attributes inherited from Nektar::FieldUtils::Module | |
| FieldSharedPtr | m_f |
| Field object. More... | |
Converter from fld to vtk.
Definition at line 51 of file OutputVtk.h.
|
explicit |
Definition at line 59 of file OutputVtk.cpp.
References Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::OutputFileBase::m_requireEquiSpaced.
|
finaldefault |
|
private |
Add field data to high order Lagrange VTK output.
Definition at line 1431 of file OutputVtk.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_cachedMesh, Nektar::FieldUtils::Module::m_f, and WriteVTK().
Referenced by v_OutputFromExp().
|
private |
Add field data to low order VTK output.
Definition at line 979 of file OutputVtk.cpp.
References m_extraPlane, Nektar::FieldUtils::Module::m_f, m_numPlanes, and WriteVTK().
Referenced by v_OutputFromExp().
|
inlinestatic |
Creates an instance of this class.
Definition at line 55 of file OutputVtk.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
private |
Prepare high order Lagrange VTK output.
Definition at line 1302 of file OutputVtk.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eHexahedron, Nektar::LibUtilities::ePrism, Nektar::LibUtilities::eQuadrilateral, Nektar::LibUtilities::eTetrahedron, Nektar::LibUtilities::eTriangle, Nektar::FieldUtils::Module::m_f, NEKERROR, CellMLToNektar.cellml_metadata::p, and Nektar::LibUtilities::ShapeTypeMap.
Referenced by v_OutputFromExp().
|
private |
Prepare low order VTK output.
Definition at line 856 of file OutputVtk.cpp.
References ASSERTL0, Nektar::MultiRegions::e3DH1D, Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Vmath::Fill(), m_extraPlane, Nektar::FieldUtils::Module::m_f, m_numPlanes, CellMLToNektar.cellml_metadata::p, and Vmath::Vcopy().
Referenced by v_OutputFromExp().
|
private |
Prepare low order multi-block VTK output & add field data.
Definition at line 1023 of file OutputVtk.cpp.
References ASSERTL0, Nektar::SpatialDomains::BoundaryConditions::GetBoundaryLabels(), Nektar::SpatialDomains::BoundaryConditions::GetBoundaryRegions(), Nektar::FieldUtils::Module::m_f, CellMLToNektar.pycml::name, CellMLToNektar.cellml_metadata::p, and WriteVTK().
Referenced by v_OutputFromExp().
|
inlinefinaloverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::OutputVtkBase.
Definition at line 67 of file OutputVtk.h.
|
finaloverrideprotectedvirtual |
Write from data to output file.
Reimplemented from Nektar::FieldUtils::OutputVtkBase.
Definition at line 1596 of file OutputVtk.cpp.
References Nektar::ErrorUtil::efatal, and NEKERROR.
|
finaloverrideprotectedvirtual |
Write from m_exp to output file.
Reimplemented from Nektar::FieldUtils::OutputVtkBase.
Definition at line 1609 of file OutputVtk.cpp.
References AddFieldDataToVTKHighOrder(), AddFieldDataToVTKLowOrder(), ASSERTL0, m_cachedMesh, Nektar::FieldUtils::Module::m_config, m_vtkMesh, OutputFromExpHighOrder(), OutputFromExpLowOrder(), OutputFromExpLowOrderMultiBlock(), Nektar::FieldUtils::OutputVtkBase::PrepareOutput(), and Nektar::FieldUtils::OutputVtkBase::v_OutputFromExp().
|
finaloverrideprotectedvirtual |
Write from pts to output file.
Reimplemented from Nektar::FieldUtils::OutputVtkBase.
Definition at line 1604 of file OutputVtk.cpp.
References Nektar::FieldUtils::OutputVtkBase::v_OutputFromPts().
|
private |
Write the parallel .pvtu file.
Definition at line 1524 of file OutputVtk.cpp.
References CellMLToNektar.pycml::format, Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, Nektar::LibUtilities::PortablePath(), and Nektar::FieldUtils::OutputVtkBase::v_GetPath().
Referenced by WriteVTK().
|
private |
Write VTK file using.
| vtkMesh |
Definition at line 1462 of file OutputVtk.cpp.
References Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, and WritePVtu().
Referenced by AddFieldDataToVTKHighOrder(), AddFieldDataToVTKLowOrder(), and OutputFromExpLowOrderMultiBlock().
|
protected |
Flag if mesh has been cached.
Definition at line 91 of file OutputVtk.h.
Referenced by AddFieldDataToVTKHighOrder(), and v_OutputFromExp().
|
static |
Definition at line 60 of file OutputVtk.h.
|
protected |
Flag if extra plane in case of fourier expansion in homogeneous dir.
Definition at line 88 of file OutputVtk.h.
Referenced by AddFieldDataToVTKLowOrder(), and OutputFromExpLowOrder().
|
protected |
Number of planes if homogeneous.
Definition at line 85 of file OutputVtk.h.
Referenced by AddFieldDataToVTKLowOrder(), and OutputFromExpLowOrder().
|
protected |
Cache file for unstructured grid VTK mesh data.
Definition at line 82 of file OutputVtk.h.
Referenced by v_OutputFromExp().