graphics::DataGnuplotCell< F > Class Template Reference

Writes the data which describe the elements to the given streams. More...

#include <dataGnuplot.hh>

Inheritance diagram for graphics::DataGnuplotCell< F >:
concepts::CellPostprocess< F > concepts::OutputOperator

Public Member Functions

const concepts::Array< Real > & coeff () const
 Returns the coefficients of the elements shape functions. More...
 
 DataGnuplotCell (std::ofstream *ofs, const concepts::ElementFormula< F > &frm, const concepts::ElementFunction< Real > *fun=0)
 Constructor. More...
 
 DataGnuplotCell (std::ofstream *ofs, const concepts::Formula< Real > &frm, const concepts::ElementFunction< Real > *fun=0)
 Constructor. More...
 
 DataGnuplotCell (std::ofstream *ofs, const concepts::Vector< Real > &solution, const concepts::ElementFunction< Real > *fun=0)
 Constructor. More...
 
const concepts::ElementFormula< F > * elementFormula () const
 Returns the formula to plot (given elementwise) More...
 
const concepts::ElementFunction< F > * elementFunction () const
 Returns the function of the solution. More...
 
const concepts::Formula< Real > * formula () const
 Returns the formula to plot. More...
 
virtual void operator() (const concepts::Cell &cell) throw (concepts::MissingFeature)
 Application operator. More...
 
virtual void operator() (const concepts::Element< F > &elm) throw (concepts::MissingFeature)
 Application operator. More...
 
std::ofstream * write ()
 Returns the stream to write the data to. More...
 
virtual ~DataGnuplotCell ()
 

Protected Member Functions

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

Private Attributes

concepts::Array< Real > coeff_
 Elementwise coefficients of the shape functions. More...
 
std::unique_ptr< const concepts::Formula< Real > > frm_
 Formula. More...
 
const concepts::ElementFormula< F > * frmElm_
 Formula (given elementwise) More...
 
const concepts::ElementFunction< F > * fun_
 Function of the solution. More...
 
std::ofstream * ofs_
 Stream to write the data to. More...
 
const concepts::Vector< Real > * solution_
 Vector of the variable to plot. More...
 

Detailed Description

template<typename F>
class graphics::DataGnuplotCell< F >

Writes the data which describe the elements to the given streams.

Author
Philipp Frauenfelder, 2002.

Definition at line 39 of file dataGnuplot.hh.

Constructor & Destructor Documentation

◆ DataGnuplotCell() [1/3]

template<typename F >
graphics::DataGnuplotCell< F >::DataGnuplotCell ( std::ofstream *  ofs,
const concepts::Vector< Real > &  solution,
const concepts::ElementFunction< Real > *  fun = 0 
)

Constructor.

Parameters
ofsStream to write to
solutionSolution vector to plot
funPossibly plot function of FE function (fun = 0, plot FE function itself)

◆ DataGnuplotCell() [2/3]

template<typename F >
graphics::DataGnuplotCell< F >::DataGnuplotCell ( std::ofstream *  ofs,
const concepts::Formula< Real > &  frm,
const concepts::ElementFunction< Real > *  fun = 0 
)

Constructor.

Parameters
ofsStream to write to
frmFormula to plot

◆ DataGnuplotCell() [3/3]

template<typename F >
graphics::DataGnuplotCell< F >::DataGnuplotCell ( std::ofstream *  ofs,
const concepts::ElementFormula< F > &  frm,
const concepts::ElementFunction< Real > *  fun = 0 
)

Constructor.

Parameters
ofsStream to write to
frmFormula to plot (given elementwise)

◆ ~DataGnuplotCell()

template<typename F >
virtual graphics::DataGnuplotCell< F >::~DataGnuplotCell ( )
virtual

Member Function Documentation

◆ coeff()

template<typename F >
const concepts::Array<Real>& graphics::DataGnuplotCell< F >::coeff ( ) const
inline

Returns the coefficients of the elements shape functions.

Definition at line 71 of file dataGnuplot.hh.

◆ elementFormula()

template<typename F >
const concepts::ElementFormula<F>* graphics::DataGnuplotCell< F >::elementFormula ( ) const
inline

Returns the formula to plot (given elementwise)

Definition at line 75 of file dataGnuplot.hh.

◆ elementFunction()

template<typename F >
const concepts::ElementFunction<F>* graphics::DataGnuplotCell< F >::elementFunction ( ) const
inline

Returns the function of the solution.

Definition at line 79 of file dataGnuplot.hh.

◆ formula()

template<typename F >
const concepts::Formula<Real>* graphics::DataGnuplotCell< F >::formula ( ) const
inline

Returns the formula to plot.

Definition at line 73 of file dataGnuplot.hh.

◆ info()

◆ operator()() [1/2]

template<typename F >
virtual void graphics::DataGnuplotCell< F >::operator() ( const concepts::Cell cell)
throw (concepts::MissingFeature
)
virtual

Application operator.

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

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< F >.

◆ operator()() [2/2]

template<typename F >
virtual void graphics::DataGnuplotCell< F >::operator() ( const concepts::Element< F > &  elm)
throw (concepts::MissingFeature
)
virtual

Application operator.

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

Parameters
elmCurrent element

Implements concepts::CellPostprocess< F >.

◆ write()

template<typename F >
std::ofstream* graphics::DataGnuplotCell< F >::write ( )
inline

Returns the stream to write the data to.

Definition at line 69 of file dataGnuplot.hh.

Member Data Documentation

◆ coeff_

template<typename F >
concepts::Array<Real> graphics::DataGnuplotCell< F >::coeff_
private

Elementwise coefficients of the shape functions.

Definition at line 86 of file dataGnuplot.hh.

◆ frm_

template<typename F >
std::unique_ptr<const concepts::Formula<Real> > graphics::DataGnuplotCell< F >::frm_
private

Formula.

Definition at line 90 of file dataGnuplot.hh.

◆ frmElm_

template<typename F >
const concepts::ElementFormula<F>* graphics::DataGnuplotCell< F >::frmElm_
private

Formula (given elementwise)

Definition at line 92 of file dataGnuplot.hh.

◆ fun_

template<typename F >
const concepts::ElementFunction<F>* graphics::DataGnuplotCell< F >::fun_
private

Function of the solution.

Definition at line 94 of file dataGnuplot.hh.

◆ ofs_

template<typename F >
std::ofstream* graphics::DataGnuplotCell< F >::ofs_
private

Stream to write the data to.

Definition at line 84 of file dataGnuplot.hh.

◆ solution_

template<typename F >
const concepts::Vector<Real>* graphics::DataGnuplotCell< F >::solution_
private

Vector of the variable to plot.

Definition at line 88 of file dataGnuplot.hh.


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