Class documentation of Concepts

Loading...
Searching...
No Matches
graphics::BaseDataCell< F, G > Class Template Referenceabstract

#include <basis.hh>

Inheritance diagram for graphics::BaseDataCell< F, G >:
graphics::BaseOutputCell< F > concepts::CellPostprocess< F > concepts::OutputOperator

Public Member Functions

 BaseDataCell (std::map< std::string, std::ostream * > &os, const uint dim, const concepts::ElementGraphicsBase::graphicsType type, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
 
virtual void operator() (const concepts::Element< G > &elm)
 
virtual void operator() (const concepts::Cell &cell)
 Not operational.
 
const concepts::Array< F > & coeff () const
 Returns the coefficients of the elements shape functions.
 
const concepts::ElementFunction< F, G > *& elementFunction ()
 Returns the function of the solution.
 
const concepts::Vector< F > & sol () const
 
virtual uint n () const
 Number of components.
 
virtual void operator() (const concepts::Element< F > &elm)=0
 
std::map< std::string, std::ostream * > & write ()
 Returns the streams to write the data to.
 
uint streams () const
 Number of streams.
 
std::vector< uint > & count ()
 Number of points written to the files, used for mesh representation.
 
uint dim () const
 Number of the elements, used for drawing mesh representation.
 

Protected Member Functions

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

Protected Attributes

enum concepts::ElementGraphicsBase::graphicsType type_
 Type of Output, like Matlab, Gnuplot.
 
concepts::Sequence< uint > cnt_
 Some counters.
 
const uint dim_
 Number of drawn elements.
 
std::map< std::string, std::ostream * > & os_
 Streams to write the data to.
 

Detailed Description

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

Class for writing the graphical output of a FE solution represented by a coefficient vector (and possibly an element function) to the given streams.

It can be used for different formats, like Matlab, Gnuplot.

Author
Kersten Schmidt, 2004

Definition at line 140 of file basis.hh.

Constructor & Destructor Documentation

◆ BaseDataCell()

template<class F , class G = typename concepts::Realtype<F>::type>
graphics::BaseDataCell< F, G >::BaseDataCell ( std::map< std::string, std::ostream * > &  os,
const uint  dim,
const concepts::ElementGraphicsBase::graphicsType  type,
const concepts::Vector< F > &  sol,
const concepts::ElementFunction< F, G > *  fun = 0 
)

Constructor (for single and repeated output)

Parameters
osStreams
dimSpatial dimension of the elements
solThe first solution set which should be plotted
funFunction of the FE function, e.g. itself.

Member Function Documentation

◆ coeff()

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

Returns the coefficients of the elements shape functions.

Definition at line 159 of file basis.hh.

◆ count()

template<class F = Real>
std::vector< uint > & graphics::BaseOutputCell< F >::count ( )
inlineinherited

Number of points written to the files, used for mesh representation.

Definition at line 108 of file basis.hh.

◆ dim()

template<class F = Real>
uint graphics::BaseOutputCell< F >::dim ( ) const
inlineinherited

Number of the elements, used for drawing mesh representation.

Dimension

Definition at line 112 of file basis.hh.

◆ elementFunction()

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

Returns the function of the solution.

Definition at line 161 of file basis.hh.

◆ info()

template<class F , class G = typename concepts::Realtype<F>::type>
virtual std::ostream & graphics::BaseDataCell< F, G >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from graphics::BaseOutputCell< F >.

◆ n()

template<class F , class G = typename concepts::Realtype<F>::type>
virtual uint graphics::BaseDataCell< F, G >::n ( ) const
virtual

Number of components.

Implements graphics::BaseOutputCell< F >.

◆ operator()() [1/3]

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

Not operational.

Implements graphics::BaseOutputCell< F >.

◆ operator()() [2/3]

template<class F = Real>
virtual void graphics::BaseOutputCell< F >::operator() ( const concepts::Element< F > &  elm)
pure virtualinherited

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

Parameters
elmCurrent element

Implements concepts::CellPostprocess< F >.

Implemented in graphics::BaseMeshCell.

◆ operator()() [3/3]

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

Output of the mesh and vector data of the element

◆ sol()

template<class F , class G = typename concepts::Realtype<F>::type>
const concepts::Vector< F > & graphics::BaseDataCell< F, G >::sol ( ) const
inline

Definition at line 163 of file basis.hh.

◆ streams()

template<class F = Real>
uint graphics::BaseOutputCell< F >::streams ( ) const
inlineinherited

Number of streams.

Definition at line 105 of file basis.hh.

◆ write()

template<class F = Real>
std::map< std::string, std::ostream * > & graphics::BaseOutputCell< F >::write ( )
inlineinherited

Returns the streams to write the data to.

Definition at line 103 of file basis.hh.

Member Data Documentation

◆ cnt_

template<class F = Real>
concepts::Sequence<uint> graphics::BaseOutputCell< F >::cnt_
protectedinherited

Some counters.

Definition at line 120 of file basis.hh.

◆ dim_

template<class F = Real>
const uint graphics::BaseOutputCell< F >::dim_
protectedinherited

Number of drawn elements.

Spatial dimension of the space

Definition at line 124 of file basis.hh.

◆ os_

template<class F = Real>
std::map<std::string, std::ostream*>& graphics::BaseOutputCell< F >::os_
protectedinherited

Streams to write the data to.

Definition at line 126 of file basis.hh.

◆ type_

template<class F = Real>
enum concepts::ElementGraphicsBase::graphicsType graphics::BaseOutputCell< F >::type_
protectedinherited

Type of Output, like Matlab, Gnuplot.

Definition at line 118 of file basis.hh.


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