Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::Mesh0D< Shape > Class Template Reference

#include <mesh0d.hpp>

Detailed Description

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

0D mesh class

// create a 0D mesh made of simplex of order 1
Mesh0d<Simplex<0,1> > mesh;
Author
Christophe Prud'homme
See Also
+ Inheritance diagram for Feel::Mesh0D< Shape >:

Public Member Functions

Constructors, destructor
 Mesh0D (WorldComm const &worldComm=Environment::worldComm())
 
 Mesh0D (Mesh0D const &m)
 
 ~Mesh0D ()
 
Operator overloads
Mesh0Doperator= (Mesh0D const &m)
 
Accessors
bool isEmpty () const
 
size_type numElements () const
 
size_type numLocalFaces () const
 
size_type numLocalVertices () const
 
size_type numFaces () const
 
size_type numPoints () const
 
Methods
virtual void clear ()
 
 FEELPP_DEFINE_VISITABLE ()
 
- Public Member Functions inherited from Feel::VisitableBase< R, CatchAll >
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 (WorldComm const &worldComm=Environment::worldComm())
 
 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
 
virtual void setWorldComm (WorldComm const &_worldComm)=0
 
void setWorldCommMeshBase (WorldComm const &_worldComm)
 
mpi::communicator const & comm () const
 
virtual void meshModified ()=0
 
void setSubMeshData (smd_ptrtype smd)
 set sub mesh data
 
bool hasSubMeshData () const
 
smd_type::mesh_ptrtype subMesh () const
 
bool isSubMeshFrom (MeshBase const *m) const
 
bool isSubMeshFrom (boost::shared_ptr< MeshBase > m) const
 
bool isParentMeshOf (boost::shared_ptr< MeshBase > m) const
 
template<typename M >
bool isSameMesh (M const *m) const
 
template<typename M >
bool isSameMesh (boost::shared_ptr< M > m) const
 
template<typename M >
bool isRelatedTo (boost::shared_ptr< M > m) const
 
size_type subMeshToMesh (size_type id) const
 
size_type meshToSubMesh (size_type id) const
 
size_type subMeshToMesh (boost::shared_ptr< MeshBase > m, size_type id) const
 
size_type meshToSubMesh (boost::shared_ptr< MeshBase > m, size_type id) const
 

Protected Member Functions

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

Friends

class boost::serialization::access
 

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 super_elements super_faces
 
typedef elements_type faces_type
 
typedef Points< nRealDim > super_points
 
typedef super_points::points_type points_type
 
typedef super_points::point_type point_type
 
typedef Mesh0D< Shape > self_type
 
typedef boost::shared_ptr
< self_type
self_ptrtype
 
static const uint16_type nDim = Shape::nRealDim
 
static const uint16_type nRealDim = Shape::nRealDim
 

Additional Inherited Members

- Public Types inherited from Feel::VisitableBase< R, CatchAll >
typedef R return_type
 
- Public Types inherited from Feel::MeshBase
typedef boost::tuple
< size_type, size_type
face_processor_type
 
typedef SubMeshData smd_type
 
typedef boost::shared_ptr
< smd_type
smd_ptrtype
 
- Static Protected Member Functions inherited from Feel::VisitableBase< R, CatchAll >
template<class T >
static return_type acceptImpl (T *visited, VisitorBase *guest)
 

Constructor & Destructor Documentation

template<typename Shape >
Feel::Mesh0D< Shape >::Mesh0D ( WorldComm const &  worldComm = Environment::worldComm())
inline

default constructor

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

copy constructor

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

destructor

Member Function Documentation

template<typename Shape >
virtual void Feel::Mesh0D< 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::Mesh0D< Shape >::isEmpty(), and Feel::points().

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

References Feel::isEmpty().

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

Implements Feel::MeshBase.

References Feel::elements().

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

Implements Feel::MeshBase.

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

Implements Feel::MeshBase.

References Feel::points().

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

dummy implementation

See Also
Mesh

Implements Feel::MeshBase.

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

update permutation of entities of co-dimension 1

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

update the entities of co-dimension 2

Implements Feel::MeshBase.


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

Generated on Sun Oct 20 2013 08:25:08 for Feel++ by doxygen 1.8.4