35#ifndef FIELDUTILS_OUTPUTTECPLOT
36#define FIELDUTILS_OUTPUTTECPLOT
73 void v_Process(po::variables_map &vm)
override;
77 return "OutputTecplot";
89 fs::path
v_GetPath(std::string &filename, po::variables_map &vm)
override;
92 po::variables_map &vm)
override;
120 std::vector<std::string> &var);
122 std::vector<std::string> &var)
169 std::vector<std::string> &var)
override;
Converter from fld to vtk.
Tecplot output class, specifically for binary field output.
void WriteDoubleOrFloat(std::ofstream &outfile, Array< OneD, NekDouble > &data)
Write either double-precision or single-precision output of field data.
void v_WriteTecplotConnectivity(std::ofstream &outfile) override
Write Tecplot connectivity information (ASCII)
static ModuleKey m_className
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
~OutputTecplotBinary() override
void v_WriteTecplotHeader(std::ofstream &outfile, std::vector< std::string > &var) override
Write Tecplot files header in binary format.
void v_WriteTecplotZone(std::ofstream &outfile) override
OutputTecplotBinary(FieldSharedPtr f)
virtual void v_WriteTecplotHeader(std::ofstream &outfile, std::vector< std::string > &var)
Write Tecplot files header.
void v_Process(po::variables_map &vm) override
Write fld to output file.
fs::path v_GetPath(std::string &filename, po::variables_map &vm) override
int m_totConn
Total number of connectivity entries.
void v_OutputFromPts(po::variables_map &vm) override
Write from pts to output file.
std::vector< Array< OneD, int > > m_conn
Connectivty for each block: one per element.
Array< OneD, int > m_rankConnSizes
Each rank's connectivity sizes.
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
bool m_binary
True if writing binary field output.
bool m_oneOutputFile
True if writing a single output file.
void WriteTecplotZone(std::ofstream &outfile)
OutputTecplot(FieldSharedPtr f)
void CalculateConnectivity()
Calculate connectivity information for each expansion dimension.
void WriteTecplotConnectivity(std::ofstream &outfile)
~OutputTecplot() override
void v_OutputFromData(po::variables_map &vm) override
Write from data to output file.
bool m_writeHeader
True if writing header.
void v_OutputFromExp(po::variables_map &vm) override
Write from m_exp to output file.
static ModuleKey m_className
TecplotZoneType m_zoneType
Tecplot zone type of output.
Array< OneD, int > m_rankFieldSizes
Each rank's field sizes.
std::vector< int > m_numPoints
Number of points per block in Tecplot file.
std::string v_GetModuleName() override
void WriteTecplotHeader(std::ofstream &outfile, std::vector< std::string > &var)
void WriteTecplotFile(po::variables_map &vm)
fs::path v_GetFullOutName(std::string &filename, po::variables_map &vm) override
int m_numBlocks
Number of blocks in Tecplot file.
int m_coordim
Coordinate dimension of output.
virtual void v_WriteTecplotConnectivity(std::ofstream &outfile)
Write Tecplot connectivity information (ASCII)
int GetNumTecplotBlocks()
Calculate number of Tecplot blocks.
virtual void v_WriteTecplotZone(std::ofstream &outfile)
Array< OneD, Array< OneD, NekDouble > > m_fields
Field data to output.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey