BEM++
2.0
|
Wrapper of a Dune grid view of type DuneGridView
.
More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/concrete_grid_view.hpp>
Public Member Functions | |
ConcreteGridView (const DuneGridView &dune_gv, const DomainIndex &domain_index) | |
Constructor. | |
const DuneGridView & | duneGridView () const |
Read-only access to the underlying Dune grid view object. | |
DuneGridView & | duneGridView () |
Access to the underlying Dune grid view object. Use at your own risk! | |
virtual int | dimWorld () const |
Dimension of the space containing the grid. | |
virtual int | dim () const |
Dimension of the grid. | |
virtual const IndexSet & | indexSet () const |
The index set. | |
virtual const Mapper & | elementMapper () const |
The element mapper. | |
virtual size_t | entityCount (int codim) const |
Number of entities with codimension codim . | |
virtual size_t | entityCount (const GeometryType &type) const |
Number of entities with geometry type type . | |
virtual bool | containsEntity (const Entity< 0 > &e) const |
True if the entity e of codimension 0 is contained in this grid view. More... | |
virtual bool | containsEntity (const Entity< 1 > &e) const |
True if the entity e of codimension 1 is contained in this grid view. More... | |
virtual bool | containsEntity (const Entity< 2 > &e) const |
True if the entity e of codimension 2 is contained in this grid view. More... | |
virtual bool | containsEntity (const Entity< 3 > &e) const |
True if the entity e of codimension 3 is contained in this grid view. More... | |
virtual const ReverseElementMapper & | reverseElementMapper () const |
Mapping from codim-0 entity index to entity pointer. More... | |
virtual std::auto_ptr< VtkWriter > | vtkWriter (Dune::VTK::DataMode dm=Dune::VTK::conforming) const |
Create a VtkWriter for this grid view. More... | |
![]() | |
virtual | ~GridView () |
template<int codim> | |
std::auto_ptr< EntityIterator < codim > > | entityIterator () const |
Iterator over entities of codimension codim contained in this view. | |
void | getRawElementData (arma::Mat< float > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData) const |
Get raw data describing the geometry of all codim-0 entities contained in this grid view. More... | |
void | getRawElementData (arma::Mat< double > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData) const |
void | getRawElementData (arma::Mat< double > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData, std::vector< int > &domainIndices) const |
Get raw data describing the geometry of all codim-0 entities contained in this grid view. More... | |
void | getRawElementData (arma::Mat< float > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData, std::vector< int > &domainIndices) const |
template<> | |
std::auto_ptr< EntityIterator< 0 > > | entityIterator () const |
template<> | |
std::auto_ptr< EntityIterator< 1 > > | entityIterator () const |
template<> | |
std::auto_ptr< EntityIterator< 2 > > | entityIterator () const |
template<> | |
std::auto_ptr< EntityIterator< 3 > > | entityIterator () const |
Private Member Functions | |
virtual std::auto_ptr < EntityIterator< 0 > > | entityCodim0Iterator () const |
Iterator over entities of codimension 0 contained in this view. | |
virtual std::auto_ptr < EntityIterator< 1 > > | entityCodim1Iterator () const |
Iterator over entities of codimension 1 contained in this view. | |
virtual std::auto_ptr < EntityIterator< 2 > > | entityCodim2Iterator () const |
Iterator over entities of codimension 2 contained in this view. | |
virtual std::auto_ptr < EntityIterator< 3 > > | entityCodim3Iterator () const |
Iterator over entities of codimension 3 contained in this view. | |
Private Attributes | |
DuneGridView | m_dune_gv |
ConcreteIndexSet< DuneGridView > | m_index_set |
ConcreteElementMapper < DuneGridView > | m_element_mapper |
const DomainIndex & | m_domain_index |
ReverseElementMapper | m_reverse_element_mapper |
bool | m_reverse_element_mapper_is_up_to_date |
Wrapper of a Dune grid view of type DuneGridView
.
|
inlinevirtual |
True if the entity e
of codimension 0 is contained in this grid view.
e
is not an element of the grid, then the result of containsEntity() is undefined. Implements Bempp::GridView.
|
inlinevirtual |
True if the entity e
of codimension 1 is contained in this grid view.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements Bempp::GridView.
|
inlinevirtual |
True if the entity e
of codimension 2 is contained in this grid view.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements Bempp::GridView.
|
inlinevirtual |
True if the entity e
of codimension 3 is contained in this grid view.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements Bempp::GridView.
|
inlinevirtual |
Mapping from codim-0 entity index to entity pointer.
Note that this object is not updated when the grid is adapted. In that case you need to create a new grid view and obtain a new reference to the reverse element mapper.
Implements Bempp::GridView.
|
inlinevirtual |
Create a VtkWriter for this grid view.
dm | Data mode (conforming or nonconforming; see the documentation of Dune::VTK::DataMode for details). |
Implements Bempp::GridView.