Feel++  0.91.4
Protected Member Functions | List of all members
Feel::Mesh2D< Shape > Class Template Reference

2D mesh class More...

#include <mesh2d.hpp>

Inheritance diagram for Feel::Mesh2D< Shape >:
Feel::VisitableBase<> Feel::MeshBase

Public Member Functions

Constructors, destructor
 Mesh2D ()
 
 Mesh2D (Mesh2D const &m)
 
 ~Mesh2D ()
 
Operator overloads
Mesh2Doperator= (Mesh2D const &m)
 
Accessors
bool isEmpty () const
 
size_type numElements () const
 
size_type numLocalEdges () const
 
size_type numLocalFaces () const
 
size_type numLocalVertices () const
 
size_type numFaces () const
 
size_type numEdges () const
 
size_type numPoints () const
 
Methods
virtual void setWorldComm (WorldComm const &_worldComm)
 
virtual void clear ()
 
 FEELPP_DEFINE_VISITABLE ()
 
- Public Member Functions inherited from Feel::VisitableBase<>
virtual return_type accept (VisitorBase &)=0
 accept visitor: use S_DEFINE_VISITABLE() to redefine it
 
virtual return_type accept (VisitorBase *)=0
 accept visitor: use S_DEFINE_VISITABLE() to redefine it
 
- Public Member Functions inherited from Feel::MeshBase
 MeshBase ()
 
 MeshBase (MeshBase const &)
 
virtual ~MeshBase ()
 
MeshBaseoperator= (MeshBase const &m)
 
bool isUpdatedForUse () const
 
size_type numVertices () const
 
uint16_type numberOfPartitions () const
 
bool isPartitioned () const
 
Context const & components () const
 
Contextcomponents ()
 
virtual double measure () const =0
 
bool isParametric () const
 
void setNumberOfPartitions (uint16_type n)
 
void setNumVertices (size_type n)
 
void setComponents (size_type components=MESH_ALL_COMPONENTS)
 
void setParametric (bool x)
 
virtual void updateForUse ()=0
 
virtual void updateForUse (size_type components)
 
virtual void partition (const uint16_type n_parts)=0
 
WorldComm const & worldComm () const
 
void setWorldCommMeshBase (WorldComm const &_worldComm)
 
mpi::communicator const & comm () const
 

Protected Member Functions

void renumber ()
 
void updateEntitiesCoDimensionOnePermutation ()
 
void updateEntitiesCoDimensionTwo ()
 
- Protected Member Functions inherited from Feel::MeshBase
void setUpdatedForUse (bool u)
 
virtual void updateEntitiesCoDimensionOne ()=0
 
virtual void check () const =0
 
virtual void checkAndFixPermutation ()=0
 

Typedefs

typedef VisitableBase::return_type return_type
 
typedef VisitableBase super_visitable
 
typedef MeshBase super
 
typedef Elements< Shape > super_elements
 
typedef
super_elements::elements_type 
elements_type
 
typedef
super_elements::element_type 
element_type
 
typedef
super_elements::element_iterator 
element_iterator
 
typedef
super_elements::element_const_iterator 
element_const_iterator
 
typedef
super_elements::update_element_neighbor_type 
update_element_neighbor_type
 
typedef Points< Shape::nRealDim > super_points
 
typedef super_points::points_type points_type
 
typedef super_points::point_type point_type
 
typedef Faces< typename
Shape::template shape
< 1, Shape::nOrder,
Shape::nRealDim >::type,
typename
super_elements::element_type > 
super_faces
 
typedef super_faces::faces_type faces_type
 
typedef super_faces::face_type face_type
 
typedef face_type edge_type
 
typedef Mesh2D< Shape > self_type
 
typedef boost::shared_ptr
< self_type
self_ptrtype
 
typedef
element_type::edge_permutation_type 
edge_permutation_type
 
typedef
element_type::face_permutation_type 
face_permutation_type
 
typedef super::face_processor_type face_processor_type
 
static const uint16_type nDim = Shape::nRealDim
 

Additional Inherited Members

- Public Types inherited from Feel::VisitableBase<>
typedef void return_type
 
- Public Types inherited from Feel::MeshBase
typedef boost::tuple
< size_type, size_type
face_processor_type
 
- Static Protected Member Functions inherited from Feel::VisitableBase<>
static return_type acceptImpl (T *visited, VisitorBase *guest)
 

Detailed Description

template<typename Shape>
class Feel::Mesh2D< Shape >

2D mesh class

// create a 2D mesh made of simplex of order 1
Mesh2D<Simplex<2,1> > mesh;
// create a 2D mesh made of simplex of order 2
Mesh2D<Simplex<2,2> > mesh;
Author
Christophe Prud'homme
See Also

Constructor & Destructor Documentation

template<typename Shape >
Feel::Mesh2D< Shape >::Mesh2D ( )
inline

default constructor

template<typename Shape >
Feel::Mesh2D< Shape >::Mesh2D ( Mesh2D< Shape > const &  m)
inline

copy constructor

template<typename Shape >
Feel::Mesh2D< Shape >::~Mesh2D ( )
inline

destructor

Member Function Documentation

template<typename Shape >
virtual void Feel::Mesh2D< Shape >::clear ( )
inlinevirtual

clear out all data from the mesh, isEmpty() should return true after a clear()

Reimplemented from Feel::MeshBase.

References Feel::elements(), Feel::faces(), Feel::Mesh2D< Shape >::isEmpty(), and Feel::points().

template<typename Shape >
bool Feel::Mesh2D< Shape >::isEmpty ( ) const
inline
Returns
true if all containers are empty, false otherwise

Referenced by Feel::Mesh2D< Shape >::clear().

template<typename Shape >
size_type Feel::Mesh2D< Shape >::numEdges ( ) const
inline
Returns
the number of edges

References Feel::faces().

template<typename Shape >
size_type Feel::Mesh2D< Shape >::numElements ( ) const
inlinevirtual
Returns
the number of elements

Implements Feel::MeshBase.

References Feel::elements().

template<typename Shape >
size_type Feel::Mesh2D< Shape >::numFaces ( ) const
inlinevirtual
Returns
the number of faces

Implements Feel::MeshBase.

References Feel::faces().

template<typename Shape >
size_type Feel::Mesh2D< Shape >::numLocalEdges ( ) const
inline
Returns
the number of faces in an element
See Also
numLocalFaces()
template<typename Shape >
size_type Feel::Mesh2D< Shape >::numLocalFaces ( ) const
inline
Returns
the number of faces in an element
See Also
numLocalEdges()
template<typename Shape >
size_type Feel::Mesh2D< Shape >::numLocalVertices ( ) const
inline
Returns
the number of vertices in an element
template<typename Shape >
size_type Feel::Mesh2D< Shape >::numPoints ( ) const
inlinevirtual
Returns
the number of points

Implements Feel::MeshBase.

References Feel::points().

template<typename Shape >
void Feel::Mesh2D< Shape >::renumber ( )
inlineprotectedvirtual

dummy implementation

See Also
Mesh

Implements Feel::MeshBase.

template<typename Shape >
void Feel::Mesh2D< Shape >::updateEntitiesCoDimensionOnePermutation ( )
inlineprotected

update permutation of entities of co-dimension 1

References Feel::elements().

template<typename Shape >
void Feel::Mesh2D< Shape >::updateEntitiesCoDimensionTwo ( )
inlineprotectedvirtual

update the entities of co-dimension 2

Implements Feel::MeshBase.