Output to Tecplot. More...

#include <tecplot.hh>

Inheritance diagram for graphics::TecplotGraphics:
graphics::OutputBase concepts::OutputOperator

Public Types

enum  elementTypes {
  TRIANGLE, QUADRILATERAL, TETRAHEDRON, BRICK,
  MAX_TYPE
}
 

Public Member Functions

template<class F >
 TecplotGraphics (concepts::Mesh &msh, const std::string filename, const std::string title, const concepts::Formula< F > &frm, const enum elementTypes type=QUADRILATERAL, const uint points=noPoints)
 Constructor for output of a scalar formula. More...
 
 TecplotGraphics (concepts::Mesh &msh, const std::string filename, const std::string title, const enum elementTypes type=QUADRILATERAL, const uint points=noPoints)
 Constructor for output of mesh only. More...
 
template<class F , class G >
 TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::ElementFormula< F, G > &frm, const enum elementTypes type=QUADRILATERAL)
 Constructor for output of a element formula. More...
 
template<class F , class G >
 TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::Formula< F > &frm, const enum elementTypes type=QUADRILATERAL)
 Constructor for output of a scalar formula. More...
 
template<class F , class G >
 TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const concepts::Vector< F > &sol, const enum elementTypes type=QUADRILATERAL, const concepts::ElementFunction< F, G > *fun=0, const bool append=false)
 Constructor for output of solutions and functions of it. More...
 
template<class G >
 TecplotGraphics (const concepts::Space< G > &spc, const std::string filename, const std::string title, const enum elementTypes type=QUADRILATERAL)
 Constructor for output of mesh only. More...
 
virtual ~TecplotGraphics ()
 

Static Public Attributes

static uint noPoints
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

std::unique_ptr< std::ofstream > ofs_
 Stream for output file. More...
 

Private Member Functions

void closeStreams_ (const std::vector< uint > &cnt)
 Closes the streams. More...
 
void createStreams_ ()
 Create the streams. More...
 
const uint dim_ () const
 Spatial dimension of the space. More...
 
const std::string typeStr_ () const
 Returns a string for the element type. More...
 
template<class F , class G >
void write_ (concepts::GlobalPostprocess< G > &postProcess, BaseOutputCell< G > &tecplot, const F v)
 Creates standard streams, writes to streams, writes to file and clear and delete all streams. More...
 

Private Attributes

std::map< std::string, std::ostream * > s_ptr_
 Pointer to the streams, i.e. *(s_ptr_["vtxmsh"]) for FE mesh. More...
 
const std::string title_
 File name. More...
 
enum elementTypes type_
 Element type. More...
 

Detailed Description

Output to Tecplot.

Author
Kersten Schmidt, 2005

Definition at line 42 of file tecplot.hh.

Member Enumeration Documentation

◆ elementTypes

Enumerator
TRIANGLE 
QUADRILATERAL 
TETRAHEDRON 
BRICK 
MAX_TYPE 

Definition at line 44 of file tecplot.hh.

Constructor & Destructor Documentation

◆ TecplotGraphics() [1/6]

template<class G >
graphics::TecplotGraphics::TecplotGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const std::string  title,
const enum elementTypes  type = QUADRILATERAL 
)

Constructor for output of mesh only.

Parameters
spcSpace which holds the mesh
filenameName base for the files to be written
titleTitle of the plot
typeType of the elements.

Definition at line 150 of file tecplot.hh.

◆ TecplotGraphics() [2/6]

graphics::TecplotGraphics::TecplotGraphics ( concepts::Mesh msh,
const std::string  filename,
const std::string  title,
const enum elementTypes  type = QUADRILATERAL,
const uint  points = noPoints 
)

Constructor for output of mesh only.

Parameters
mshMesh
filenameName base for the files to be written
titleTitle of the plot
typeType of the elements.

◆ TecplotGraphics() [3/6]

template<class F , class G >
graphics::TecplotGraphics::TecplotGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const std::string  title,
const concepts::Vector< F > &  sol,
const enum elementTypes  type = QUADRILATERAL,
const concepts::ElementFunction< F, G > *  fun = 0,
const bool  append = false 
)

Constructor for output of solutions and functions of it.

Parameters
spcSpace on which the data should be plotted
filenameName base for the files to be written
titleTitle of the plot
solThe first solution set which should be plotted
typeType of the elements
funFunction of the FE function, e.g. itself.

Definition at line 167 of file tecplot.hh.

◆ TecplotGraphics() [4/6]

template<class F , class G >
graphics::TecplotGraphics::TecplotGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const std::string  title,
const concepts::Formula< F > &  frm,
const enum elementTypes  type = QUADRILATERAL 
)

Constructor for output of a scalar formula.

Parameters
spcSpace on which the data should be plotted
filenameName base for the files to be written
titleTitle of the plot
frmFormula
typeType of the elements

Definition at line 189 of file tecplot.hh.

◆ TecplotGraphics() [5/6]

template<class F , class G >
graphics::TecplotGraphics::TecplotGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const std::string  title,
const concepts::ElementFormula< F, G > &  frm,
const enum elementTypes  type = QUADRILATERAL 
)

Constructor for output of a element formula.

Parameters
spcSpace on which the data should be plotted
filenameName base for the files to be written
frmElement formula
typeType of the elements

Definition at line 208 of file tecplot.hh.

◆ TecplotGraphics() [6/6]

template<class F >
graphics::TecplotGraphics::TecplotGraphics ( concepts::Mesh msh,
const std::string  filename,
const std::string  title,
const concepts::Formula< F > &  frm,
const enum elementTypes  type = QUADRILATERAL,
const uint  points = noPoints 
)

Constructor for output of a scalar formula.

Parameters
mshMesh
filenameName base for the files to be written
frmFormula
typeType of the elements
pointsNumber of points inside the element (in one direction)

Definition at line 226 of file tecplot.hh.

◆ ~TecplotGraphics()

virtual graphics::TecplotGraphics::~TecplotGraphics ( )
inlinevirtual

Definition at line 120 of file tecplot.hh.

Member Function Documentation

◆ closeStreams_()

void graphics::TecplotGraphics::closeStreams_ ( const std::vector< uint > &  cnt)
private

Closes the streams.

◆ createStreams_()

void graphics::TecplotGraphics::createStreams_ ( )
private

Create the streams.

◆ dim_()

const uint graphics::TecplotGraphics::dim_ ( ) const
private

Spatial dimension of the space.

◆ info()

virtual std::ostream& graphics::TecplotGraphics::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from graphics::OutputBase.

◆ typeStr_()

const std::string graphics::TecplotGraphics::typeStr_ ( ) const
private

Returns a string for the element type.

◆ write_()

template<class F , class G >
void graphics::TecplotGraphics::write_ ( concepts::GlobalPostprocess< G > &  postProcess,
BaseOutputCell< G > &  tecplot,
const F  v 
)
private

Creates standard streams, writes to streams, writes to file and clear and delete all streams.

Definition at line 246 of file tecplot.hh.

Member Data Documentation

◆ noPoints

uint graphics::TecplotGraphics::noPoints
static

Definition at line 122 of file tecplot.hh.

◆ ofs_

std::unique_ptr<std::ofstream> graphics::OutputBase::ofs_
protectedinherited

Stream for output file.

Definition at line 83 of file basis.hh.

◆ s_ptr_

std::map<std::string, std::ostream*> graphics::TecplotGraphics::s_ptr_
private

Pointer to the streams, i.e. *(s_ptr_["vtxmsh"]) for FE mesh.

Definition at line 142 of file tecplot.hh.

◆ title_

const std::string graphics::TecplotGraphics::title_
private

File name.

Definition at line 144 of file tecplot.hh.

◆ type_

enum elementTypes graphics::TecplotGraphics::type_
private

Element type.

Definition at line 144 of file tecplot.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich