Nektar++
|
Tecplot output class, specifically for binary field output. More...
#include <OutputTecplot.h>
Static Public Member Functions | |
static std::shared_ptr< Module > | create (FieldSharedPtr f) |
Creates an instance of this class. More... | |
Static Public Member Functions inherited from Nektar::FieldUtils::OutputTecplot | |
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::OutputTecplot | |
static ModuleKey | m_className |
Protected Member Functions | |
void | WriteDoubleOrFloat (std::ofstream &outfile, Array< OneD, NekDouble > &data) |
Write either double-precision or single-precision output of field data. More... | |
void | v_WriteTecplotHeader (std::ofstream &outfile, std::vector< std::string > &var) override |
Write Tecplot files header in binary format. More... | |
void | v_WriteTecplotZone (std::ofstream &outfile) override |
void | v_WriteTecplotConnectivity (std::ofstream &outfile) override |
Write Tecplot connectivity information (ASCII) More... | |
Protected Member Functions inherited from Nektar::FieldUtils::OutputTecplot | |
void | v_Process (po::variables_map &vm) override |
Write fld to output file. More... | |
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 |
virtual void | v_WriteTecplotHeader (std::ofstream &outfile, std::vector< std::string > &var) |
Write Tecplot files header. More... | |
void | WriteTecplotHeader (std::ofstream &outfile, std::vector< std::string > &var) |
virtual void | v_WriteTecplotZone (std::ofstream &outfile) |
void | WriteTecplotZone (std::ofstream &outfile) |
virtual void | v_WriteTecplotConnectivity (std::ofstream &outfile) |
Write Tecplot connectivity information (ASCII) More... | |
void | WriteTecplotConnectivity (std::ofstream &outfile) |
void | WriteTecplotFile (po::variables_map &vm) |
int | GetNumTecplotBlocks () |
Calculate number of Tecplot blocks. More... | |
void | CalculateConnectivity () |
Calculate connectivity information for each expansion dimension. More... | |
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 () |
Additional Inherited Members | |
Public Attributes inherited from Nektar::FieldUtils::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
Protected Attributes inherited from Nektar::FieldUtils::OutputTecplot | |
bool | m_binary |
True if writing binary field output. More... | |
bool | m_oneOutputFile |
True if writing a single output file. More... | |
bool | m_writeHeader |
True if writing header. More... | |
TecplotZoneType | m_zoneType |
Tecplot zone type of output. More... | |
std::vector< int > | m_numPoints |
Number of points per block in Tecplot file. More... | |
int | m_numBlocks |
Number of blocks in Tecplot file. More... | |
int | m_coordim |
Coordinate dimension of output. More... | |
int | m_totConn |
Total number of connectivity entries. More... | |
std::vector< Array< OneD, int > > | m_conn |
Connectivty for each block: one per element. More... | |
Array< OneD, int > | m_rankFieldSizes |
Each rank's field sizes. More... | |
Array< OneD, int > | m_rankConnSizes |
Each rank's connectivity sizes. More... | |
Array< OneD, Array< OneD, NekDouble > > | m_fields |
Field data to output. 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... | |
Tecplot output class, specifically for binary field output.
Definition at line 146 of file OutputTecplot.h.
|
inline |
Definition at line 156 of file OutputTecplot.h.
References Nektar::FieldUtils::OutputTecplot::m_binary.
|
inlineoverride |
Definition at line 161 of file OutputTecplot.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 150 of file OutputTecplot.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
overrideprotectedvirtual |
Write Tecplot connectivity information (ASCII)
outfile | Output file |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 901 of file OutputTecplot.cpp.
References Nektar::FieldUtils::OutputTecplot::m_conn, Nektar::FieldUtils::Module::m_f, Nektar::FieldUtils::OutputTecplot::m_oneOutputFile, Nektar::FieldUtils::OutputTecplot::m_rankConnSizes, Nektar::FieldUtils::OutputTecplot::m_rankFieldSizes, Nektar::FieldUtils::OutputTecplot::m_totConn, Vmath::Vcopy(), and Nektar::FieldUtils::WriteStream().
|
overrideprotectedvirtual |
Write Tecplot files header in binary format.
outfile | Output file name |
var | Variables names |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 466 of file OutputTecplot.cpp.
References Nektar::FieldUtils::Module::m_f, Nektar::FieldUtils::OutputTecplot::m_oneOutputFile, CG_Iterations::title, and Nektar::FieldUtils::WriteStream().
|
overrideprotectedvirtual |
Write Tecplot zone output in binary
outfile | Output file name. |
expansion | Expansion that is considered |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 696 of file OutputTecplot.cpp.
References Nektar::FieldUtils::eOrdered, Nektar::FieldUtils::Module::m_config, Nektar::FieldUtils::Module::m_f, Nektar::FieldUtils::OutputTecplot::m_fields, Nektar::FieldUtils::OutputTecplot::m_numBlocks, Nektar::FieldUtils::OutputTecplot::m_numPoints, Nektar::FieldUtils::OutputTecplot::m_oneOutputFile, Nektar::FieldUtils::OutputTecplot::m_rankFieldSizes, Nektar::FieldUtils::OutputTecplot::m_zoneType, Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceMin, Vmath::Vmax(), Vmath::Vmin(), Vmath::Vsum(), WriteDoubleOrFloat(), and Nektar::FieldUtils::WriteStream().
|
protected |
Write either double-precision or single-precision output of field data.
outfile | Output file name. |
expansion | Expansion that is considered |
Definition at line 669 of file OutputTecplot.cpp.
References CellMLToNektar.pycml::copy(), Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::WriteStream().
Referenced by v_WriteTecplotZone().
|
static |
Definition at line 155 of file OutputTecplot.h.