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

#include <matlab.hh>

Inheritance diagram for graphics::MatlabMesh:
concepts::OutputOperator

Static Public Member Functions

static void writeAttributes (const concepts::Connector &cntr, std::map< std::string, std::ostream * > &os)
 Writes for a cell the attributes to output streams. More...
 
static void writeCoord (concepts::Point< Real, 2 > x, std::map< std::string, std::ostream * > &os)
 
static void writeCoord (const concepts::Point< Real, 3 > x, std::map< std::string, std::ostream * > &os, const uint dim)
 
template<uint dim>
static void writeCoord (typename concepts::Point< Real, dim > x, std::map< std::string, std::ostream * > &os)
 Writes the coordinates of one point to output streams. More...
 
template<class F >
static void writeFormula (const concepts::Cell &cell, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, 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, uint &cnt, bool boundary=false, bool coord=true)
 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

static void writeMesh_ (const concepts::Edge2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true)
 
static void writeMesh_ (const concepts::InfiniteQuad2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true)
 
static void writeMesh_ (const concepts::Quad2d &quad, std::map< std::string, std::ostream * > &os, const concepts::Array< uint > &np, uint &cnt, bool boundary=false, bool coord=true)
 

Detailed Description

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

Author
Kersten Schmidt, 2005

Definition at line 325 of file matlab.hh.

Member Function Documentation

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ writeAttributes()

static void graphics::MatlabMesh::writeAttributes ( const concepts::Connector cntr,
std::map< std::string, std::ostream * > &  os 
)
static

Writes for a cell the attributes to output streams.

Parameters
cntrconnector
osoutput streams
npnumber of points (per direction)
cntcounter

◆ writeCoord() [1/3]

static void graphics::MatlabMesh::writeCoord ( concepts::Point< Real, 2 >  x,
std::map< std::string, std::ostream * > &  os 
)
static

◆ writeCoord() [2/3]

static void graphics::MatlabMesh::writeCoord ( const concepts::Point< Real, 3 >  x,
std::map< std::string, std::ostream * > &  os,
const uint  dim 
)
static

◆ writeCoord() [3/3]

template<uint dim>
void graphics::MatlabMesh::writeCoord ( typename concepts::Point< Real, dim >  x,
std::map< std::string, std::ostream * > &  os 
)
static

Writes the coordinates of one point to output streams.

Parameters
xcoordinates
osoutput streams

Definition at line 396 of file matlab.hh.

◆ writeFormula()

template<class F >
void graphics::MatlabMesh::writeFormula ( const concepts::Cell cell,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
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 411 of file matlab.hh.

◆ writeMesh()

static void graphics::MatlabMesh::writeMesh ( const concepts::Cell cell,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
uint &  cnt,
bool  boundary = false,
bool  coord = true 
)
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

◆ writeMesh_() [1/3]

static void graphics::MatlabMesh::writeMesh_ ( const concepts::Edge2d quad,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
uint &  cnt,
bool  boundary = false,
bool  coord = true 
)
staticprivate

◆ writeMesh_() [2/3]

static void graphics::MatlabMesh::writeMesh_ ( const concepts::InfiniteQuad2d quad,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
uint &  cnt,
bool  boundary = false,
bool  coord = true 
)
staticprivate

◆ writeMesh_() [3/3]

static void graphics::MatlabMesh::writeMesh_ ( const concepts::Quad2d quad,
std::map< std::string, std::ostream * > &  os,
const concepts::Array< uint > &  np,
uint &  cnt,
bool  boundary = false,
bool  coord = true 
)
staticprivate

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