#include <amirameshreader.hh>
Static Public Member Functions | |
static GridType * | read (const std::string &filename) |
The method that does the reading. | |
static void | read (GridType &grid, const std::string &filename) |
Read a grid from file into a given grid object. | |
static GridType * | read (const std::string &filename, const std::string &domainFilename) |
Read a grid with a parametrized boundary. | |
static void | read (GridType &grid, const std::string &filename, const std::string &domainFilename) |
Read a grid with a parametrized boundary into a given grid object. | |
template<class DiscFuncType> | |
static void | readFunction (DiscFuncType &f, const std::string &filename) |
Read a block vector from an AmiraMesh file. |
GridType * Dune::AmiraMeshReader< GridType >::read | ( | const std::string & | filename | ) | [inline, static] |
The method that does the reading.
filename | The filename |
References Dune::GridFactory< GridType >::createGrid(), Dune::Grid< dim, dimworld, ct, GridFamily >::dimension, and Dune::Grid< dim, dimworld, ct, GridFamily >::dimensionworld.
void Dune::AmiraMeshReader< GridType >::read | ( | GridType & | grid, | |
const std::string & | filename | |||
) | [inline, static] |
Read a grid from file into a given grid object.
grid | The grid objects that is to be read | |
filename | The filename |
References Dune::GridFactory< GridType >::createGrid(), Dune::Grid< dim, dimworld, ct, GridFamily >::dimension, Dune::Grid< dim, dimworld, ct, GridFamily >::dimensionworld, and Dune::YaspGrid< dim, deprecated_dimworld >::name().
GridType * Dune::AmiraMeshReader< GridType >::read | ( | const std::string & | filename, | |
const std::string & | domainFilename | |||
) | [inline, static] |
Read a grid with a parametrized boundary.
Several grid managers support parametrized boundary segment which carry function describing the true shape of the boundary segment. This information will the be considered when refining the grid.
In 'Krause, Sander, Automatic Construction of Boundary Parametrizations for Geometric Multigrid Solvers, CVS, 2005', the authors describe a way to automatically build such boundary descriptions. Their file format can be read by this routine.
To use this feature you have to have the psurface library and build Dune with --with-psurface. Ask Oliver sander@mi.fu-berlin.de for help.
grid | The grid objects that is to be read | |
filename | The name of the grid file | |
domainFilename | The name of the psurface boundary file |
References Dune::GridFactory< GridType >::createGrid().
void Dune::AmiraMeshReader< GridType >::readFunction | ( | DiscFuncType & | f, | |
const std::string & | filename | |||
) | [inline, static] |
Read a block vector from an AmiraMesh file.
f | The vector to read into. Implicitly assumed to be an ISTL vector | |
filename | Name of the AmiraMesh file |