graphics::BaseDataCell< F, G > Class Template Referenceabstract
Class for writing the graphical output of a FE solution represented by a coefficient vector (and possibly an element function) to the given streams. More...
#include <basis.hh>
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) | |
Constructor (for single and repeated output) More... | |
const concepts::Array< F > & | coeff () const |
Returns the coefficients of the elements shape functions. More... | |
std::vector< uint > & | count () |
Number of points written to the files, used for mesh representation. More... | |
uint | dim () const |
Number of the elements, used for drawing mesh representation. More... | |
const concepts::ElementFunction< F, G > *& | elementFunction () |
Returns the function of the solution. More... | |
virtual uint | n () const |
virtual uint | n () const=0 |
Number of components. More... | |
virtual void | operator() (const concepts::Cell &cell) throw (concepts::MissingFeature) |
Not operational. More... | |
virtual void | operator() (const concepts::Element< G > &elm) |
Output of the mesh and vector data of the element. More... | |
virtual void | operator() (const concepts::Element< typename concepts::Realtype< F >::type > &elm)=0 |
const concepts::Vector< F > & | sol () const |
uint | streams () const |
Number of streams. More... | |
std::map< std::string, std::ostream * > & | write () |
Returns the streams to write the data to. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
concepts::Sequence< uint > | cnt_ |
Some counters. More... | |
const uint | dim_ |
Number of drawn elements. More... | |
std::map< std::string, std::ostream * > & | os_ |
Streams to write the data to. More... | |
enum concepts::ElementGraphicsBase::graphicsType | type_ |
Type of Output, like Matlab, Gnuplot. More... | |
Private Attributes | |
concepts::Array< F > | coeff_ |
Elementwise coefficients of the shape functions. More... | |
const concepts::ElementFunction< F, G > * | fun_ |
Function of the solution. More... | |
const concepts::Vector< F > & | sol_ |
Vector of the variable to plot. More... | |
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.
Constructor & Destructor Documentation
◆ BaseDataCell()
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
-
os Streams dim Spatial dimension of the elements sol The first solution set which should be plotted fun Function of the FE function, e.g. itself.
Member Function Documentation
◆ coeff()
|
inline |
◆ count()
|
inlineinherited |
◆ dim()
|
inlineinherited |
◆ elementFunction()
|
inline |
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from graphics::BaseOutputCell< typename concepts::Realtype< F >::type >.
◆ n() [1/2]
|
virtual |
◆ n() [2/2]
|
pure virtualinherited |
Number of components.
◆ operator()() [1/3]
|
virtual |
Not operational.
Implements graphics::BaseOutputCell< typename concepts::Realtype< F >::type >.
◆ operator()() [2/3]
|
virtual |
Output of the mesh and vector data of the element.
◆ operator()() [3/3]
|
pure virtualinherited |
◆ sol()
|
inline |
◆ streams()
|
inlineinherited |
◆ write()
|
inlineinherited |
Member Data Documentation
◆ cnt_
|
protectedinherited |
◆ coeff_
|
private |
◆ dim_
|
protectedinherited |
◆ fun_
|
private |
◆ os_
|
protectedinherited |
◆ sol_
|
private |
◆ type_
|
protectedinherited |
The documentation for this class was generated from the following file:
- graphics/basis.hh