3#ifndef DUNE_AMIRAMESH_READER_HH
4#define DUNE_AMIRAMESH_READER_HH
15#include <amiramesh/AmiraMesh.h>
27 template<
class Gr
idType>
28 class AmiraMeshReader {
31 enum {dim = GridType::dimension};
34 static void createDomain(GridFactory<GridType>& factory,
const std::shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
37 static void buildGrid(GridFactory<GridType>& factory, AmiraMesh* am);
40 static void build2dGrid(GridFactory<GridType>& factory, AmiraMesh* am);
48 static GridType* read(
const std::string& filename);
55 static void read(GridType& grid,
56 const std::string& filename);
67 static GridType* read(
const std::string& filename,
68 const std::shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
80 static void read(GridType& grid,
81 const std::string& filename,
82 const std::shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
92 template<
class DiscFuncType>
93 static void readFunction(DiscFuncType& f,
const std::string& filename);
100#include "amiramesh/amirameshreader.cc"
Provide a generic factory class for unstructured grids.
Dune namespace.
Definition: alignment.hh:11
A domain boundary implemented by the psurface library.