vtkGraphics.hh
An abstract class for a function in a FE space.
Definition: elementFormula.hh:25
VtkGraphics()
void writeMesh_(std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_)
Writes the mesh/geometry in the vtk file.
Definition: vtkGraphics.hh:238
concepts::RCP< concepts::ElementMatrix< F > > getSolution(const concepts::Space< G > &spc, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
Returns a vector with the value of the solution on the quadrature-points of a given space using a giv...
Definition: denseMatrixGraphics.hh:130
void writePoints_(std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_, concepts::RCP< concepts::ElementMatrix< F > > functionValue=concepts::RCP< concepts::ElementMatrix< F > >(0))
writes the points in the vtk file
Definition: vtkGraphics.hh:324
void cellType_(std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_)
Adds the cellType (in the 3 d case)
Definition: vtkGraphics.hh:313
virtual ~VtkGraphics()
void writeHead_(std::string &, std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_)
writes the header of an ASCII vtk file
Definition: vtkGraphics.hh:341
void storeData_(bool data, std::string filename, DenseMatrixCollection< G > &dense_ptr_, concepts::RCP< concepts::ElementMatrix< F > > functionValue=concepts::RCP< concepts::ElementMatrix< F > >(0))
Store data as vtk file.
Definition: vtkGraphics.hh:205
Interface for a formula defined element by element.
Definition: elementFormula.hh:35
void writeValues_(std::ostringstream &stream, concepts::RCP< concepts::ElementMatrix< F > > functionValue=0, const std::string name="solution")
writes function values in a vtk file
Class that allows to store graphical infomations in .vtk files to use them in paraview.
Definition: vtkGraphics.hh:20
void addSolution(const concepts::Space< G > &spc, const std::string name, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
Adds a solution vector to the current matfile.
Definition: vtkGraphics.hh:67
DenseMatrixCollection< G > getSpace(const concepts::Space< G > &spc)
Returns a graphics::DenseMatrixCollection<G> that contains informations for graphical output of the g...
Definition: denseMatrixGraphics.hh:171
std::string vtkEnding_(const std::string &filename)
Adds ".vtk" to a string if it dosn't end with ".vtk" the string itself else.
Definition: vtkGraphics.hh:152
void writeWeightsAndAttr_(std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_)
Writes attribues and integration weights as pointdata in the vtk file.
Definition: vtkGraphics.hh:296
Class that collects data for graphical output and stores it in concepts::ElementMatrices and graphics...
Definition: denseMatrixGraphics.hh:69
void addFunction(const concepts::Space< G > &spc, const std::string name, const concepts::ElementFormula< F, G > &frm)
Adds a solution vector to the current matfile.
Definition: vtkGraphics.hh:88
void writeEdgeMesh_(std::ostringstream &stream, DenseMatrixCollection< G > &dense_ptr_)
Writes the Edgmesh in the vtk file.
Definition: vtkGraphics.hh:285
concepts::RCP< concepts::ElementMatrix< typename concepts::Datatype< F >::type > > getFunction(const concepts::Space< G > &spc, const concepts::ElementFormula< F, G > &frm)
Returns a vector with the value of the function on the quadrature-points of a given space using the g...
Definition: denseMatrixGraphics.hh:194
Class that hold and manage a std::map with concepts::ElementMatrices for graphical output,...
Definition: denseMatrixGraphics.hh:27
VtkGraphics(concepts::Mesh &msh, const std::string filename, const uint points=5)
Constructor for output of a mesh.