dune-grid  2.1.1
Static Public Member Functions
Dune::AmiraMeshReader< GridType > Class Template Reference

Provides file reading facilities in the AmiraMesh format. More...

#include <dune/grid/io/file/amirameshreader.hh>

List of all members.

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.

Detailed Description

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

Provides file reading facilities in the AmiraMesh format.


Member Function Documentation

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

The method that does the reading.

Parameters:
filenameThe filename

References Dune::GridFactory< GridType >::createGrid().

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

Read a grid from file into a given grid object.

Parameters:
gridThe grid objects that is to be read
filenameThe filename

References Dune::GridFactory< GridType >::createGrid().

template<class GridType >
GridType * Dune::AmiraMeshReader< GridType >::read ( const std::string &  filename,
const std::string &  domainFilename 
) [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:
filenameThe name of the grid file
domainFilenameThe name of the psurface boundary file

References Dune::GridFactory< GridType >::createGrid().

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

Read a grid with a parametrized boundary into a given grid object.

Parameters:
gridThe grid objects that is to be read
filenameThe name of the grid file
domainFilenameThe 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 
) [static]

Read a block vector from an AmiraMesh file.

The data may either be given on the nodes (P1-Functions) or the elements (P0-Functions).

Parameters:
fThe vector to read into. Implicitly assumed to be an ISTL vector
filenameName of the AmiraMesh file

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