graphics::DataMatlabCell Class Referenceabstract

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

#include <dataMatlab.hh>

Inheritance diagram for graphics::DataMatlabCell:
concepts::CellPostprocess< Real > concepts::OutputOperator

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.

Author
Gregor Schmidlin, 2002

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
ofsmshStream for the mesh
ofs1Stream for x-Coordinates
ofs2Stream for y-Coordinates
ofs3Stream for z-Coordinates (dim equal 3) or the data of the vector (dim equal 2)
dimSpatial dimension of the elements
sclData scaling factor

◆ DataMatlabCell() [2/2]

graphics::DataMatlabCell::DataMatlabCell ( std::ofstream *  ofs,
uint  dim,
Real  scl 
)

Constructor.

Parameters
ofsStream for the mesh
dimSpatial dimension of the elements
sclData scaling factor

Member Function Documentation

◆ coeff()

const concepts::Array<Real>& graphics::DataMatlabCell::coeff ( ) const
inline

Returns the coefficients of the elements shape functions.

Definition at line 81 of file dataMatlab.hh.

◆ count()

uint& graphics::DataMatlabCell::count ( )
inline

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

Definition at line 87 of file dataMatlab.hh.

◆ dim()

uint graphics::DataMatlabCell::dim ( ) const
inline

Definition at line 88 of file dataMatlab.hh.

◆ info()

◆ map()

concepts::DynArray<uint>& graphics::DataMatlabCell::map ( )
inline

Definition at line 90 of file dataMatlab.hh.

◆ offset()

Real graphics::DataMatlabCell::offset ( ) const
inline

Definition at line 84 of file dataMatlab.hh.

◆ operator()() [1/3]

virtual void graphics::DataMatlabCell::operator() ( const concepts::Cell cell)
throw (concepts::MissingFeature
)
virtual

not operational

Implements concepts::CellPostprocess< Real >.

◆ operator()() [2/3]

virtual void graphics::DataMatlabCell::operator() ( const concepts::Element< Real > &  elm)
throw (concepts::MissingFeature
)
virtual

Output of the mesh and vector data of the element.

◆ operator()() [3/3]

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< F > &  elm)
pure virtualinherited

Application operator.

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

Parameters
elmCurrent element

Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.

◆ range()

Real graphics::DataMatlabCell::range ( ) const
inline

Definition at line 85 of file dataMatlab.hh.

◆ scale()

Real graphics::DataMatlabCell::scale ( ) const
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()

const concepts::Vector<Real>* graphics::DataMatlabCell::solution ( ) const
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_

uint graphics::DataMatlabCell::cnt_
private

Counter.

Definition at line 103 of file dataMatlab.hh.

◆ coeff_

concepts::Array<Real> graphics::DataMatlabCell::coeff_
private

Elementwise coefficients of the shape functions.

Definition at line 99 of file dataMatlab.hh.

◆ dim_

uint graphics::DataMatlabCell::dim_
private

Spatial dimension of the space.

Definition at line 93 of file dataMatlab.hh.

◆ map_

std::unique_ptr<concepts::DynArray<uint> > graphics::DataMatlabCell::map_
private

Map for vertices of the elements.

Definition at line 108 of file dataMatlab.hh.

◆ offset_

Real graphics::DataMatlabCell::offset_
private

Offset and range for color.

Definition at line 95 of file dataMatlab.hh.

◆ ofs1_

std::ofstream * graphics::DataMatlabCell::ofs1_
private

Definition at line 97 of file dataMatlab.hh.

◆ ofs2_

std::ofstream * graphics::DataMatlabCell::ofs2_
private

Definition at line 97 of file dataMatlab.hh.

◆ ofs3_

std::ofstream * graphics::DataMatlabCell::ofs3_
private

Definition at line 97 of file dataMatlab.hh.

◆ ofsmsh_

std::ofstream* graphics::DataMatlabCell::ofsmsh_
private

Streams to write the data to.

Definition at line 97 of file dataMatlab.hh.

◆ range_

Real graphics::DataMatlabCell::range_
private

Definition at line 95 of file dataMatlab.hh.

◆ scl_

Real graphics::DataMatlabCell::scl_
private

Data scaling factor.

Definition at line 105 of file dataMatlab.hh.

◆ sol_

const concepts::Vector<Real>* graphics::DataMatlabCell::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:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich