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

#include <amirameshreader.hh>

List of all members.


Detailed Description

template<class GridType>
class Dune::AmiraMeshReader< GridType >

Provides file reading facilities in the AmiraMesh format.

Static Public Member Functions

static GridTyperead (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 GridTyperead (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.

Member Function Documentation

template<class GridType>
GridType * Dune::AmiraMeshReader< GridType >::read ( const std::string &  filename  )  [inline, static]

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

Read a grid from file into a given grid object.

Parameters:
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().

template<class GridType>
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.

Parameters:
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().

template<class GridType>
template<class DiscFuncType>
void Dune::AmiraMeshReader< GridType >::readFunction ( DiscFuncType &  f,
const std::string &  filename 
) [inline, static]

Read a block vector from an AmiraMesh file.

Parameters:
f The vector to read into. Implicitly assumed to be an ISTL vector
filename Name of the AmiraMesh file


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

Generated on Sun Nov 15 22:29:00 2009 for dune-grid by  doxygen 1.5.6