Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
graphics::MatlabBinaryGraphics Class Reference

#include <matlabBinaryGraphics.hh>

List of all members.

Public Member Functions

template<class G >
void clearMapping (std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
 A delete function for the mapping.
 MatlabBinaryGraphics ()
 Default Construcor.
template<class G >
 MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const uint dim=2)
 Constructor for output of mesh only.
template<class G , class F >
 MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0, const uint dim=2)
 Constructor for output of solutions and functions of it.
template<class G , class F >
 MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, std::vector< concepts::Vector< F > > &sol, int numberOfSolution, const concepts::ElementFunction< F, G > *fun=0, const uint dim=2)
 Constructor for output of solutions and functions of it.
 MatlabBinaryGraphics (concepts::Mesh &msh, const std::string filename, const uint dim=2, const uint points=noPoints)
 Constructor for output of mesh only.
template<class G , class F >
 MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::ElementFormula< F, G > &frm, const uint dim=2)
 Constructor for output of an element formula.
template<class G , class F >
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.
template<class G , class F >
void operator() (const concepts::Space< G > &spc, const concepts::Formula< F > &frm)
 Application operator for output of a scalar formula.
template<class F >
void operator() (concepts::Mesh &msh, const concepts::Formula< F > &frm, const uint points=5)
 Application operator for output of a scalar formula.
virtual ~MatlabBinaryGraphics ()

Static Public Attributes

static uint noPoints

Private Member Functions

template<class G >
void createMatrices_ (bool data, uint count[], std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_)
 Create the matrices in the right size (the size is givn by four unsigned integers "count")
template<class G , class F >
void storeData_ (bool data, std::string filename, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_, concepts::DenseMatrix< F > *functionValue=0, concepts::DenseMatrix< F > **function_ptr_=0, int numOfFunction=0)
 Store data hold by a mapping as Matfile-Binary .mat file.

Private Attributes

uint data_
 Information which data should be stored.
uint dim_
 Spatial dimension of the space.
uint outputDimension_
 dimension of the output: 1 if output is solution | dim_ if output is gradient

Detailed Description

Definition at line 19 of file matlabBinaryGraphics.hh.


Constructor & Destructor Documentation

graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( ) [inline]

Default Construcor.

Definition at line 28 of file matlabBinaryGraphics.hh.

template<class G >
graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const uint  dim = 2 
)

Constructor for output of mesh only.

Parameters:
spcSpace which holds the mesh
filenameName base for the files to be written
dimSpatial dimension of the cells

Definition at line 310 of file matlabBinaryGraphics.hh.

Here is the call graph for this function:

graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( concepts::Mesh msh,
const std::string  filename,
const uint  dim = 2,
const uint  points = noPoints 
)

Constructor for output of mesh only.

Parameters:
mshMesh
filenameName base for the files to be written
dimSpatial dimension of the cells
template<class G , class F >
graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0,
const uint  dim = 2 
)

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
dimSpatial dimension of the cells
funFunction of the FE function, e.g. itself.

Definition at line 189 of file matlabBinaryGraphics.hh.

Here is the call graph for this function:

template<class G , class F >
graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
std::vector< concepts::Vector< F > > &  sol,
int  numberOfSolution,
const concepts::ElementFunction< F, G > *  fun = 0,
const uint  dim = 2 
)

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
dimSpatial dimension of the cells
funFunction of the FE function, e.g. itself.

Definition at line 239 of file matlabBinaryGraphics.hh.

Here is the call graph for this function:

template<class G , class F >
graphics::MatlabBinaryGraphics::MatlabBinaryGraphics ( const concepts::Space< G > &  spc,
const std::string  filename,
const concepts::ElementFormula< F, G > &  frm,
const uint  dim = 2 
)

Constructor for output of an element formula.

Parameters:
spcSpace on which the data should be plotted
filenameName base for the files to be written
dimSpatial dimension of the cells
frmElement formula

Definition at line 343 of file matlabBinaryGraphics.hh.

Here is the call graph for this function:

virtual graphics::MatlabBinaryGraphics::~MatlabBinaryGraphics ( ) [inline, virtual]

Definition at line 84 of file matlabBinaryGraphics.hh.


Member Function Documentation

template<class G >
void graphics::MatlabBinaryGraphics::clearMapping ( std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_) [inline]

A delete function for the mapping.

Deletes all dense matrices and gives their memory back.

Parameters:
dense_ptr_Mapping to delete

Definition at line 94 of file matlabBinaryGraphics.hh.

template<class G >
void graphics::MatlabBinaryGraphics::createMatrices_ ( bool  data,
uint  count[],
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_ 
) [private]

Create the matrices in the right size (the size is givn by four unsigned integers "count")

Parameters:
booldata (flag if solution and space informations should be store)
uint[]count (informations about the size of the space/mesh)
mapping(empty mapping to write matrices)

Definition at line 402 of file matlabBinaryGraphics.hh.

template<class G , class F >
void graphics::MatlabBinaryGraphics::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.

Parameters:
spcSpace on which the data should be plotted
solThe first solution set which should be plotted
funFunction of the FE function, e.g. itself.

Definition at line 391 of file matlabBinaryGraphics.hh.

template<class F >
void graphics::MatlabBinaryGraphics::operator() ( concepts::Mesh msh,
const concepts::Formula< F > &  frm,
const uint  points = 5 
) [inline]

Application operator for output of a scalar formula.

Parameters:
mshMesh
frmFormula

Definition at line 149 of file matlabBinaryGraphics.hh.

template<class G , class F >
void graphics::MatlabBinaryGraphics::operator() ( const concepts::Space< G > &  spc,
const concepts::Formula< F > &  frm 
)

Application operator for output of a scalar formula.

Parameters:
spcSpace on which the data should be plotted
frmFormula

Definition at line 397 of file matlabBinaryGraphics.hh.

template<class G , class F >
void graphics::MatlabBinaryGraphics::storeData_ ( bool  data,
std::string  filename,
std::map< std::string, concepts::DenseMatrix< G > * > &  dense_ptr_,
concepts::DenseMatrix< F > *  functionValue = 0,
concepts::DenseMatrix< F > **  function_ptr_ = 0,
int  numOfFunction = 0 
) [private]

Store data hold by a mapping as Matfile-Binary .mat file.

Parameters:
booldata (flag if solution and space informations should be store)
stringfilename (the name of the file .mat will be added if filename don't end with ".mat")
mapping(mapping to store)

Definition at line 451 of file matlabBinaryGraphics.hh.

Here is the call graph for this function:


Member Data Documentation

Information which data should be stored.

Definition at line 179 of file matlabBinaryGraphics.hh.

Spatial dimension of the space.

Definition at line 182 of file matlabBinaryGraphics.hh.

Definition at line 23 of file matlabBinaryGraphics.hh.

dimension of the output: 1 if output is solution | dim_ if output is gradient

Definition at line 185 of file matlabBinaryGraphics.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)