Nektar++
|
Converter from fld to vtk. More...
#include <OutputFileBase.h>
Public Member Functions | |
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) |
Protected Member Functions | |
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 () |
Protected Attributes | |
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... | |
Private Member Functions | |
bool | WriteFile (std::string &filename, po::variables_map &vm) |
void | ConvertExpToEquispaced (po::variables_map &vm) |
void | PrintErrorFromPts () |
void | PrintErrorFromExp () |
Additional Inherited Members | |
Public Attributes inherited from Nektar::FieldUtils::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
Converter from fld to vtk.
Definition at line 45 of file OutputFileBase.h.
Nektar::FieldUtils::OutputFileBase::OutputFileBase | ( | FieldSharedPtr | f | ) |
Definition at line 47 of file OutputFileBase.cpp.
References Nektar::FieldUtils::Module::m_config, m_prohibitWrite, and m_requireEquiSpaced.
|
override |
Definition at line 56 of file OutputFileBase.cpp.
|
private |
Definition at line 316 of file OutputFileBase.cpp.
References m_equispacedSetup, and Nektar::FieldUtils::Module::m_f.
Referenced by v_Process().
|
inlineprotected |
Definition at line 96 of file OutputFileBase.h.
References v_GetFullOutName().
Referenced by Nektar::FieldUtils::OutputVtkBase::PrepareOutput(), WriteFile(), and Nektar::FieldUtils::OutputTecplot::WriteTecplotFile().
|
inlineprotected |
Definition at line 85 of file OutputFileBase.h.
References v_GetPath().
Referenced by Nektar::FieldUtils::OutputVtkBase::PrepareOutput(), Nektar::FieldUtils::OutputTecplot::v_GetFullOutName(), Nektar::FieldUtils::OutputVtkBase::v_GetFullOutName(), WriteFile(), and Nektar::FieldUtils::OutputVtkBase::WritePVtu().
|
private |
Definition at line 419 of file OutputFileBase.cpp.
References Nektar::FieldUtils::Module::m_f.
Referenced by v_Process().
|
private |
Definition at line 374 of file OutputFileBase.cpp.
References Nektar::FieldUtils::Module::m_f, Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceSum, and tinysimd::sqrt().
Referenced by v_Process().
|
inlineprotectedvirtual |
Reimplemented in Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Definition at line 90 of file OutputFileBase.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
Referenced by GetFullOutName().
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 60 of file OutputFileBase.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Reimplemented in Nektar::FieldUtils::OutputVtk, Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Definition at line 55 of file OutputFileBase.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from Nektar::FieldUtils::Module.
Definition at line 65 of file OutputFileBase.h.
References Nektar::FieldUtils::eOutput.
|
inlineprotectedvirtual |
Reimplemented in Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Definition at line 79 of file OutputFileBase.h.
References Nektar::ErrorUtil::efatal, and NEKERROR.
Referenced by GetPath().
|
protectedpure virtual |
Write from data to output file.
Implemented in Nektar::FieldUtils::OutputVtk, Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Referenced by v_Process().
|
protectedpure virtual |
Write from m_exp to output file.
Implemented in Nektar::FieldUtils::OutputVtk, Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Referenced by v_Process().
|
protectedpure virtual |
Write from pts to output file.
Implemented in Nektar::FieldUtils::OutputVtk, Nektar::FieldUtils::OutputFld, Nektar::FieldUtils::OutputPts, Nektar::FieldUtils::OutputTecplot, and Nektar::FieldUtils::OutputVtkBase.
Referenced by v_Process().
|
overrideprotectedvirtual |
Write fld to output file.
Reimplemented from Nektar::FieldUtils::Module.
Reimplemented in Nektar::FieldUtils::OutputTecplot.
Definition at line 60 of file OutputFileBase.cpp.
References ASSERTL0, ConvertExpToEquispaced(), Nektar::SpatialDomains::BoundaryConditions::GetBoundaryCommunicators(), Nektar::SpatialDomains::BoundaryConditions::GetBoundaryRegions(), Nektar::FieldUtils::Module::GetModuleName(), Nektar::FieldUtils::Module::m_config, m_equispacedSetup, Nektar::FieldUtils::Module::m_f, m_prohibitWrite, m_requireEquiSpaced, CellMLToNektar.pycml::name, Nektar::LibUtilities::NullPtsField, PrintErrorFromExp(), PrintErrorFromPts(), Nektar::FieldUtils::Module::RegisterConfig(), v_OutputFromData(), v_OutputFromExp(), v_OutputFromPts(), Vmath::Vcopy(), and WriteFile().
Referenced by Nektar::FieldUtils::OutputTecplot::v_Process().
|
private |
Definition at line 256 of file OutputFileBase.cpp.
References CellMLToNektar.enum::answer, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::GetCommFactory(), GetFullOutName(), GetPath(), Nektar::FieldUtils::Module::m_f, m_prohibitWrite, and Nektar::LibUtilities::ReduceSum.
Referenced by v_Process().
|
protected |
Definition at line 103 of file OutputFileBase.h.
Referenced by ConvertExpToEquispaced(), and v_Process().
|
protected |
Definition at line 102 of file OutputFileBase.h.
Referenced by Nektar::FieldUtils::OutputVtk::AddFieldDataToVTKHighOrder(), Nektar::FieldUtils::OutputVtk::AddFieldDataToVTKLowOrder(), OutputFileBase(), Nektar::FieldUtils::OutputVtk::OutputFromExpLowOrderMultiBlock(), Nektar::FieldUtils::OutputVtk::v_OutputFromExp(), v_Process(), and WriteFile().
|
protected |
Definition at line 101 of file OutputFileBase.h.
Referenced by OutputFileBase(), Nektar::FieldUtils::OutputTecplot::OutputTecplot(), Nektar::FieldUtils::OutputVtk::OutputVtk(), Nektar::FieldUtils::OutputVtkBase::OutputVtkBase(), and v_Process().