graphics::DataMatlabCell Class Referenceabstract
Writes the data which describe the elements to the given streams. More...
#include <dataMatlab.hh>
Public Member Functions | |
const concepts::Array< Real > & | coeff () const |
Returns the coefficients of the elements shape functions. More... | |
uint & | count () |
Number of points written to the files, used for mesh representation. More... | |
DataMatlabCell (std::ofstream *ofs, uint dim, Real scl) | |
Constructor. More... | |
DataMatlabCell (std::ofstream *ofsmsh, std::ofstream *ofs1, std::ofstream *ofs2, std::ofstream *ofs3, uint dim, Real scl) | |
Constructor. More... | |
uint | dim () const |
concepts::DynArray< uint > & | map () |
Real | offset () const |
virtual void | operator() (const concepts::Cell &cell) throw (concepts::MissingFeature) |
not operational More... | |
virtual void | operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature) |
Output of the mesh and vector data of the element. More... | |
virtual void | operator() (const Element< Real > &elm)=0 |
Application operator. More... | |
Real | range () const |
Real | scale () const |
void | setVec (const concepts::Vector< Real > *sol) |
Sets the vector of the variable to plot. More... | |
const concepts::Vector< Real > * | solution () const |
Returns pointer to vector to plot. More... | |
void | write (std::ofstream **ofsmsh, std::ofstream **ofs1, std::ofstream **ofs2, std::ofstream **ofs3) |
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... | |
Private Attributes | |
uint | cnt_ |
Counter. More... | |
concepts::Array< Real > | coeff_ |
Elementwise coefficients of the shape functions. More... | |
uint | dim_ |
Spatial dimension of the space. More... | |
std::unique_ptr< concepts::DynArray< uint > > | map_ |
Map for vertices of the elements. More... | |
Real | offset_ |
Offset and range for color. More... | |
std::ofstream * | ofs1_ |
std::ofstream * | ofs2_ |
std::ofstream * | ofs3_ |
std::ofstream * | ofsmsh_ |
Streams to write the data to. More... | |
Real | range_ |
Real | scl_ |
Data scaling factor. More... | |
const concepts::Vector< Real > * | sol_ |
Vector of the variable to plot. More... | |
Detailed Description
Writes the data which describe the elements to the given streams.
Definition at line 45 of file dataMatlab.hh.
Constructor & Destructor Documentation
◆ DataMatlabCell() [1/2]
graphics::DataMatlabCell::DataMatlabCell | ( | std::ofstream * | ofsmsh, |
std::ofstream * | ofs1, | ||
std::ofstream * | ofs2, | ||
std::ofstream * | ofs3, | ||
uint | dim, | ||
Real | scl | ||
) |
Constructor.
- Parameters
-
ofsmsh Stream for the mesh ofs1 Stream for x-Coordinates ofs2 Stream for y-Coordinates ofs3 Stream for z-Coordinates (dim equal 3) or the data of the vector (dim equal 2) dim Spatial dimension of the elements scl Data scaling factor
◆ DataMatlabCell() [2/2]
graphics::DataMatlabCell::DataMatlabCell | ( | std::ofstream * | ofs, |
uint | dim, | ||
Real | scl | ||
) |
Constructor.
- Parameters
-
ofs Stream for the mesh dim Spatial dimension of the elements scl Data scaling factor
Member Function Documentation
◆ coeff()
|
inline |
Returns the coefficients of the elements shape functions.
Definition at line 81 of file dataMatlab.hh.
◆ count()
|
inline |
Number of points written to the files, used for mesh representation.
Definition at line 87 of file dataMatlab.hh.
◆ dim()
|
inline |
Definition at line 88 of file dataMatlab.hh.
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CellEdgeIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellIntegral< F >, hp3D::APrioriRefinement, hp2D::APrioriRefinement, graphics::VertexList, graphics::MatrixCounterCell, graphics::BaseMeshCell, graphics::BaseOutputCell< F >, and graphics::BaseOutputCell< Real >.
◆ map()
|
inline |
Definition at line 90 of file dataMatlab.hh.
◆ offset()
|
inline |
Definition at line 84 of file dataMatlab.hh.
◆ operator()() [1/3]
|
virtual |
not operational
Implements concepts::CellPostprocess< Real >.
◆ operator()() [2/3]
|
virtual |
Output of the mesh and vector data of the element.
◆ operator()() [3/3]
|
pure virtualinherited |
Application operator.
This application operator has to be overloaded to post process a space.
- Parameters
-
elm Current element
Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.
◆ range()
|
inline |
Definition at line 85 of file dataMatlab.hh.
◆ scale()
|
inline |
Definition at line 89 of file dataMatlab.hh.
◆ setVec()
void graphics::DataMatlabCell::setVec | ( | const concepts::Vector< Real > * | sol | ) |
Sets the vector of the variable to plot.
◆ solution()
|
inline |
Returns pointer to vector to plot.
Definition at line 83 of file dataMatlab.hh.
◆ write()
void graphics::DataMatlabCell::write | ( | std::ofstream ** | ofsmsh, |
std::ofstream ** | ofs1, | ||
std::ofstream ** | ofs2, | ||
std::ofstream ** | ofs3 | ||
) |
Returns the streams to write the data to.
Member Data Documentation
◆ cnt_
|
private |
Counter.
Definition at line 103 of file dataMatlab.hh.
◆ coeff_
|
private |
Elementwise coefficients of the shape functions.
Definition at line 99 of file dataMatlab.hh.
◆ dim_
|
private |
Spatial dimension of the space.
Definition at line 93 of file dataMatlab.hh.
◆ map_
|
private |
Map for vertices of the elements.
Definition at line 108 of file dataMatlab.hh.
◆ offset_
|
private |
Offset and range for color.
Definition at line 95 of file dataMatlab.hh.
◆ ofs1_
|
private |
Definition at line 97 of file dataMatlab.hh.
◆ ofs2_
|
private |
Definition at line 97 of file dataMatlab.hh.
◆ ofs3_
|
private |
Definition at line 97 of file dataMatlab.hh.
◆ ofsmsh_
|
private |
Streams to write the data to.
Definition at line 97 of file dataMatlab.hh.
◆ range_
|
private |
Definition at line 95 of file dataMatlab.hh.
◆ scl_
|
private |
Data scaling factor.
Definition at line 105 of file dataMatlab.hh.
◆ sol_
|
private |
Vector of the variable to plot.
Definition at line 101 of file dataMatlab.hh.
The documentation for this class was generated from the following file:
- graphics/dataMatlab.hh