Nektar++
|
Tecplot output class, specifically for binary field output. More...
#include <OutputTecplot.h>
Public Member Functions | |
OutputTecplotBinary (FieldSharedPtr f) | |
virtual | ~OutputTecplotBinary () |
![]() | |
OutputTecplot (FieldSharedPtr f) | |
virtual | ~OutputTecplot () |
virtual void | Process (po::variables_map &vm) |
Write fld to output file. More... | |
virtual std::string | GetModuleName () |
![]() | |
OutputFileBase (FieldSharedPtr f) | |
virtual | ~OutputFileBase () |
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) |
virtual | ~Module ()=default |
const ConfigOption & | GetConfigOption (const std::string &key) const |
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 (FieldSharedPtr f) |
Creates an instance of this class. More... | |
![]() | |
static std::shared_ptr< Module > | create (FieldSharedPtr f) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static ModuleKey | m_className |
![]() | |
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... | |
virtual void | WriteTecplotHeader (std::ofstream &outfile, std::vector< std::string > &var) |
Write Tecplot files header in binary format. More... | |
virtual void | WriteTecplotZone (std::ofstream &outfile) |
virtual void | WriteTecplotConnectivity (std::ofstream &outfile) |
Write Tecplot connectivity information (ASCII) More... | |
![]() | |
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) |
void | WriteTecplotFile (po::variables_map &vm) |
int | GetNumTecplotBlocks () |
Calculate number of Tecplot blocks. More... | |
void | CalculateConnectivity () |
Calculate connectivity information for each expansion dimension. More... | |
![]() | |
Module () | |
Additional Inherited Members | |
![]() | |
FieldSharedPtr | m_f |
Field object. More... | |
![]() | |
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... | |
![]() | |
bool | m_requireEquiSpaced |
![]() | |
std::ofstream | m_fldFile |
Output stream. More... | |
![]() | |
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 137 of file OutputTecplot.h.
|
inline |
Definition at line 147 of file OutputTecplot.h.
References Nektar::FieldUtils::OutputTecplot::m_binary.
|
inlinevirtual |
Definition at line 152 of file OutputTecplot.h.
|
inlinestatic |
Creates an instance of this class.
Definition at line 141 of file OutputTecplot.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Write either double-precision or single-precision output of field data.
outfile | Output file name. |
expansion | Expansion that is considered |
Definition at line 675 of file OutputTecplot.cpp.
References CellMLToNektar.pycml::copy(), Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::WriteStream().
Referenced by WriteTecplotZone().
|
protectedvirtual |
Write Tecplot connectivity information (ASCII)
outfile | Output file |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 903 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().
|
protectedvirtual |
Write Tecplot files header in binary format.
outfile | Output file name |
var | Variables names |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 477 of file OutputTecplot.cpp.
References Nektar::FieldUtils::Module::m_f, Nektar::FieldUtils::OutputTecplot::m_oneOutputFile, CG_Iterations::title, and Nektar::FieldUtils::WriteStream().
|
protectedvirtual |
Write Tecplot zone output in binary
outfile | Output file name. |
expansion | Expansion that is considered |
Reimplemented from Nektar::FieldUtils::OutputTecplot.
Definition at line 702 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().
|
static |
Definition at line 146 of file OutputTecplot.h.