Class documentation of Concepts

Loading...
Searching...
No Matches

#include <vtkGraphics.hh>

Inheritance diagram for graphics::VtkGraphics:
graphics::OutputBase graphics::DenseMatrixGraphics concepts::OutputOperator

Public Member Functions

template<class F , class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
 
template<class F , class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::ElementFormula< F, G > &frm)
 
template<class G >
 VtkGraphics (const concepts::Space< G > &spc, const std::string filename)
 
 VtkGraphics (concepts::Mesh &msh, const std::string filename, const uint points=5)
 
template<class G , class F >
void addSolution (const concepts::Space< G > &spc, const std::string name, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
 
template<class F , class G >
void addFunction (const concepts::Space< G > &spc, const std::string name, const concepts::ElementFormula< F, G > &frm)
 

Static Public Attributes

static uint noPoints
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 
template<class F , class G >
concepts::RCP< concepts::ElementMatrix< F > > getSolution (const concepts::Space< G > &spc, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
 
template<class F , class G >
concepts::RCP< concepts::ElementMatrix< typename concepts::Datatype< F >::type > > getFunction (const concepts::Space< G > &spc, const concepts::ElementFormula< F, G > &frm)
 
template<class G >
DenseMatrixCollection< G > getSpace (const concepts::Space< G > &spc)
 
DenseMatrixCollection< Real > getMesh (concepts::Mesh &msh, const uint points=5)
 

Protected Attributes

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

Detailed Description

Class that allows to store graphical infomations in .vtk files to use them in paraview.

Author
Christian Heier, 2011

Definition at line 20 of file vtkGraphics.hh.

Constructor & Destructor Documentation

◆ VtkGraphics() [1/4]

template<class F , class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0 
)

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
solThe first solution set which should be plotted
funFunction of the FE function, e.g. itself.

Definition at line 168 of file vtkGraphics.hh.

◆ VtkGraphics() [2/4]

template<class F , class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::ElementFormula< F, G > &  frm 
)

Constructor for output of an element formula

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

Definition at line 181 of file vtkGraphics.hh.

◆ VtkGraphics() [3/4]

template<class G >
graphics::VtkGraphics::VtkGraphics ( const concepts::Space< G > &  spc,
const std::string  filename 
)

Constructor for output of solutions and functions of it.

Parameters
spcSpace on which the data should be plotted
filenameName base for the file to be written

Definition at line 193 of file vtkGraphics.hh.

◆ VtkGraphics() [4/4]

graphics::VtkGraphics::VtkGraphics ( concepts::Mesh msh,
const std::string  filename,
const uint  points = 5 
)

Constructor for output of a mesh

Parameters
mshThe mesh that should be plotted
filenamename of the vtk file @points graphic points in each direction

Member Function Documentation

◆ addFunction()

template<class F , class G >
void graphics::VtkGraphics::addFunction ( const concepts::Space< G > &  spc,
const std::string  name,
const concepts::ElementFormula< F, G > &  frm 
)
inline

Adds a solution vector to the current matfile

Parameters
Thespace from which the solution vector was generated
nameThe name of the variable, e.g. "frm"
Thefunction represented by an element formula

Definition at line 88 of file vtkGraphics.hh.

◆ addSolution()

template<class G , class F >
void graphics::VtkGraphics::addSolution ( const concepts::Space< G > &  spc,
const std::string  name,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0 
)
inline

Adds a solution vector to the current matfile

Parameters
Thespace from which the solution vector was generated
nameThe name of the variable, e.g. "u0"
Thesolution vector
Thetype of vector you need (i.e. Values, gradient, Laplacien etc.), default argument is Values

Definition at line 67 of file vtkGraphics.hh.

◆ getFunction()

template<class F , class G >
concepts::RCP< concepts::ElementMatrix< typename concepts::Datatype< F >::type > > graphics::DenseMatrixGraphics::getFunction ( const concepts::Space< G > &  spc,
const concepts::ElementFormula< F, G > &  frm 
)
protectedinherited

Returns a vector with the value of the function on the quadrature-points of a given space using the given concepts::ElementFormula.

Parameters
spcThe space on which the Element Formula is defined
frmThe ElementFormula of the function that should be plotted

Definition at line 194 of file denseMatrixGraphics.hh.

◆ getMesh()

DenseMatrixCollection< Real > graphics::DenseMatrixGraphics::getMesh ( concepts::Mesh msh,
const uint  points = 5 
)
protectedinherited

Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given mesh.

Parameters
mshThe mesh
dimThe dimension of the mesh

◆ getSolution()

template<class F , class G >
concepts::RCP< concepts::ElementMatrix< F > > graphics::DenseMatrixGraphics::getSolution ( const concepts::Space< G > &  spc,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0 
)
protectedinherited

Returns a vector with the value of the solution on the quadrature-points of a given space using a given coefficient vector.

Parameters
spcThe space from which the solution vector was generated
solThe solution vector
funFunction of the solution (e.g. solution itself, its gradient, it's Laplacien etc.)

Definition at line 130 of file denseMatrixGraphics.hh.

◆ getSpace()

template<class G >
DenseMatrixCollection< G > graphics::DenseMatrixGraphics::getSpace ( const concepts::Space< G > &  spc)
protectedinherited

Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the given space.

Parameters
spcThe space
dimThe dimension of the space

Definition at line 171 of file denseMatrixGraphics.hh.

◆ info()

virtual std::ostream & graphics::OutputBase::info ( std::ostream &  os) const
protectedvirtualinherited

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in graphics::MatlabGraphics, and graphics::TecplotGraphics.

Member Data Documentation

◆ noPoints

uint graphics::DenseMatrixGraphics::noPoints
staticinherited

Definition at line 78 of file denseMatrixGraphics.hh.

◆ ofs_

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

Stream for output file.

Definition at line 83 of file basis.hh.


The documentation for this class was generated from the following file: