graphics Namespace Reference

Graphics. More...

Classes

class  BaseDataCell
 Class for writing the graphical output of a FE solution represented by a coefficient vector (and possibly an element function) to the given streams. More...
 
class  BaseElementFormulaCell
 Writes element formula for a cell to the given streams. More...
 
class  BaseFormulaCell
 Writes formula for a cell to the given streams. More...
 
class  BaseMeshCell
 Writes the mesh to the given streams (for a cell). More...
 
class  BaseOutputCell
 Writes the mesh to the given streams. More...
 
class  BoundaryDXCell
 Gathers information about boundary faces (or edges in 2D) and prepares information to be written to an OpenDX file. More...
 
class  DataDX
 Draws a picture of data in DX format and stores the result in a file. More...
 
class  DataDXConnections
 Graphics in OpenDX - connections. More...
 
class  DataDXCoordinates
 Graphics in OpenDX - coordinates. More...
 
class  DataDXCounts
 Graphics in OpenDX - point counter. More...
 
class  DataDXData
 Graphics in OpenDX - data. More...
 
class  DataGnuplotCell
 Writes the data which describe the elements to the given streams. More...
 
class  DataMatlab
 Draws a picture of data in Matlab format and stores the result in files. More...
 
class  DataMatlabCell
 Writes the data which describe the elements to the given streams. More...
 
class  DenseMatrixCollection
 Class that hold and manage a std::map with concepts::ElementMatrices for graphical output, collected by graphics::DenseMatrixGraphics. More...
 
class  DenseMatrixGraphics
 Class that collects data for graphical output and stores it in concepts::ElementMatrices and graphics::DenseMatrixCollection. More...
 
class  MatlabBinaryGraphics
 Class that allows to store graphical infomations in .mat files to use them in Matlab. More...
 
class  MatlabBinaryMeshGraphics
 
class  MatlabElasticityGraphics
 
class  MatlabGraphics
 Draws a picture of data in Matlab format and stores the result in a single file. More...
 
class  MatlabMesh
 Routines for writing mesh and formula for a single cell for different cell types. More...
 
class  MatrixBaseElementFormulaCell
 Class for writing the graphical output of an element formula to ElementMatrices. More...
 
class  MatrixBaseMeshCell
 Class that iterates over a mesh and collects graphical informations in a set of ElementMatrices. More...
 
class  MatrixBasisOutputCell
 Basis class for graphical output using dense matrices. More...
 
class  MatrixCounterCell
 Class that collects information about the mesh/space it iterates over, that are used for MatrixBasisOutputCell and derived classes to allocate the matrices where the data will be stored. More...
 
class  MatrixSolutionEvaluationCell
 Class for writing the values of the solution of a PDE on the quadrature points of the space in a DenseMatrix. More...
 
class  MatrixSpaceOutputCell
 Class that collects graphical informations about a given space in a set of ElementMatrices. More...
 
class  MeshDAT
 Creates files which are suitable for mesh input using Import2dMesh or Import3dMesh. More...
 
class  MeshDATCell
 Cell by cell output for MeshDAT. More...
 
class  MeshDX
 Draws a picture of a mesh in DX format and stores the result in a file. More...
 
class  MeshDXCell
 Draws a picture of a mesh in DX. More...
 
class  MeshEPS
 Draws a picture of a mesh in EPS format and stores the result in a file. More...
 
class  MeshEPSCell
 Draws a picture of a mesh in EPS. More...
 
class  MeshGnuplotCell
 Writes the data which describe the elements to the given streams. More...
 
class  MeshMatlab
 Creates data for Matlab to draw the mesh. More...
 
class  MeshMatlabCell
 Writes the data which describe the elements to the three streams. More...
 
class  MeshTecplot
 Creates files to show the mesh using Tecplot. More...
 
class  MeshTecplotCell
 Cell by cell output for MeshTecplot. More...
 
class  OutputBase
 Base class for graphical output to a file. More...
 
struct  Size
 Number of components of data types. More...
 
struct  Size< concepts::Cmplx >
 
struct  Size< concepts::Mapping< F, dim > >
 
struct  Size< concepts::Point< F, dim > >
 
struct  Size< Real >
 
struct  spaceTraits
 Traits for a space. More...
 
struct  spaceTraits< hp2D::Space >
 Traits for hp2D::Space. More...
 
struct  spaceTraits< hp3D::Space >
 Traits for hp3D::Space. More...
 
struct  spaceTraits< linDG2D::Space >
 
struct  spaceTraits< linDG2D::SpaceP0 >
 
struct  spaceTraits< linDG2D::SpaceP1 >
 
struct  spaceTraits< linDG3D::FvdgSpace >
 Traits for FvdgSpace. More...
 
struct  spaceTraits< linDG3D::FvdgSpaceP0 >
 Traits for FvdgSpaceP0. More...
 
struct  spaceTraits< linDG3D::FvdgSpaceP1 >
 Traits for FvdgSpaceP1. More...
 
struct  spaceTraits< linearFEM::Linear2d >
 Traits for linearFEM::Linear2d. More...
 
struct  spaceTraits< linearFEM::Linear3d >
 Traits for linearFEM::Linear3d. More...
 
struct  spaceTraits< vectorial::Space< concepts::Real > >
 Traits for vectorial::Space. More...
 
struct  spcDim
 Determines the traits class belonging to a space by a default template parameter. More...
 
struct  spcPosCon
 Determines the traits class belonging to a space by a default template parameter. More...
 
class  TecplotGraphics
 Output to Tecplot. More...
 
class  TecplotMesh
 Routines for writing mesh and formula for a single cell for different cell types. More...
 
class  TopologyDotty
 Executor class for TopologyDottyCell. More...
 
class  TopologyDottyCell
 Produces an input file for dot / dotty to display the topology as a directed graph. More...
 
class  VertexInfo
 Class containing information about one single vertex. More...
 
class  VertexList
 Class containing a list of vertices. More...
 
class  VtkGraphics
 Class that allows to store graphical infomations in .vtk files to use them in paraview. More...
 

Functions

template<typename T >
DataDX< Real > drawDataDX (T &spc, const std::string filename, const uint dim=2)
 Trampoline function to create a DataDX. More...
 
template<typename T , typename S >
void drawDataGnuplot (T &msh_spc, std::string filename, const S &sol, const concepts::ElementFunction< Real > *fun=0)
 Creates a data file for viewing the data with Gnuplot using DataGnuplotCell. More...
 
void drawMeshDAT (concepts::Mesh &msh, const std::string &filename)
 Trampoline function to create an instance of MeshDAT. More...
 
template<typename F >
void drawMeshDAT (concepts::Space< F > &spc, const std::string &filename)
 Trampoline function to create an instance of MeshDAT. More...
 
MeshDX< Real > drawMeshDX (concepts::Mesh &msh, std::string filename)
 Trampoline function to create a MeshDX. More...
 
template<typename T >
MeshDX< Real > drawMeshDX (T &spc, std::string filename)
 Trampoline function to create a MeshDX. More...
 
MeshEPS< Real > drawMeshEPS (concepts::Mesh &msh, std::string filename, const Real scale=100, const Real greyscale=1.0, const unsigned int nPoints=2)
 Trampoline function to create a MeshEPS. More...
 
template<class F >
MeshEPS< F > drawMeshEPS (concepts::Space< F > &spc, std::string filename, const Real scale=100, const Real greyscale=1.0, const unsigned int nPoints=20)
 Trampoline function to create a MeshEPS. More...
 
template<typename T >
void drawMeshGnuplot (T &msh_spc, std::string filename)
 Creates a data file for viewing the mesh with Gnuplot using MeshGnuplotCell. More...
 
void drawMeshMatlab (concepts::Mesh &msh, std::string filename)
 Trampoline function to create an instance of MeshMatlab. More...
 
template<class F >
void drawMeshMatlab (concepts::Space< F > &spc, std::string filename)
 Trampoline function to create an instance of MeshMatlab. More...
 
void drawMeshTecplot (concepts::Mesh &msh, const std::string &filename)
 Trampoline function to create an instance of MeshTecplot. More...
 
template<typename F >
void drawMeshTecplot (concepts::Space< F > &spc, const std::string &filename, const uint dim)
 Trampoline function to create an instance of MeshTecplot. More...
 
std::string matlabEnding (const std::string &filename)
 Returns a string with ".m" ending. More...
 
template<typename T >
bool spaceBoundary (const T &spc)
 Trampoline function for the class spcPosCon. More...
 
template<typename T >
uint spaceDimension (const T &spc)
 Trampoline function for the class spcDim. More...
 
template<typename T >
bool spacePosCon (const T &spc)
 Trampoline function for the class spcPosCon. More...
 
std::string tecplotEnding (const std::string &filename)
 Returns a string with ".dat" ending. More...
 

Detailed Description

Graphics.

Most of the classes in this namespace generate an input file for a graphical application.

Function Documentation

◆ drawDataDX()

template<typename T >
DataDX<Real> graphics::drawDataDX ( T &  spc,
const std::string  filename,
const uint  dim = 2 
)

Trampoline function to create a DataDX.

The purpose of this function is to hide the template parameters of DataDX.

See also
DataDX for the complete description
Author
Philipp Frauenfelder, 2001.

Definition at line 187 of file dataDX.hh.

◆ drawDataGnuplot()

template<typename T , typename S >
void graphics::drawDataGnuplot ( T &  msh_spc,
std::string  filename,
const S &  sol,
const concepts::ElementFunction< Real > *  fun = 0 
)

Creates a data file for viewing the data with Gnuplot using DataGnuplotCell.

The data can be plotted in gnuplot with

 @author Philipp Frauenfelder, 2002
Examples
hpFEM2d.cc, linearDG1d.cc, and linearFEM1d.cc.

Definition at line 109 of file dataGnuplot.hh.

◆ drawMeshDAT() [1/2]

void graphics::drawMeshDAT ( concepts::Mesh msh,
const std::string &  filename 
)

Trampoline function to create an instance of MeshDAT.

Author
Philipp Frauenfelder, 2003

◆ drawMeshDAT() [2/2]

template<typename F >
void graphics::drawMeshDAT ( concepts::Space< F > &  spc,
const std::string &  filename 
)

Trampoline function to create an instance of MeshDAT.

Author
Philipp Frauenfelder, 2003

◆ drawMeshDX() [1/2]

MeshDX<Real> graphics::drawMeshDX ( concepts::Mesh msh,
std::string  filename 
)

Trampoline function to create a MeshDX.

The purpose of this function is to hide the template parameters of MeshDX.

Parameters
mshMesh which should be drawn
filenameFile where the data for OpenDX should be stored
See also
MeshDX for the complete description
Author
Philipp Frauenfelder, 2001
Examples
hpFEM2d.cc.

◆ drawMeshDX() [2/2]

template<typename T >
MeshDX<Real> graphics::drawMeshDX ( T &  spc,
std::string  filename 
)

Trampoline function to create a MeshDX.

The purpose of this function is to hide the template parameters of MeshDX.

This function uses the space traits spaceDimensionTraits to fill in the dimension argument of the constructor of MeshDX with the correct value.

Parameters
spcSpace which should be drawn
filenameFile where the data for OpenDX should be stored
See also
MeshDX for the complete description
Author
Philipp Frauenfelder, 2001

Definition at line 147 of file meshDX.hh.

◆ drawMeshEPS() [1/2]

MeshEPS<Real> graphics::drawMeshEPS ( concepts::Mesh msh,
std::string  filename,
const Real  scale = 100,
const Real  greyscale = 1.0,
const unsigned int  nPoints = 2 
)

Trampoline function to create a MeshEPS.

The purpose of this function is to hide the template parameters of MeshEPS.

See also
MeshEPS for the complete description
Author
Philipp Frauenfelder, 2001.
Examples
BGT_0.cc, cig_load_input_data.cc, elasticity2D_tutorial.cc, exactDtN.cc, hpFEM2d.cc, inhomDirichletBCs.cc, inhomDirichletBCsLagrange.cc, inhomNeumannBCs.cc, and RobinBCs.cc.

◆ drawMeshEPS() [2/2]

template<class F >
MeshEPS<F> graphics::drawMeshEPS ( concepts::Space< F > &  spc,
std::string  filename,
const Real  scale = 100,
const Real  greyscale = 1.0,
const unsigned int  nPoints = 20 
)

Trampoline function to create a MeshEPS.

The purpose of this function is to hide the template parameters of MeshEPS.

See also
MeshEPS for the complete description
Author
Philipp Frauenfelder, 2001.

◆ drawMeshGnuplot()

template<typename T >
void graphics::drawMeshGnuplot ( T &  msh_spc,
std::string  filename 
)

Creates a data file for viewing the mesh with Gnuplot using MeshGnuplotCell.

Author
Philipp Frauenfelder, 2002

Definition at line 46 of file meshGnuplot.hh.

◆ drawMeshMatlab() [1/2]

void graphics::drawMeshMatlab ( concepts::Mesh msh,
std::string  filename 
)

Trampoline function to create an instance of MeshMatlab.

Author
Philipp Frauenfelder, 2002

◆ drawMeshMatlab() [2/2]

template<class F >
void graphics::drawMeshMatlab ( concepts::Space< F > &  spc,
std::string  filename 
)

Trampoline function to create an instance of MeshMatlab.

Author
Philipp Frauenfelder, 2002

◆ drawMeshTecplot() [1/2]

void graphics::drawMeshTecplot ( concepts::Mesh msh,
const std::string &  filename 
)

Trampoline function to create an instance of MeshTecplot.

Author
Philipp Frauenfelder, 2003
Examples
hpFEM3d-EV.cc.

◆ drawMeshTecplot() [2/2]

template<typename F >
void graphics::drawMeshTecplot ( concepts::Space< F > &  spc,
const std::string &  filename,
const uint  dim 
)

Trampoline function to create an instance of MeshTecplot.

Author
Philipp Frauenfelder, 2003

◆ matlabEnding()

std::string graphics::matlabEnding ( const std::string &  filename)

Returns a string with ".m" ending.

◆ spaceBoundary()

template<typename T >
bool graphics::spaceBoundary ( const T &  spc)

Trampoline function for the class spcPosCon.

There, the actual work is done: the class calls the respective function in the traits class and it determines (by a default template argument) which traits class should be used.

Returns
true if the space is a boundary element space. In this case, the elements have one dimension less than the coordinates (ie. triangles with 3D coordinates and lines with 2D coordinates).
Parameters
spcSpace whose attribute shoul be returned. This parameter is only used to determine the parameter type.
Author
Philipp Frauenfelder, 2002

Definition at line 84 of file dataDX.hh.

◆ spaceDimension()

template<typename T >
uint graphics::spaceDimension ( const T &  spc)

Trampoline function for the class spcDim.

There, the actual work is done: the class calls the respective function in the traits class and it determines (by a default template argument) which traits class should be used.

Returns
the dimension of the space. In a 2D and 3D space, quads and hexahedrons are depicted, respectively.
Parameters
spcSpace whose dimension should be returned. This parameter is only used to determine the parameter type.
Author
Philipp Frauenfelder, 2002

Definition at line 60 of file meshDX.hh.

◆ spacePosCon()

template<typename T >
bool graphics::spacePosCon ( const T &  spc)

Trampoline function for the class spcPosCon.

There, the actual work is done: the class calls the respective function in the traits class and it determines (by a default template argument) which traits class should be used.

Returns
true if the elements of the space have the values depending on connections. It returns fals if the values depend on the positions.
Parameters
spcSpace whose attribute shoul be returned. This parameter is only used to determine the parameter type.
Author
Philipp Frauenfelder, 2002

Definition at line 67 of file dataDX.hh.

◆ tecplotEnding()

std::string graphics::tecplotEnding ( const std::string &  filename)

Returns a string with ".dat" ending.

Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich