dune-grid 2.9.0
Public Member Functions | List of all members
Dune::GnuplotWriter< GridView > Class Template Reference

Writer for 1D grids in gnuplot format. More...

#include <dune/grid/io/file/gnuplot.hh>

Inheritance diagram for Dune::GnuplotWriter< GridView >:
Inheritance graph

Public Member Functions

 GnuplotWriter (const GridView &gv)
 
template<class DataContainer >
void addCellData (const DataContainer &data, const std::string &name)
 Add cell data. More...
 
template<class DataContainer >
void addVertexData (const DataContainer &data, const std::string &name)
 Add vertex data. More...
 
void write (const std::string &filename) const
 Write Gnuplot file to disk. More...
 

Detailed Description

template<class GridView>
class Dune::GnuplotWriter< GridView >

Writer for 1D grids in gnuplot format.

Template Parameters
GridTypethe grid
GridViewLevel- or LeafGridView

Constructor & Destructor Documentation

◆ GnuplotWriter()

template<class GridView >
Dune::GnuplotWriter< GridView >::GnuplotWriter ( const GridView gv)
inline

Member Function Documentation

◆ addCellData()

template<class GridView >
template<class DataContainer >
void Dune::GnuplotWriter< GridView >::addCellData ( const DataContainer &  data,
const std::string &  name 
)
inline

Add cell data.

Parameters
dataAn ISTL compliant vector type
nameassociated with the data

◆ addVertexData()

template<class GridView >
template<class DataContainer >
void Dune::GnuplotWriter< GridView >::addVertexData ( const DataContainer &  data,
const std::string &  name 
)
inline

Add vertex data.

Parameters
dataAn ISTL compliant vector type
nameassociated with the data

◆ write()

template<class GridView >
void Dune::GnuplotWriter< GridView >::write ( const std::string &  filename) const

Write Gnuplot file to disk.

Parameters
filenameName of the file to write to

The documentation for this class was generated from the following files: