Dune::LeafAmiraMeshWriter< GridType > Class Template Reference
[AmiraMesh]

#include <amirameshwriter.hh>

Inheritance diagram for Dune::LeafAmiraMeshWriter< GridType >:

Dune::AmiraMeshWriter< GridType::LeafGridView >

List of all members.


Detailed Description

template<class GridType>
class Dune::LeafAmiraMeshWriter< GridType >

Provides file writing facilities in the AmiraMesh format for leaf grids.

Public Member Functions

 LeafAmiraMeshWriter ()
 Default constructor.
 LeafAmiraMeshWriter (const GridType &grid)
 Constructor which initializes the AmiraMesh object with a given leaf grid.
void addGrid (const GridType::LeafGridView &gridView, bool splitQuads=false)
 Add a grid view to the file.
void addLevelGrid (const GridType2 &grid, int level, bool splitQuads=false)
 Add level grid.
void addLeafGrid (const GridType2 &grid, bool splitQuads=false)
 Add leaf grid.
void addCellData (const DataContainer &data, const GridType::LeafGridView &gridView)
 Add cell data.
void addVertexData (const DataContainer &data, const GridType::LeafGridView &gridView)
 Add vertex data.
void write (const std::string &filename, bool ascii=false) const
 Write AmiraMesh object to disk.
void addUniformData (const GridType::LeafGridView &gridView, const array< unsigned int, dim > &n, const DataContainer &data)
 Write data on a uniform grid into an AmiraMesh file.

Static Public Member Functions

static void writeGrid (const GridType &grid, const std::string &filename)
 Write a grid in AmiraMesh format.
template<class VectorType>
static void writeBlockVector (const GridType &grid, const VectorType &f, const std::string &filename)
 Writes an ISTL block vector in AmiraMesh format.

Member Function Documentation

template<class GridType>
static void Dune::LeafAmiraMeshWriter< GridType >::writeGrid ( const GridType grid,
const std::string &  filename 
) [inline, static]

Write a grid in AmiraMesh format.

Parameters:
grid The grid objects that is to be written
filename The filename

References Dune::AmiraMeshWriter< GridView >::write().

template<class GridType>
template<class VectorType>
static void Dune::LeafAmiraMeshWriter< GridType >::writeBlockVector ( const GridType grid,
const VectorType &  f,
const std::string &  filename 
) [inline, static]

Writes an ISTL block vector in AmiraMesh format.

Parameters:
grid The grid objects that the vector lives on
f The vector to be written. Has to comply with the ISTL conventions
filename The filename

References Dune::AmiraMeshWriter< GridView >::addVertexData(), Dune::GridDefaultImplementation< dim, dimworld, ct, GridFamily >::leafView(), and Dune::AmiraMeshWriter< GridView >::write().

void Dune::AmiraMeshWriter< GridType::LeafGridView >::addGrid ( const GridType::LeafGridView &  gridView,
bool  splitQuads = false 
) [inherited]

Add a grid view to the file.

Parameters:
grid GridView to be written
splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.

void Dune::AmiraMeshWriter< GridType::LeafGridView >::addLevelGrid ( const GridType2 &  grid,
int  level,
bool  splitQuads = false 
) [inline, inherited]

Add level grid.

Parameters:
grid Grid to be written
indexSet Level of the level grid that is to be written
splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.

void Dune::AmiraMeshWriter< GridType::LeafGridView >::addLeafGrid ( const GridType2 &  grid,
bool  splitQuads = false 
) [inline, inherited]

Add leaf grid.

Parameters:
grid Grid to be written
splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.

Referenced by Dune::LeafAmiraMeshWriter< GridType >::LeafAmiraMeshWriter().

void Dune::AmiraMeshWriter< GridType::LeafGridView >::addCellData ( const DataContainer &  data,
const GridType::LeafGridView &  gridView 
) [inline, inherited]

Add cell data.

Parameters:
An ISTL compliant vector type
Grid view that the data belongs to

void Dune::AmiraMeshWriter< GridType::LeafGridView >::addVertexData ( const DataContainer &  data,
const GridType::LeafGridView &  gridView 
) [inline, inherited]

Add vertex data.

Parameters:
An ISTL compliant vector type
Grid view that the data belongs to

void Dune::AmiraMeshWriter< GridType::LeafGridView >::write ( const std::string &  filename,
bool  ascii = false 
) const [inherited]

Write AmiraMesh object to disk.

Parameters:
filename Name of the file to write to
ascii Set this if you want an ascii AmiraMesh file


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

Generated on Thu Apr 2 10:40:48 2009 for dune-grid by  doxygen 1.5.6