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...

#include <matrixBasis.hh>

Inheritance diagram for graphics::MatrixCounterCell:
concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

int getDim ()
 
int getDimensionsOfMatrices (uint i)
 returns the dimension og More...
 
 MatrixCounterCell (const concepts::ElementGraphicsBase::graphicsType type=concepts::ElementGraphicsBase::DENSEMATRIX, const uint points=5)
 Constructor. More...
 
virtual void operator() (const concepts::Cell &cell)
 Writes Data of the given cell in the matrices. More...
 
virtual void operator() (const concepts::Element< Real > &elm)
 Writes data of the given element in the matrices. More...
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 
void setDim (int dim)
 
virtual ~MatrixCounterCell ()
 Destructor. More...
 

Public Attributes

uint dimensionsOfMatrices [5]
 Four counters that stores space-dependent values (for ex. More...
 
std::map< std::string, uint > noRows
 Number of rows for the matrices. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Attributes

int dim_
 
concepts::Array< uint > points_
 Number of points in one direction. More...
 
enum concepts::ElementGraphicsBase::graphicsType type_
 The graphicsType (either concepts::ElementGraphicsBase::DENSEMATRIX or concepts::ElementGraphicsBase::MESH_DENSEMATRIX) More...
 

Detailed Description

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.

Author
Christian Heier, 2012

Definition at line 33 of file matrixBasis.hh.

Constructor & Destructor Documentation

◆ MatrixCounterCell()

graphics::MatrixCounterCell::MatrixCounterCell ( const concepts::ElementGraphicsBase::graphicsType  type = concepts::ElementGraphicsBase::DENSEMATRIX,
const uint  points = 5 
)

Constructor.

The default values are for MatrixBasisOutputCell and derived classes.

If you want to calculate the dimensions of the matrices for a MatrixBaseMeshCell you have to set type to MESH_DENSEMATRIX.

◆ ~MatrixCounterCell()

virtual graphics::MatrixCounterCell::~MatrixCounterCell ( )
virtual

Destructor.

Member Function Documentation

◆ getDim()

int graphics::MatrixCounterCell::getDim ( )
inline

Definition at line 53 of file matrixBasis.hh.

◆ getDimensionsOfMatrices()

int graphics::MatrixCounterCell::getDimensionsOfMatrices ( uint  i)
inline

returns the dimension og

Definition at line 49 of file matrixBasis.hh.

◆ info()

virtual std::ostream& graphics::MatrixCounterCell::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::CellPostprocess< Real >.

◆ operator()() [1/3]

virtual void graphics::MatrixCounterCell::operator() ( const concepts::Cell cell)
virtual

Writes Data of the given cell in the matrices.

Implements concepts::CellPostprocess< Real >.

◆ operator()() [2/3]

virtual void graphics::MatrixCounterCell::operator() ( const concepts::Element< Real > &  elm)
virtual

Writes data of the given element in the matrices.

◆ operator()() [3/3]

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< F > &  elm)
pure virtualinherited

Application operator.

This application operator has to be overloaded to post process a space.

Parameters
elmCurrent element

Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.

◆ setDim()

void graphics::MatrixCounterCell::setDim ( int  dim)
inline

Definition at line 57 of file matrixBasis.hh.

Member Data Documentation

◆ dim_

int graphics::MatrixCounterCell::dim_
private

Definition at line 84 of file matrixBasis.hh.

◆ dimensionsOfMatrices

uint graphics::MatrixCounterCell::dimensionsOfMatrices[5]

Four counters that stores space-dependent values (for ex.

of integration points) first component: number of integration points in the whole mesh. second component: number of quads, build by integration points in the whole mesh. third component: number of edges, build by integration points in the whole mesh". fourth component: number of big quads. fifth component: number of faces in a 3-d mesh

Definition at line 75 of file matrixBasis.hh.

◆ noRows

std::map<std::string, uint> graphics::MatrixCounterCell::noRows

Number of rows for the matrices.

Definition at line 78 of file matrixBasis.hh.

◆ points_

concepts::Array<uint> graphics::MatrixCounterCell::points_
private

Number of points in one direction.

Definition at line 93 of file matrixBasis.hh.

◆ type_

enum concepts::ElementGraphicsBase::graphicsType graphics::MatrixCounterCell::type_
private

The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich