Graphics in OpenDX - data. More...

#include <dataDX.hh>

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

Public Member Functions

const concepts::Array< Real > & coeff () const
 
 DataDXData (std::ostream &os, const concepts::ElementFormula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
 Constructor. More...
 
 DataDXData (std::ostream &os, const concepts::Formula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
 Constructor. More...
 
 DataDXData (std::ostream &os, const concepts::Vector< Real > &solution, const uint count, const std::string &name, VertexList *vtxList=0)
 Constructor. More...
 
const concepts::ElementFormula< Real > * elementFormula () const
 
const concepts::Formula< Real > * formula () const
 
virtual void operator() (const concepts::Cell &)
 Application operator. More...
 
virtual void operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature)
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 
void write (const float x) const
 Writes a float in binary format to the output stream. More...
 
virtual ~DataDXData ()
 

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...
 
const concepts::ElementFormula< Real > * efrm_
 Formula to plot (given elementwise) More...
 
std::unique_ptr< const concepts::Formula< Real > > frm_
 Formula to plot. More...
 
std::string name_
 Name of this data component. More...
 
std::ostream & os_
 Output stream. More...
 
uint pc_
 Data correspond to positions (0) or connections (1) More...
 
concepts::Array< Real > shpfnc_
 Values of the shape functions. More...
 
const concepts::Vector< Real > * solution_
 Vector of the variable to plot. More...
 
concepts::Array< Real > vertexSol_
 Solution in the vertices in the list of vertices. More...
 
concepts::Array< Real > vtxData_
 Data vector of data belonging to the vertex list. More...
 
VertexListvtxList_
 List of vertices. More...
 

Detailed Description

Graphics in OpenDX - data.

This class writes the solution to the file.

You should not use this class directly, Instead, use the executor class DataDX or (even simpler) its trampoline function drawDataDX (which hides the template parameter of DataDX).

See also
DataDX the executor class
drawDataDX the trampoline function of DataDX
Author
Philipp Frauenfelder, 2000

Definition at line 367 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDXData() [1/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::Vector< Real > &  solution,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor.

Prepares to plot the given solution.

Parameters
osOutput stream where the OpenDX data should be written to
solutionThe vector containing the variable which should be plotted
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

◆ DataDXData() [2/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::Formula< Real > &  frm,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor.

Prepares to plot the given formula.

Parameters
osOutput stream where the DX data should be written to
frmFormula to be plotted
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

◆ DataDXData() [3/3]

graphics::DataDXData::DataDXData ( std::ostream &  os,
const concepts::ElementFormula< Real > &  frm,
const uint  count,
const std::string &  name,
VertexList vtxList = 0 
)

Constructor.

Prepares to plot the given formula.

Parameters
osOutput stream where the DX data should be written to
frmFormula to be plotted (given elementwise)
countNumber of points
nameName of the solution
vtxListList of the vertices and their coordinates

◆ ~DataDXData()

virtual graphics::DataDXData::~DataDXData ( )
virtual

Member Function Documentation

◆ coeff()

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

Definition at line 410 of file dataDX.hh.

◆ elementFormula()

const concepts::ElementFormula<Real>* graphics::DataDXData::elementFormula ( ) const
inline

Definition at line 411 of file dataDX.hh.

◆ formula()

const concepts::Formula<Real>* graphics::DataDXData::formula ( ) const
inline

Definition at line 409 of file dataDX.hh.

◆ info()

◆ operator()() [1/3]

virtual void graphics::DataDXData::operator() ( const concepts::Cell cell)
inlinevirtual

Application operator.

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

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

Definition at line 407 of file dataDX.hh.

◆ operator()() [2/3]

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

◆ 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 >.

◆ write()

void graphics::DataDXData::write ( const float  x) const

Writes a float in binary format to the output stream.

Member Data Documentation

◆ coeff_

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

Elementwise coefficients of the shape functions.

Definition at line 430 of file dataDX.hh.

◆ efrm_

const concepts::ElementFormula<Real>* graphics::DataDXData::efrm_
private

Formula to plot (given elementwise)

Definition at line 427 of file dataDX.hh.

◆ frm_

std::unique_ptr<const concepts::Formula<Real> > graphics::DataDXData::frm_
private

Formula to plot.

Definition at line 424 of file dataDX.hh.

◆ name_

std::string graphics::DataDXData::name_
private

Name of this data component.

Definition at line 439 of file dataDX.hh.

◆ os_

std::ostream& graphics::DataDXData::os_
private

Output stream.

Definition at line 418 of file dataDX.hh.

◆ pc_

uint graphics::DataDXData::pc_
private

Data correspond to positions (0) or connections (1)

Definition at line 442 of file dataDX.hh.

◆ shpfnc_

concepts::Array<Real> graphics::DataDXData::shpfnc_
private

Values of the shape functions.

Definition at line 433 of file dataDX.hh.

◆ solution_

const concepts::Vector<Real>* graphics::DataDXData::solution_
private

Vector of the variable to plot.

Definition at line 421 of file dataDX.hh.

◆ vertexSol_

concepts::Array<Real> graphics::DataDXData::vertexSol_
private

Solution in the vertices in the list of vertices.

Definition at line 436 of file dataDX.hh.

◆ vtxData_

concepts::Array<Real> graphics::DataDXData::vtxData_
private

Data vector of data belonging to the vertex list.

Definition at line 448 of file dataDX.hh.

◆ vtxList_

VertexList* graphics::DataDXData::vtxList_
private

List of vertices.

Definition at line 445 of file dataDX.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