graphics::MatrixSolutionEvaluationCell< F, G > Class Template Referenceabstract

Class for writing the values of the solution of a PDE on the quadrature points of the space in a DenseMatrix. More...

#include <matrixBasis.hh>

Inheritance diagram for graphics::MatrixSolutionEvaluationCell< F, G >:
graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type > concepts::CellPostprocess< typename concepts::Realtype< F >::type > concepts::OutputOperator

Public Member Functions

const concepts::Array< F > & coeff () const
 Local coefficient vector (w.r.t. More...
 
uint dim () const
 returns the space dimension of the mesh (two by default) More...
 
const concepts::ElementFunction< F, G > * elementFunction ()
 Getter for the element function. More...
 
virtual concepts::ElementMatrix< F > * funValue () const
 Getter for the dense matrix with the function values. More...
 
 MatrixSolutionEvaluationCell (concepts::ElementMatrix< F > *funValue, const concepts::Vector< F > &solution, const concepts::ElementFunction< F, G > *fun=0, uint dim=2)
 Constructor which expects the dense matrices dense_ptr and funValue, the solution vector solution and possibly an element function /c fun. More...
 
uint n ()
 Getter for the dimension of the solution output (number of components) More...
 
virtual void operator() (const concepts::Cell &cell)
 Application operator on a single cell (not implemented) More...
 
virtual void operator() (const concepts::Element< G > &elm)
 Application operator on a single element fill matrices. More...
 
virtual void operator() (const concepts::Element< typename concepts::Realtype< F >::type > &elm)=0
 Writes data of the given element in the matrices. More...
 
virtual void resetCounter ()
 resets all counters to zero More...
 
virtual ~MatrixSolutionEvaluationCell ()
 Destructor. More...
 

Public Attributes

uint indexOfPoints
 Index of the (next) graphics point. More...
 

Protected Member Functions

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

Protected Attributes

uint dim_
 The space dimension of the mesh (1, 2, or 3) More...
 
enum concepts::ElementGraphicsBase::graphicsType type_
 The graphicsType (either concepts::ElementGraphicsBase::DENSEMATRIX or concepts::ElementGraphicsBase::MESH_DENSEMATRIX) More...
 

Private Attributes

concepts::Array< F > coeff_
 Local coefficient vector in one element (size is number of local shape functions) More...
 
const concepts::ElementFunction< F, G > * fun_
 ElementFunction. More...
 
concepts::ElementMatrix< F > * funValue_
 Function Value in evaluate points. More...
 
const concepts::Vector< F > & sol_
 The solution vector. More...
 

Detailed Description

template<class F, class G = typename concepts::Realtype<F>::type>
class graphics::MatrixSolutionEvaluationCell< F, G >

Class for writing the values of the solution of a PDE on the quadrature points of the space in a DenseMatrix.

Author
Christian Heier, 2012

Definition at line 331 of file matrixBasis.hh.

Constructor & Destructor Documentation

◆ MatrixSolutionEvaluationCell()

template<class F , class G = typename concepts::Realtype<F>::type>
graphics::MatrixSolutionEvaluationCell< F, G >::MatrixSolutionEvaluationCell ( concepts::ElementMatrix< F > *  funValue,
const concepts::Vector< F > &  solution,
const concepts::ElementFunction< F, G > *  fun = 0,
uint  dim = 2 
)
inline

Constructor which expects the dense matrices dense_ptr and funValue, the solution vector solution and possibly an element function /c fun.

Parameters
funValueMatrix to store the collected output data
solutionSolution Vector of the FEM
funwhich value should be stored (functionValue, gradient of the function ...)

Definition at line 343 of file matrixBasis.hh.

◆ ~MatrixSolutionEvaluationCell()

template<class F , class G = typename concepts::Realtype<F>::type>
virtual graphics::MatrixSolutionEvaluationCell< F, G >::~MatrixSolutionEvaluationCell ( )
inlinevirtual

Destructor.

Definition at line 351 of file matrixBasis.hh.

Member Function Documentation

◆ coeff()

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::Array<F>& graphics::MatrixSolutionEvaluationCell< F, G >::coeff ( ) const
inline

Local coefficient vector (w.r.t.

the shape functions) of on element which will be used to evaluate the element function

Definition at line 391 of file matrixBasis.hh.

◆ dim()

uint graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >::dim ( ) const
inlineinherited

returns the space dimension of the mesh (two by default)

Definition at line 128 of file matrixBasis.hh.

◆ elementFunction()

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::ElementFunction<F, G>* graphics::MatrixSolutionEvaluationCell< F, G >::elementFunction ( )
inline

Getter for the element function.

Definition at line 369 of file matrixBasis.hh.

◆ funValue()

template<class F , class G = typename concepts::Realtype<F>::type>
virtual concepts::ElementMatrix<F>* graphics::MatrixSolutionEvaluationCell< F, G >::funValue ( ) const
inlinevirtual

Getter for the dense matrix with the function values.

Definition at line 384 of file matrixBasis.hh.

◆ info()

virtual std::ostream& concepts::CellPostprocess< typename concepts::Realtype< F >::type >::info ( std::ostream &  os) const
protectedvirtualinherited

◆ n()

template<class F , class G = typename concepts::Realtype<F>::type>
uint graphics::MatrixSolutionEvaluationCell< F, G >::n ( )
inline

Getter for the dimension of the solution output (number of components)

Definition at line 377 of file matrixBasis.hh.

◆ operator()() [1/3]

template<class F , class G = typename concepts::Realtype<F>::type>
virtual void graphics::MatrixSolutionEvaluationCell< F, G >::operator() ( const concepts::Cell cell)
inlinevirtual

Application operator on a single cell (not implemented)

Implements graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >.

Definition at line 364 of file matrixBasis.hh.

◆ operator()() [2/3]

template<class F , class G = typename concepts::Realtype<F>::type>
virtual void graphics::MatrixSolutionEvaluationCell< F, G >::operator() ( const concepts::Element< G > &  elm)
inlinevirtual

Application operator on a single element fill matrices.

Parameters
elmThe element

Definition at line 358 of file matrixBasis.hh.

◆ operator()() [3/3]

virtual void graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >::operator() ( const concepts::Element< G > &  elm)
pure virtualinherited

Writes data of the given element in the matrices.

Implements concepts::CellPostprocess< typename concepts::Realtype< F >::type >.

◆ resetCounter()

virtual void graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >::resetCounter ( )
inlinevirtualinherited

resets all counters to zero

Definition at line 133 of file matrixBasis.hh.

Member Data Documentation

◆ coeff_

template<class F , class G = typename concepts::Realtype<F>::type>
concepts::Array<F> graphics::MatrixSolutionEvaluationCell< F, G >::coeff_
private

Local coefficient vector in one element (size is number of local shape functions)

Definition at line 402 of file matrixBasis.hh.

◆ dim_

uint graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >::dim_
protectedinherited

The space dimension of the mesh (1, 2, or 3)

Definition at line 143 of file matrixBasis.hh.

◆ fun_

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::ElementFunction<F, G>* graphics::MatrixSolutionEvaluationCell< F, G >::fun_
private

ElementFunction.

Definition at line 397 of file matrixBasis.hh.

◆ funValue_

template<class F , class G = typename concepts::Realtype<F>::type>
concepts::ElementMatrix<F>* graphics::MatrixSolutionEvaluationCell< F, G >::funValue_
private

Function Value in evaluate points.

Definition at line 405 of file matrixBasis.hh.

◆ indexOfPoints

uint graphics::MatrixBasisOutputCell< typename concepts::Realtype< F >::type >::indexOfPoints
inherited

Index of the (next) graphics point.

Definition at line 138 of file matrixBasis.hh.

◆ sol_

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::Vector<F>& graphics::MatrixSolutionEvaluationCell< F, G >::sol_
private

The solution vector.

Definition at line 408 of file matrixBasis.hh.

◆ type_


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