Feel++
0.91.4
|
base class for all geometric entities More...
#include <geoentity.hpp>
Classes | |
struct | reference_convex |
Public Member Functions | |
Constructors, destructor | |
GeoEntity () | |
GeoEntity (size_type i, size_type geometry=Geometry, size_type shape=Shape, size_type context=MESH_ENTITY_INTERNAL) | |
GeoEntity (GeoEntity const &__me) | |
GeoEntity & | operator= (GeoEntity const &__me) |
virtual | ~GeoEntity () |
Operator overloads | |
bool | operator== (GeoEntity const &e) const |
bool | operator< (GeoEntity const &e) const |
bool | operator< (size_type __i) const |
Accessors | |
size_type | id () const |
uint16_type | refDim () const |
uint16_type | nPoints () const |
uint16_type | nVertices () const |
uint16_type | nEdges () const |
uint16_type | nFaces () const |
uint16_type | nGeometricFaces () const |
uint16_type | nNormals () const |
bool | hasShape (size_type __shape) const |
bool | isAVolume () const |
bool | isASurface () const |
bool | isALine () const |
bool | isAPoint () const |
bool | isAPointShape () const |
bool | isALineShape () const |
bool | isATriangleShape () const |
bool | isAQuadrangleShape () const |
bool | isATetrahedraShape () const |
bool | isAHexahedraShape () const |
bool | isLinear () const |
bool | isBilinear () const |
bool | isQuadratic () const |
bool | isInternal () const |
bool | isOnBoundary () const |
bool | isGhostCell () const |
uint16_type | processId () const |
void | setProcessId (uint16_type pid) |
void | setProcessIdInPartition (uint16_type pid) |
uint16_type | partitionId () const |
uint16_type | numberOfPartitions () const |
size_type | numberOfNeighborPartitions () const |
bool | isLinkedToOtherPartitions () const |
std::vector< int > const & | neighborPartitionIds () const |
void | setIdInPartition (uint16_type pid, size_type id) |
size_type | idInPartition (uint16_type pid) const |
bool | active () const |
virtual double | measure () const =0 |
Mutators | |
void | setId (size_type id) |
void | setOnBoundary (bool b) |
void | setNumberOfPartitions (uint16_type np) |
void | setNumberOfNeighborPartitions (uint16_type nep) |
void | setNeighborPartitionIds (std::vector< int > const &npids) |
Typedefs | |
typedef Entity | super |
typedef GeoEntity< Entity > | GeoShape |
typedef GeoEntity< Entity > | self_type |
typedef super::topological_face_type | face_type |
typedef face_type | GeoBShape |
typedef Entity::edge_permutation_type | edge_permutation_type |
typedef Entity::face_permutation_type | face_permutation_type |
typedef Entity | convex_type |
static const size_type | Shape = super::Shape |
static const size_type | Geometry = super::Geometry |
static const uint16_type | nDim = super::nDim |
static const uint16_type | nOrder = super::nOrder |
static const uint16_type | nRealDim = super::nRealDim |
static const uint16_type | numVertices = super::numVertices |
static const uint16_type | numFaces = super::numFaces |
static const uint16_type | numGeometricFaces = super::numGeometricFaces |
static const uint16_type | numTopologicalFaces = super::numTopologicalFaces |
static const uint16_type | numEdges = super::numEdges |
static const uint16_type | numNormals = super::numNormals |
static const uint16_type | numPoints = super::numPoints |
static const uint16_type | nbPtsPerVertex = super::nbPtsPerVertex |
static const uint16_type | nbPtsPerEdge = super::nbPtsPerEdge |
static const uint16_type | nbPtsPerFace = super::nbPtsPerFace |
static const uint16_type | nbPtsPerVolume = super::nbPtsPerVolume |
static const bool | is_simplex = super::is_simplex |
static const bool | is_hypercube = super::is_hypercube |
Methods | |
self_type & | addElement (size_type e) |
size_type | numberOfElements () const |
std::set< size_type > const & | elements () const |
static uint16_type | eToP (uint16_type const __localEdge, uint16_type const __point) |
static uint16_type | fToP (uint16_type const __localFace, uint16_type const __point) |
static uint16_type | fToE (uint16_type const __localFace, uint16_type const __edge) |
base class for all geometric entities
bool Feel::GeoEntity< Entity >::active | ( | ) | const [inline] |
true
if active, false
otherwiseself_type& Feel::GeoEntity< Entity >::addElement | ( | size_type | e | ) | [inline] |
add a new element to which the point belongs
std::set<size_type> const& Feel::GeoEntity< Entity >::elements | ( | ) | const [inline] |
static uint16_type Feel::GeoEntity< Entity >::eToP | ( | uint16_type const | __localEdge, |
uint16_type const | __point | ||
) | [inline, static] |
eToP(i,j) = localId of jth point on ith local edge
static uint16_type Feel::GeoEntity< Entity >::fToE | ( | uint16_type const | __localFace, |
uint16_type const | __edge | ||
) | [inline, static] |
fToE(i,j) = localId of jth edge on ith local face
static uint16_type Feel::GeoEntity< Entity >::fToP | ( | uint16_type const | __localFace, |
uint16_type const | __point | ||
) | [inline, static] |
fToP(i,j) = localId of jth point on ith local edge
Reimplemented in Feel::GeoND< Dim, GEOSHAPE, T, POINTTYPE >, and Feel::GeoND< Dim, GEOSHAPE, T, GeoElement0D< Dim, SubFaceOfNone, T > >.
bool Feel::GeoEntity< Entity >::hasShape | ( | size_type | __shape | ) | const [inline] |
__shape
, false otherwise size_type Feel::GeoEntity< Entity >::idInPartition | ( | uint16_type | pid | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isAHexahedraShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isALine | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isALineShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isAPoint | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isAPointShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isAQuadrangleShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isASurface | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isATetrahedraShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isATriangleShape | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isAVolume | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isBilinear | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isGhostCell | ( | ) | const [inline] |
true
if ghost cell, false
otherwise Reimplemented in Feel::GeoElement3D< Dim, GEOSHAPE, T >, Feel::GeoElement2D< Dim, GEOSHAPE, SubFace, T >, Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >, and Feel::GeoElement0D< Dim, SubFace, T >.
bool Feel::GeoEntity< Entity >::isInternal | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isLinear | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isLinkedToOtherPartitions | ( | ) | const [inline] |
bool Feel::GeoEntity< Entity >::isOnBoundary | ( | ) | const [inline] |
Tells if item is on the boundary
Reimplemented in Feel::GeoElement3D< Dim, GEOSHAPE, T >, Feel::GeoElement2D< Dim, GEOSHAPE, SubFace, T >, Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >, and Feel::GeoElement0D< Dim, SubFace, T >.
bool Feel::GeoEntity< Entity >::isQuadratic | ( | ) | const [inline] |
virtual double Feel::GeoEntity< Entity >::measure | ( | ) | const [pure virtual] |
Implemented in Feel::GeoND< Dim, GEOSHAPE, T, POINTTYPE >, Feel::GeoND< Dim, GEOSHAPE, T, GeoElement0D< Dim, SubFaceOfNone, T > >, Feel::Geo0D< Dim, T >, and Feel::Geo0D< 3 >.
uint16_type Feel::GeoEntity< Entity >::nEdges | ( | ) | const [inline] |
number of edges on the reference shape
std::vector<int> const& Feel::GeoEntity< Entity >::neighborPartitionIds | ( | ) | const [inline] |
uint16_type Feel::GeoEntity< Entity >::nFaces | ( | ) | const [inline] |
number of faces on the reference shape
uint16_type Feel::GeoEntity< Entity >::nGeometricFaces | ( | ) | const [inline] |
number of faces on the reference shape
uint16_type Feel::GeoEntity< Entity >::nNormals | ( | ) | const [inline] |
number of normals on the reference shape
uint16_type Feel::GeoEntity< Entity >::nPoints | ( | ) | const [inline] |
number of points on the reference shape
Reimplemented in Feel::GeoND< Dim, GEOSHAPE, T, POINTTYPE >, and Feel::GeoND< Dim, GEOSHAPE, T, GeoElement0D< Dim, SubFaceOfNone, T > >.
size_type Feel::GeoEntity< Entity >::numberOfElements | ( | ) | const [inline] |
size_type Feel::GeoEntity< Entity >::numberOfNeighborPartitions | ( | ) | const [inline] |
uint16_type Feel::GeoEntity< Entity >::numberOfPartitions | ( | ) | const [inline] |
uint16_type Feel::GeoEntity< Entity >::nVertices | ( | ) | const [inline] |
number of vertices on the reference shape
uint16_type Feel::GeoEntity< Entity >::partitionId | ( | ) | const [inline] |
uint16_type Feel::GeoEntity< Entity >::processId | ( | ) | const [inline] |
Reimplemented in Feel::GeoElement3D< Dim, GEOSHAPE, T >, Feel::GeoElement2D< Dim, GEOSHAPE, SubFace, T >, Feel::GeoElement1D< Dim, GEOSHAPE, SubFace, T >, and Feel::GeoElement0D< Dim, SubFace, T >.
uint16_type Feel::GeoEntity< Entity >::refDim | ( | ) | const [inline] |
the dimension of the reference shape
void Feel::GeoEntity< Entity >::setIdInPartition | ( | uint16_type | pid, |
size_type | id | ||
) | [inline] |
set id in a partition pid of the entity
void Feel::GeoEntity< Entity >::setNeighborPartitionIds | ( | std::vector< int > const & | npids | ) | [inline] |
void Feel::GeoEntity< Entity >::setNumberOfNeighborPartitions | ( | uint16_type | nep | ) | [inline] |
set the number of partition the element is linked to
void Feel::GeoEntity< Entity >::setNumberOfPartitions | ( | uint16_type | np | ) | [inline] |
void Feel::GeoEntity< Entity >::setOnBoundary | ( | bool | b | ) | [inline] |
set the boundary flag
b | true if the item is on the boundary, false otherwise |
void Feel::GeoEntity< Entity >::setProcessId | ( | uint16_type | pid | ) | [inline] |
set the processor id of the entity &
pid | processor id |
void Feel::GeoEntity< Entity >::setProcessIdInPartition | ( | uint16_type | pid | ) | [inline] |
set the processor id of the entity &
pid | processor id |