BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bempp::ConcreteGrid< DuneGrid > Class Template Reference

Wrapper of a Dune surface grid of type DuneGrid. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/concrete_grid.hpp>

Inheritance diagram for Bempp::ConcreteGrid< DuneGrid >:
Bempp::Grid

Public Types

typedef DuneGrid DuneGridType
 Underlying Dune grid's type.
 

Public Member Functions

 ConcreteGrid (DuneGrid *dune_grid, GridParameters::Topology topology, bool own=false, bool leafIsBarycentric=false)
 Wrap an existing Dune grid object. More...
 
 ConcreteGrid (DuneGrid *dune_grid, GridParameters::Topology topology, const std::vector< int > &domainIndices, bool own=false)
 Wrap an existing Dune grid object. More...
 
 ~ConcreteGrid ()
 Destructor.
 
const DuneGrid & duneGrid () const
 Read-only access to the underlying Dune grid object.
 
DuneGrid & duneGrid ()
 Access to the underlying Dune grid object. Use at your own risk!
 
virtual std::auto_ptr< GridViewlevelView (size_t level) const
 View of the entities on grid level level.
 
virtual std::auto_ptr< GridViewleafView () const
 View of the leaf entities.
 
virtual std::auto_ptr
< GeometryFactory
elementGeometryFactory () const
 Factory able to construct empty geometries of codimension 0 compatible with this grid. More...
 
virtual const IdSetglobalIdSet () const
 Reference to the grid's global id set.
 
virtual GridParameters::Topology topology () const
 Get the grid topology.
 
virtual shared_ptr< GridbarycentricGrid () const
 Return a barycentrically refined grid based on the LeafView.
 
virtual bool hasBarycentricGrid () const
 Return true if a barycentric refinement of this grid has been created.
 
Grid parameters
virtual int dimWorld () const
 Dimension of the space containing the grid.
 
virtual int dim () const
 Dimension of the grid.
 
virtual int maxLevel () const
 Maximum level defined in this grid. More...
 
- Public Member Functions inherited from Bempp::Grid
virtual ~Grid ()
 Destructor.
 
virtual bool isBarycentricRepresentationOf (const Grid &other) const
 Return true if this grid is a barycentric representation of other, i.e. if this grid was created by other.barycentricGrid().
 
void getBoundingBox (arma::Col< double > &lowerBound, arma::Col< double > &upperBound) const
 Get bounding box. More...
 

Private Member Functions

 ConcreteGrid (const ConcreteGrid &)
 
ConcreteGridoperator= (const ConcreteGrid &)
 

Private Attributes

DuneGrid * m_dune_grid
 
bool m_owns_dune_grid
 
GridParameters::Topology m_topology
 
ConcreteIdSet< DuneGrid,
typename
DuneGrid::Traits::GlobalIdSet > 
m_global_id_set
 
ConcreteDomainIndex< DuneGrid > m_domain_index
 
shared_ptr< Gridm_barycentricGrid
 
tbb::mutex m_barycentricSpaceMutex
 

Additional Inherited Members

Detailed Description

template<typename DuneGrid>
class Bempp::ConcreteGrid< DuneGrid >

Wrapper of a Dune surface grid of type DuneGrid.

Constructor & Destructor Documentation

template<typename DuneGrid >
Bempp::ConcreteGrid< DuneGrid >::ConcreteGrid ( DuneGrid *  dune_grid,
GridParameters::Topology  topology,
bool  own = false,
bool  leafIsBarycentric = false 
)
inlineexplicit

Wrap an existing Dune grid object.

Parameters
[in]dune_gridPointer to the Dune grid to wrap.
[in]topologyThe topology of the grid.
[in]domainIndicesVector of domain indices.
[in]ownIf true, *dune_grid is deleted in this object's destructor.
template<typename DuneGrid >
Bempp::ConcreteGrid< DuneGrid >::ConcreteGrid ( DuneGrid *  dune_grid,
GridParameters::Topology  topology,
const std::vector< int > &  domainIndices,
bool  own = false 
)
inlineexplicit

Wrap an existing Dune grid object.

Parameters
[in]dune_gridPointer to the Dune grid to wrap.
[in]topologyThe topology of the grid
[in]ownIf true, *dune_grid is deleted in this object's destructor.

Member Function Documentation

template<typename DuneGrid >
virtual std::auto_ptr<GeometryFactory> Bempp::ConcreteGrid< DuneGrid >::elementGeometryFactory ( ) const
inlinevirtual

Factory able to construct empty geometries of codimension 0 compatible with this grid.

Note
For internal use.
Todo:
Provide implementations for other codimensions.

Implements Bempp::Grid.

template<typename DuneGrid >
virtual int Bempp::ConcreteGrid< DuneGrid >::maxLevel ( ) const
inlinevirtual

Maximum level defined in this grid.

Levels are numbered 0 ... maxLevel() with 0 the coarsest level.

Implements Bempp::Grid.


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