graphics::DataGnuplotCell< F > Class Template Reference
Writes the data which describe the elements to the given streams. More...
#include <dataGnuplot.hh>
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.
Definition at line 39 of file dataGnuplot.hh.
Constructor & Destructor Documentation
◆ DataGnuplotCell() [1/3]
graphics::DataGnuplotCell< F >::DataGnuplotCell | ( | std::ofstream * | ofs, |
const concepts::Vector< Real > & | solution, | ||
const concepts::ElementFunction< Real > * | fun = 0 |
||
) |
Constructor.
- Parameters
-
ofs Stream to write to solution Solution vector to plot fun Possibly plot function of FE function (fun = 0, plot FE function itself)
◆ DataGnuplotCell() [2/3]
graphics::DataGnuplotCell< F >::DataGnuplotCell | ( | std::ofstream * | ofs, |
const concepts::Formula< Real > & | frm, | ||
const concepts::ElementFunction< Real > * | fun = 0 |
||
) |
Constructor.
- Parameters
-
ofs Stream to write to frm Formula to plot
◆ DataGnuplotCell() [3/3]
graphics::DataGnuplotCell< F >::DataGnuplotCell | ( | std::ofstream * | ofs, |
const concepts::ElementFormula< F > & | frm, | ||
const concepts::ElementFunction< Real > * | fun = 0 |
||
) |
Constructor.
- Parameters
-
ofs Stream to write to frm Formula to plot (given elementwise)
◆ ~DataGnuplotCell()
|
virtual |
Member Function Documentation
◆ coeff()
|
inline |
Returns the coefficients of the elements shape functions.
Definition at line 71 of file dataGnuplot.hh.
◆ elementFormula()
|
inline |
Returns the formula to plot (given elementwise)
Definition at line 75 of file dataGnuplot.hh.
◆ elementFunction()
|
inline |
Returns the function of the solution.
Definition at line 79 of file dataGnuplot.hh.
◆ formula()
|
inline |
Returns the formula to plot.
Definition at line 73 of file dataGnuplot.hh.
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CellEdgeIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellIntegral< F >, concepts::PRefinement< F, dim >, concepts::HRefinement< F, dim >, hp3D::APrioriRefinement, hp2D::APrioriRefinement, graphics::VertexList, graphics::MatrixBaseElementFormulaCell< F, G >, graphics::MatrixCounterCell, graphics::BaseMeshCell, graphics::BaseFormulaCell< F, G >, graphics::BaseElementFormulaCell< F, G >, graphics::BaseDataCell< F, G >, graphics::BaseOutputCell< F >, graphics::BaseOutputCell< typename concepts::Realtype< F >::type >, and graphics::BaseOutputCell< Real >.
◆ operator()() [1/2]
|
virtual |
Application operator.
This application operator has to be overloaded to post process a mesh.
- Parameters
-
cell Current cell
Implements concepts::CellPostprocess< F >.
◆ operator()() [2/2]
|
virtual |
Application operator.
This application operator has to be overloaded to post process a space.
- Parameters
-
elm Current element
Implements concepts::CellPostprocess< F >.
◆ write()
|
inline |
Returns the stream to write the data to.
Definition at line 69 of file dataGnuplot.hh.
Member Data Documentation
◆ coeff_
|
private |
Elementwise coefficients of the shape functions.
Definition at line 86 of file dataGnuplot.hh.
◆ frm_
|
private |
Formula.
Definition at line 90 of file dataGnuplot.hh.
◆ frmElm_
|
private |
Formula (given elementwise)
Definition at line 92 of file dataGnuplot.hh.
◆ fun_
|
private |
Function of the solution.
Definition at line 94 of file dataGnuplot.hh.
◆ ofs_
|
private |
Stream to write the data to.
Definition at line 84 of file dataGnuplot.hh.
◆ 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:
- graphics/dataGnuplot.hh