matlab.hh
Draws a picture of data in Matlab format and stores the result in a single file.
Definition: matlab.hh:114
An abstract class for a function in a FE space.
Definition: elementFormula.hh:25
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)
Piecewise defined function on a number of cells.
Definition: piecewiseFormula.hh:43
static void writeCoord(const concepts::Point< Real, 3 > x, std::map< std::string, std::ostream * > &os, const uint dim)
std::string matlabEnding(const std::string &filename)
Returns a string with ".m" ending.
Routines for writing mesh and formula for a single cell for different cell types.
Definition: matlab.hh:325
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.
Definition: matlab.hh:411
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
static void writeAttributes(const concepts::Connector &cntr, std::map< std::string, std::ostream * > &os)
Writes for a cell the attributes to output streams.
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
#define DEBUGL(doit, msg)
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.
Class for writing the graphical output of a FE solution represented by a coefficient vector (and poss...
Definition: basis.hh:140
std::map< std::string, std::ostream * > s_ptr_
Pointer to the streams, i.e. *(s_ptr_["vtxmsh"]) for FE mesh.
Definition: matlab.hh:212
void operator()(const concepts::Space< G > &spc, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
Application operator for output of solutions and functions of it.
Definition: matlab.hh:283
static void writeCoord(concepts::Point< Real, 2 > x, std::map< std::string, std::ostream * > &os)
void write_(concepts::GlobalPostprocess< F > &postProcess, BaseOutputCell< F > &matlab, bool data=false)
Creates standard streams, writes to streams, writes to file and clear and delete all streams.
Definition: matlab.hh:303
Interface for a formula defined element by element.
Definition: elementFormula.hh:35
MatlabGraphics(const concepts::Space< G > &spc, const std::string filename, const uint dim=2)
Constructor for output of mesh only.
Definition: matlab.hh:220
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.
Definition: matlab.hh:396
Writes element formula for a cell to the given streams.
Definition: basis.hh:186
std::vector< uint > & count()
Number of points written to the files, used for mesh representation.
Definition: basis.hh:108
MatlabGraphics(concepts::Mesh &msh, const std::string filename, const uint dim=2, const uint points=noPoints)
Constructor for output of mesh only.
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)
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)