BEM++
2.0
|
Wrapper of a Dune surface grid of type DuneGrid
.
More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/concrete_grid.hpp>
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< GridView > | levelView (size_t level) const |
View of the entities on grid level level . | |
virtual std::auto_ptr< GridView > | leafView () 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 IdSet & | globalIdSet () const |
Reference to the grid's global id set. | |
virtual GridParameters::Topology | topology () const |
Get the grid topology. | |
virtual shared_ptr< Grid > | barycentricGrid () 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... | |
![]() | |
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 &) | |
ConcreteGrid & | operator= (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< Grid > | m_barycentricGrid |
tbb::mutex | m_barycentricSpaceMutex |
Additional Inherited Members | |
![]() | |
std::vector< bool > | areInside (const Grid &grid, const arma::Mat< double > &points) |
Check whether points are inside or outside a closed grid. More... | |
double | maxDistance (const Grid &grid1, const Grid &grid2) |
Return an upper bound on the maximum distance between elements belonging to two grids. More... | |
Wrapper of a Dune surface grid of type DuneGrid
.
|
inlineexplicit |
Wrap an existing Dune grid object.
[in] | dune_grid | Pointer to the Dune grid to wrap. |
[in] | topology | The topology of the grid. |
[in] | domainIndices | Vector of domain indices. |
[in] | own | If true, *dune_grid is deleted in this object's destructor. |
|
inlineexplicit |
Wrap an existing Dune grid object.
[in] | dune_grid | Pointer to the Dune grid to wrap. |
[in] | topology | The topology of the grid |
[in] | own | If true, *dune_grid is deleted in this object's destructor. |
|
inlinevirtual |
Factory able to construct empty geometries of codimension 0 compatible with this grid.
Implements Bempp::Grid.
|
inlinevirtual |
Maximum level defined in this grid.
Levels are numbered 0 ... maxLevel() with 0 the coarsest level.
Implements Bempp::Grid.