Nektar++
|
Tecplot output class. More...
#include <OutputTecplot.h>
Public Member Functions | |
OutputTecplot (FieldSharedPtr f) | |
virtual | ~OutputTecplot () |
virtual void | Process (po::variables_map &vm) |
Set up member variables to dump Tecplot format output. More... | |
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) |
FIELD_UTILS_EXPORT void | RegisterConfig (string key, 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 bool | GetRequireEquiSpaced (void) |
FIELD_UTILS_EXPORT void | SetRequireEquiSpaced (bool pVal) |
FIELD_UTILS_EXPORT void | EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield) |
Static Public Member Functions | |
static boost::shared_ptr< Module > | create (FieldSharedPtr f) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static ModuleKey | m_className |
Protected Member Functions | |
virtual void | WriteTecplotHeader (std::ofstream &outfile, std::vector< std::string > &var) |
Write Tecplot files header. More... | |
virtual void | WriteTecplotZone (std::ofstream &outfile) |
virtual void | WriteTecplotConnectivity (std::ofstream &outfile) |
Write Tecplot connectivity information (ASCII) More... | |
int | GetNumTecplotBlocks () |
Calculate number of Tecplot blocks. More... | |
void | CalculateConnectivity () |
Calculate connectivity information for each expansion dimension. More... | |
virtual std::string | GetModuleName () |
Returns this module's name. More... | |
Protected Member Functions inherited from Nektar::FieldUtils::Module | |
Module () | |
Protected Attributes | |
bool | m_binary |
True if writing binary field output. More... | |
bool | m_oneOutputFile |
True if writing a single output file. More... | |
TecplotZoneType | m_zoneType |
Tecplot zone type of output. More... | |
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... | |
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::OutputModule | |
ofstream | m_fldFile |
Output stream. More... | |
Protected Attributes inherited from Nektar::FieldUtils::Module | |
FieldSharedPtr | m_f |
Field object. More... | |
map< string, ConfigOption > | m_config |
List of configuration values. More... | |
bool | m_requireEquiSpaced |
Tecplot output class.
Definition at line 61 of file OutputTecplot.h.
Nektar::FieldUtils::OutputTecplot::OutputTecplot | ( | FieldSharedPtr | f | ) |
Definition at line 73 of file OutputTecplot.cpp.
References Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::Module::m_requireEquiSpaced.
|
virtual |
Definition at line 85 of file OutputTecplot.cpp.
|
protected |
Calculate connectivity information for each expansion dimension.
outfile | Output file |
Definition at line 919 of file OutputTecplot.cpp.
References ASSERTL0, Nektar::MultiRegions::e3DH1D, m_conn, and Nektar::FieldUtils::Module::m_f.
Referenced by Process().
|
inlinestatic |
Creates an instance of this class.
Definition at line 65 of file OutputTecplot.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
inlineprotectedvirtual |
Returns this module's name.
Implements Nektar::FieldUtils::Module.
Definition at line 109 of file OutputTecplot.h.
|
protected |
Calculate number of Tecplot blocks.
outfile | Output file |
Definition at line 882 of file OutputTecplot.cpp.
References Nektar::FieldUtils::Module::m_f.
Referenced by Process().
|
virtual |
Set up member variables to dump Tecplot format output.
Implements Nektar::FieldUtils::Module.
Definition at line 143 of file OutputTecplot.cpp.
References ASSERTL0, CalculateConnectivity(), Nektar::MultiRegions::e3DH1D, Nektar::MultiRegions::e3DH2D, Nektar::FieldUtils::eFETetrahedron, Nektar::FieldUtils::eFETriangle, Nektar::FieldUtils::eOrdered, Nektar::LibUtilities::ePtsBox, Nektar::LibUtilities::ePtsFile, Nektar::LibUtilities::ePtsLine, Nektar::LibUtilities::ePtsPlane, Nektar::LibUtilities::ePtsTetBlock, Nektar::LibUtilities::ePtsTriBlock, GetNumTecplotBlocks(), m_binary, Nektar::FieldUtils::Module::m_config, m_conn, m_coordim, Nektar::FieldUtils::Module::m_f, m_fields, m_numBlocks, m_numPoints, m_oneOutputFile, m_rankConnSizes, m_rankFieldSizes, m_totConn, m_zoneType, npts, Nektar::LibUtilities::NullPtsField, Nektar::LibUtilities::ReduceSum, WriteTecplotConnectivity(), WriteTecplotHeader(), and WriteTecplotZone().
|
protectedvirtual |
Write Tecplot connectivity information (ASCII)
outfile | Output file |
Reimplemented in Nektar::FieldUtils::OutputTecplotBinary.
Definition at line 776 of file OutputTecplot.cpp.
References Nektar::FieldUtils::eOrdered, m_conn, Nektar::FieldUtils::Module::m_f, m_oneOutputFile, m_rankConnSizes, m_rankFieldSizes, m_totConn, m_zoneType, and Vmath::Vcopy().
Referenced by Process().
|
protectedvirtual |
Write Tecplot files header.
outfile | Output file name |
var | Variables names |
Reimplemented in Nektar::FieldUtils::OutputTecplotBinary.
Definition at line 457 of file OutputTecplot.cpp.
Referenced by Process().
|
protectedvirtual |
Write Tecplot zone output in ASCII
outfile | Output file name. |
expansion | Expansion that is considered |
Reimplemented in Nektar::FieldUtils::OutputTecplotBinary.
Definition at line 513 of file OutputTecplot.cpp.
References Nektar::FieldUtils::eOrdered, Nektar::FieldUtils::Module::m_f, m_fields, m_numBlocks, m_numPoints, m_oneOutputFile, m_rankFieldSizes, m_zoneType, and Vmath::Vsum().
Referenced by Process().
|
protected |
True if writing binary field output.
Definition at line 78 of file OutputTecplot.h.
Referenced by Nektar::FieldUtils::OutputTecplotBinary::OutputTecplotBinary(), and Process().
|
static |
Definition at line 70 of file OutputTecplot.h.
Connectivty for each block: one per element.
Definition at line 92 of file OutputTecplot.h.
Referenced by CalculateConnectivity(), Process(), WriteTecplotConnectivity(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotConnectivity().
|
protected |
Coordinate dimension of output.
Definition at line 88 of file OutputTecplot.h.
Referenced by Process().
Field data to output.
Definition at line 98 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().
|
protected |
Number of blocks in Tecplot file.
Definition at line 86 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().
|
protected |
Number of points per block in Tecplot file.
Definition at line 84 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().
|
protected |
True if writing a single output file.
Definition at line 80 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotConnectivity(), Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotConnectivity(), Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotHeader(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().
Each rank's connectivity sizes.
Definition at line 96 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotConnectivity(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotConnectivity().
Each rank's field sizes.
Definition at line 94 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotConnectivity(), Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotConnectivity(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().
|
protected |
Total number of connectivity entries.
Definition at line 90 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotConnectivity(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotConnectivity().
|
protected |
Tecplot zone type of output.
Definition at line 82 of file OutputTecplot.h.
Referenced by Process(), WriteTecplotConnectivity(), WriteTecplotZone(), and Nektar::FieldUtils::OutputTecplotBinary::WriteTecplotZone().