Feel++ 0.91.0
Public Types | Public Member Functions | Static Public Attributes
Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T > Class Template Reference

class for 1D elements More...

#include <geoelement.hpp>

Inheritance diagram for Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >:
Feel::GeoND< Dim, GEOSHAPE, T, GeoElement0D< Dim, SubFaceOfNone, T > > Feel::GeoEntity< GEOSHAPE > equality_comparable less_than_comparable less_than_comparable GEOSHAPE

List of all members.

Public Types

typedef GeoND< Dim, GEOSHAPE,
T, GeoElement0D< Dim,
SubFaceOfNone, T > > 
super
typedef SubFace super2
typedef GEOSHAPE GeoShape
typedef GeoElement1D< Dim,
GEOSHAPE, SubFace, T > 
self_type
typedef self_type element_type
typedef mpl::if_
< mpl::equal_to< mpl::int_
< nDim >, mpl::int_
< 1 > >, mpl::identity
< GeoElement0D< Dim, SubFaceOf
< self_type >, T >
>, mpl::identity
< GeoElement0D< Dim,
SubFaceOfNone, T >
> >::type::type 
point_type
typedef point_type GeoBElement
typedef super::node_type node_type
typedef
super::vertex_permutation_type 
vertex_permutation_type
typedef
super::edge_permutation_type 
edge_permutation_type
typedef
super::face_permutation_type 
face_permutation_type
typedef super::permutation_type permutation_type
typedef ublas::bounded_array
< point_type
*, numLocalVertices >
::iterator 
face_iterator
typedef ublas::bounded_array
< point_type
*, numLocalVertices >
::const_iterator 
face_const_iterator

Public Member Functions

 BOOST_MPL_ASSERT_MSG ((condition), INVALID_ELEMENT_REAL_DIMENSION,(mpl::int_< Dim >, mpl::int_< nRealDim >, GEOSHAPE))
 GeoElement1D (size_type id=0)
 GeoElement1D (GeoElement1D const &g)
 ~GeoElement1D ()
GeoElement1Doperator= (GeoElement1D const &g)
MeshBase const * mesh () const
size_type id () const
bool isInterProcessDomain () const
bool isOnBoundary () const
uint16_type processId () const
void setMap (uint8_type k_1, uint8_type k_2)
uint8_type map (uint8_type k_1) const
Marker1 const & marker () const
Marker1 & marker ()
Marker2 const & marker2 () const
Marker3 const & marker3 () const
void setFace (uint16_type const i, point_type const &p)
edge_permutation_type permutation (uint16_type) const
point_type const & face (uint16_type i) const
point_type const * facePtr (uint16_type i) const
point_type * facePtr (uint16_type i)
std::pair< face_iterator,
face_iterator > 
faces ()
std::pair< face_const_iterator,
face_const_iterator > 
faces () const

Static Public Attributes

static const uint16_type nDim = super::nDim
static const uint16_type nOrder = super::nOrder
static const uint16_type nRealDim = super::nRealDim
static const bool condition = (Dim==nRealDim)
static const uint16_type numLocalVertices = super::numLocalVertices
static const uint16_type numLocalEdges = super::numEdges
static const uint16_type numLocalFaces = super::numLocalVertices

Detailed Description

template<uint16_type Dim, typename GEOSHAPE, typename SubFace = SubFaceOfNone, typename T = double>
class Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >

class for 1D elements

In the 2D case, we store the size_types of the adjacent 2D elements and their relative position.


Constructor & Destructor Documentation

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::GeoElement1D ( size_type  id = 0) [inline, explicit]

default constructor, make it explicit to avoid implict inversion to size_type

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::GeoElement1D ( GeoElement1D< Dim, GEOSHAPE, SubFace, T > const &  g) [inline]

copy consttructor

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::~GeoElement1D ( ) [inline]

destructor


Member Function Documentation

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
std::pair<face_iterator,face_iterator> Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::faces ( ) [inline]
Returns:
the iterator pair (begin,end) of faces
template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
std::pair<face_const_iterator,face_const_iterator> Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::faces ( ) const [inline]
Returns:
the iterator pair (begin,end) of faces
template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
size_type Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::id ( ) const [inline]
Returns:
true if on the boundary, false otherwise

Reimplemented from Feel::GeoEntity< GEOSHAPE >.

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
bool Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::isInterProcessDomain ( ) const [inline]
Returns:
true if interprocess domain face, false otherwise

References Feel::GeoEntity< GEOSHAPE >::processId().

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
bool Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::isOnBoundary ( ) const [inline]
Returns:
true if on the boundary, false otherwise

Reimplemented from Feel::GeoEntity< GEOSHAPE >.

References Feel::GeoEntity< GEOSHAPE >::isOnBoundary().

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
MeshBase const* Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::mesh ( ) const [inline]
template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
GeoElement1D& Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::operator= ( GeoElement1D< Dim, GEOSHAPE, SubFace, T > const &  g) [inline]

copy operator

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
edge_permutation_type Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::permutation ( uint16_type  ) const [inline]
template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
uint16_type Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::processId ( ) const [inline]
Returns:
process id

Reimplemented from Feel::GeoEntity< GEOSHAPE >.

References Feel::GeoEntity< GEOSHAPE >::processId().

template<uint16_type Dim, typename GEOSHAPE , typename SubFace = SubFaceOfNone, typename T = double>
void Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >::setFace ( uint16_type const  i,
point_type const &  p 
) [inline]

Inserts a point as face of the edge geometric element