Routines for writing mesh and formula for a single cell for different cell types. More...

#include <tecplot.hh>

Inheritance diagram for graphics::TecplotMesh:
concepts::OutputOperator

Static Public Member Functions

static void writeConnect (const concepts::Quad2d &quad, std::ostream &os, const concepts::Array< uint > &np, std::vector< uint > &cnt)
 Writes the connectivity data. More...
 
template<uint dim, class F >
static void writeData (const concepts::Array< concepts::Point< Real, dim > > &coord, std::ostream &os, const F *values=0)
 Writes coordinates and data. More...
 
template<class F >
static void writeFormula (const concepts::Cell &cell, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, std::vector< uint > &cnt, const concepts::PiecewiseFormulaBase< F > *frm)
 Writes for a cell a formula on the mesh, with coordinates, to output streams. More...
 
static void writeMesh (const concepts::Cell &cell, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, std::vector< uint > &cnt)
 Writes for a cell the mesh, eventually with coordinates, to output streams. More...
 

Protected Member Functions

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

Static Private Member Functions

template<uint dim>
static void writeCoord_ (concepts::Point< Real, dim > x, std::ostream &os)
 Writes the coordinates of one point to output streams. More...
 

Detailed Description

Routines for writing mesh and formula for a single cell for different cell types.

Author
Kersten Schmidt, 2005

Definition at line 271 of file tecplot.hh.

Member Function Documentation

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ writeConnect()

static void graphics::TecplotMesh::writeConnect ( const concepts::Quad2d quad,
std::ostream &  os,
const concepts::Array< uint > &  np,
std::vector< uint > &  cnt 
)
static

Writes the connectivity data.

Parameters
cntvector with 2 components, (1st number of nodes, 2nd number of elements)

◆ writeCoord_()

template<uint dim>
void graphics::TecplotMesh::writeCoord_ ( concepts::Point< Real, dim >  x,
std::ostream &  os 
)
staticprivate

Writes the coordinates of one point to output streams.

Parameters
xcoordinates
osoutput stream

Definition at line 377 of file tecplot.hh.

◆ writeData()

template<uint dim, class F >
void graphics::TecplotMesh::writeData ( const concepts::Array< concepts::Point< Real, dim > > &  coord,
std::ostream &  os,
const F *  values = 0 
)
static

Writes coordinates and data.

Parameters
coordArray of coordinates
osoutput streams
valuesC array of values

Definition at line 363 of file tecplot.hh.

◆ writeFormula()

template<class F >
void graphics::TecplotMesh::writeFormula ( const concepts::Cell cell,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
std::vector< uint > &  cnt,
const concepts::PiecewiseFormulaBase< F > *  frm 
)
static

Writes for a cell a formula on the mesh, with coordinates, to output streams.

Parameters
cellCell
osoutput streams
npnumber of points (per direction)
cntcounter
frmFormula

Definition at line 335 of file tecplot.hh.

◆ writeMesh()

static void graphics::TecplotMesh::writeMesh ( const concepts::Cell cell,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
std::vector< uint > &  cnt 
)
static

Writes for a cell the mesh, eventually with coordinates, to output streams.

Parameters
cellCell
osoutput streams
npnumber of points (per direction)
cntcounter
boundaryif true, only on points on boundary are set
coordif true, output of coordinates

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