KASKADE 7 development version
|
#include <amira.hh>
Public Types | |
typedef GridType::LeafGridView | GridView |
typedef Dune::BlockVector< Dune::FieldVector< double, 1 > > | DataContainer |
Public Member Functions | |
MaterialAmiraMeshWriter () | |
Default constructor. More... | |
MaterialAmiraMeshWriter (const GridType &grid) | |
Constructor which initializes the AmiraMesh object with a given leaf grid. More... | |
void | addMaterialData (const GridView &gridView, DataContainer &materialData) |
void | addGrid (const GridType::LeafGridView &gridView, bool splitAll=false) |
Add a grid view to the file. More... | |
void | addLevelGrid (const GridType2 &grid, int level, bool splitAll=false) |
Add level grid. More... | |
void | addLeafGrid (const GridType2 &grid, bool splitAll=false) |
Add leaf grid. More... | |
void | addCellData (const DataContainer &data, const GridType::LeafGridView &gridView, bool GridSplitUp=false) |
Add cell data. More... | |
void | addVertexData (const DataContainer &data, const GridType::LeafGridView &gridView, bool GridSplitUp=false) |
Add vertex data. More... | |
void | write (const std::string &filename, bool ascii=false) const |
Write AmiraMesh object to disk. More... | |
void | addUniformData (const GridType::LeafGridView &gridView, const std::array< unsigned int, dim > &n, const DataContainer &data) |
Write data on a uniform grid into an AmiraMesh file. More... | |
Static Public Member Functions | |
static void | writeSurfaceGrid (const GridType::LeafGridView &gridView, const std::string &filename) |
Write a 2d grid in a 3d world. More... | |
typedef Dune::BlockVector<Dune::FieldVector<double, 1> > Kaskade::MaterialAmiraMeshWriter< GridType >::DataContainer |
typedef GridType::LeafGridView Kaskade::MaterialAmiraMeshWriter< GridType >::GridView |
|
inline |
|
inline |
|
inherited |
Add cell data.
data | An ISTL compliant vector type |
gridView | Grid view that the data belongs to |
GridSplitUp | If the grid has been split up into triangles/tetrahedra you have to set GridSplitUp to make the data consistent with the grid |
|
inherited |
Add a grid view to the file.
gridView | GridView to be written |
splitAll | If this is set every element of the grid will be split into triangles/tetrahedra. Amira doesn't support 2d quad grids so if this is not set for a quadrilateral grid in 2d the file won't be readable by standard Amira. See the refinement documentation to see which types can be split up yet. If the grid has been split up and contains other types than triangles/tetrahedra you also have to set GridSplitUp when calling the functions "addVertexData" and "writeBlockVector" to make the data consistent with the grid! |
|
inherited |
Add leaf grid.
grid | Grid to be written |
splitAll | If this is set every element of the grid will be split into triangles/tetrahedra. Amira doesn't support 2d quad grids so if this is not set for a quadrilateral grid in 2d the file won't be readable by standard Amira. See the refinement documentation to see which types can be split up yet. If the grid has been split up and contains other types than triangles/tetrahedra you also have to set GridSplitUp when calling the functions "addVertexData" and "writeBlockVector" to make the data consistent with the grid! |
|
inherited |
Add level grid.
grid | Grid to be written |
level | Level of the level grid that is to be written |
splitAll | If this is set every element of the grid will be split into triangles/tetrahedra. Amira doesn't support 2d quad grids so if this is not set for a quadrilateral grid in 2d the file won't be readable by standard Amira. See the refinement documentation to see which types can be split up yet. If the grid has been split up and contains other types than triangles/tetrahedra you also have to set GridSplitUp when calling the functions "addVertexData" and "writeBlockVector" to make the data consistent with the grid! |
|
inline |
This method writes the data of the material of each cell to the undelying AmiraMesh.
gridView | gridView, i.e. LeafGridView |
materialData | Dune::BlockVector containing data on the material of the elements in the grid. |
|
inherited |
Write data on a uniform grid into an AmiraMesh file.
|
inherited |
Add vertex data.
data | An ISTL compliant vector type |
gridView | Grid view that the data belongs to |
GridSplitUp | If the grid has been split up into triangles/tetrahedra you have to set GridSplitUp to make the data consistent with the grid |
|
inherited |
Write AmiraMesh object to disk.
filename | Name of the file to write to |
ascii | Set this if you want an ascii AmiraMesh file |
|
staticinherited |
Write a 2d grid in a 3d world.
Technically, the format written is 'HyperSurface', not 'AmiraMesh'. AmiraMesh doesn't support 2d grids in a 3d world. Hypersurface is the native Amira format for such grids. Historically, it is the ancestor of the AmiraMesh format, and syntactically it is fairly similar.
Currently, quadrilaterals will get split into triangles.