#include <amirameshwriter.hh>
Public Member Functions | |
LevelAmiraMeshWriter () | |
Default constructor. | |
LevelAmiraMeshWriter (const GridType &grid, int level) | |
Constructor which initializes the AmiraMesh object with a given level grid. | |
void | addGrid (const GridType::LevelGridView &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::LevelGridView &gridView) |
Add cell data. | |
void | addVertexData (const DataContainer &data, const GridType::LevelGridView &gridView) |
Add vertex data. | |
void | write (const std::string &filename, bool ascii=false) const |
Write AmiraMesh object to disk. | |
void | addUniformData (const GridType::LevelGridView &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, int level) |
Write a grid in AmiraMesh format. | |
template<class VectorType> | |
static void | writeBlockVector (const GridType &grid, const VectorType &f, const std::string &filename, int level) |
Writes an ISTL block vector in AmiraMesh format. |
static void Dune::LevelAmiraMeshWriter< GridType >::writeGrid | ( | const GridType & | grid, | |
const std::string & | filename, | |||
int | level | |||
) | [inline, static] |
Write a grid in AmiraMesh format.
grid | The grid objects that is to be written | |
filename | The filename | |
level | The level to be written |
References Dune::AmiraMeshWriter< GridView >::write().
static void Dune::LevelAmiraMeshWriter< GridType >::writeBlockVector | ( | const GridType & | grid, | |
const VectorType & | f, | |||
const std::string & | filename, | |||
int | level | |||
) | [inline, static] |
Writes an ISTL block vector in AmiraMesh format.
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 | |
level | The level of the grid that the vector lives on |
References Dune::AmiraMeshWriter< GridView >::addVertexData(), Dune::GridDefaultImplementation< dim, dimworld, ct, GridFamily >::levelView(), and Dune::AmiraMeshWriter< GridView >::write().
void Dune::AmiraMeshWriter< GridType::LevelGridView >::addGrid | ( | const GridType::LevelGridView & | gridView, | |
bool | splitQuads = false | |||
) | [inherited] |
Add a grid view to the file.
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. |
Referenced by Dune::LevelAmiraMeshWriter< GridType >::LevelAmiraMeshWriter().
void Dune::AmiraMeshWriter< GridType::LevelGridView >::addLevelGrid | ( | const GridType2 & | grid, | |
int | level, | |||
bool | splitQuads = false | |||
) | [inline, inherited] |
Add level grid.
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::LevelGridView >::addLeafGrid | ( | const GridType2 & | grid, | |
bool | splitQuads = false | |||
) | [inline, inherited] |
Add leaf grid.
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. |
void Dune::AmiraMeshWriter< GridType::LevelGridView >::addCellData | ( | const DataContainer & | data, | |
const GridType::LevelGridView & | gridView | |||
) | [inline, inherited] |
Add cell data.
An | ISTL compliant vector type | |
Grid | view that the data belongs to |
void Dune::AmiraMeshWriter< GridType::LevelGridView >::addVertexData | ( | const DataContainer & | data, | |
const GridType::LevelGridView & | gridView | |||
) | [inline, inherited] |
Add vertex data.
An | ISTL compliant vector type | |
Grid | view that the data belongs to |
void Dune::AmiraMeshWriter< GridType::LevelGridView >::write | ( | const std::string & | filename, | |
bool | ascii = false | |||
) | const [inherited] |
Write AmiraMesh object to disk.
filename | Name of the file to write to | |
ascii | Set this if you want an ascii AmiraMesh file |