LifeV
MeshElementMarked< 1, 2, GeoShape, MC > Class Template Reference

specialization for 1D entities (edges) in a 2D geometry. Identities of the adjacent 2D elements and their relative position are stored. More...

#include <MeshElementMarked.hpp>

+ Inheritance diagram for MeshElementMarked< 1, 2, GeoShape, MC >:
+ Collaboration diagram for MeshElementMarked< 1, 2, GeoShape, MC >:

Private Attributes

ID M_firstAdjacentElementIdentity
 
ID M_secondAdjacentElementIdentity
 
ID M_firstAdjacentElementPosition
 
ID M_secondAdjacentElementPosition
 

Public Types::GeoBShape

typedef GeoShape::GeoBShape geoShape_Type
 
typedef MC::faceMarker_Type marker_Type
 
typedef geoShape_Type::GeoBShape edgeShape_Type
 
typedef MeshElementMarked< 1, 2, GeoShape, MC > edge_Type
 
typedef MeshElementMarked< 0, 2, GeoShape, MC > point_Type
 
typedef edge_Type geoBElement_Type
 
static const UInt S_numLocalVertices = MeshElement<typename GeoShape::GeoBShape, MeshElementMarked<0, 2, GeoShape, MC> >::S_numVertices
 Number of element edges, for compatibility. More...
 

Constructor & Destructor

 MeshElementMarked (ID identity=NotAnId)
 Declares element identity. More...
 
 MeshElementMarked (const MeshElementMarked< 1, 2, GeoShape, MC > &Element)
 Copy constructor. More...
 
virtual ~MeshElementMarked ()
 Destructor. More...
 

Get Methods

ID firstAdjacentElementIdentity () const
 Returns the identity of the first adjacent element. More...
 
ID secondAdjacentElementIdentity () const
 Returns the identity of the second adjacent element. More...
 
IDfirstAdjacentElementIdentity ()
 Returns the identity of the first adjacent element. More...
 
IDsecondAdjacentElementIdentity ()
 Returns the identity of the second adjacent element. More...
 
ID firstAdjacentElementPosition () const
 Returns the position of the first adjacent element. More...
 
ID secondAdjacentElementPosition () const
 Returns the position of the second adjacent element. More...
 
IDfirstAdjacentElementPosition ()
 Returns the position of the first adjacent element. More...
 
IDsecondAdjacentElementPosition ()
 Returns the position of the second adjacent element. More...
 

Additional Inherited Members

- Public Types inherited from MeshElement< GeoShape::GeoBShape, MeshElementMarked< 0, 2, GeoShape, MC > >
typedef GeoShape geoShape_Type
 
typedef MeshElementMarked< 0, 2, GeoShape, MC > point_Type
 
- Public Types inherited from MeshEntity
enum  SwitchId { LOCALID = 0, GLOBALID = 1 }
 Indicator for local or global id. More...
 
- Public Member Functions inherited from MeshElement< GeoShape::GeoBShape, MeshElementMarked< 0, 2, GeoShape, MC > >
 MeshElement ()
 Empty Constructor. More...
 
 MeshElement (ID identity)
 Declares item identity. More...
 
 MeshElement (const MeshElement< GeoShape, MeshElementMarked< 0, 2, GeoShape, MC > > &element)
 Copy constructor. More...
 
 ~MeshElement ()
 Destructor. More...
 
MeshElementoperator= (MeshElement const &element)
 The equivalence operator. More...
 
std::ostream & showMe (bool verbose=false, std::ostream &c=std::cout) const
 Display general information about the content of the class. More...
 
void swapPoints (const ID &firstIdentity, const ID &secondIdentity)
 Swap Points. More...
 
void reversePoints ()
 Reverses the points of the element. More...
 
void exchangePoints (const ID oldToNew[GeoShape::S_numPoints])
 Exchange points. More...
 
point_Type const & point (ID const identity) const
 Returns the point of identity indicated in the argument. More...
 
point_Type const & reversepoint (ID const identity) const
 Returns the point of identity indicated in the argument. More...
 
void setPoint (ID const identity, point_Type const &point)
 Inserts a point using point references. More...
 
void setPoint (ID const identity, point_Type const *point)
 Inserts a point using pointers. More...
 
bool setPointWithBoundaryCheck (ID const identity, point_Type const &point)
 Inserts a point using point references with forced boundary check. More...
 
bool setPointWithBoundaryCheck (ID const identity, point_Type const *point)
 Inserts a point using pointers with forced boundary check. More...
 
markerID_Type setStrongerMarkerIDAtPoint (const ID &identity, markerID_Type const &flag) const
 Sets the Marker ID of a point. More...
 
point_Type const * points () const
 Returns the points vector. More...
 
- Public Member Functions inherited from MeshEntity
 MeshEntity ()
 Empty Constructor. More...
 
 MeshEntity (const ID &id, const flag_Type &flag=EntityFlags::DEFAULT)
 Constructor with a single value for both identifiers. More...
 
 MeshEntity (const ID &id, const ID &lid, const flag_Type &flag=EntityFlags::DEFAULT)
 Full constructor, where both identifiers are specified. More...
 
 MeshEntity (const ID &id, const bool &boundary)
 backward-compatible constructor More...
 
virtual ~MeshEntity ()
 Destructor. More...
 
void showMe (std::ostream &output=std::cout) const
 Displays the informations stored by this class. More...
 
void setId (const ID &id)
 Method to set the global identifier. More...
 
void setLocalId (const ID &id)
 Method to set the local identifier. More...
 
void setBoundary (const bool &boundary)
 Set method for the boundary indicator. More...
 
void replaceFlag (const flag_Type &flag)
 Replace method for the entity flag. More...
 
void setFlag (const flag_Type &flag)
 Sets a flag. More...
 
void unSetFlag (const flag_Type &flag)
 Remove a flag. More...
 
const IDid () const
 Method to get the global identifier. More...
 
const IDlocalId () const
 Method to get the local identifier. More...
 
bool boundary () const
 Tells if it is on the boundary. More...
 
bool isOwned () const
 Tells if the entity is owned by current process. More...
 
const flag_Typeflag () const
 returns the entity flag More...
 
- Static Public Attributes inherited from MeshElement< GeoShape::GeoBShape, MeshElementMarked< 0, 2, GeoShape, MC > >
static const UInt S_numLocalPoints
 Number of points associated to the entity. More...
 
static const UInt S_numLocalVertices
 Number of Vertices associated to the entity. More...
 

Detailed Description

template<typename GeoShape, typename MC>
class LifeV::MeshElementMarked< 1, 2, GeoShape, MC >

specialization for 1D entities (edges) in a 2D geometry. Identities of the adjacent 2D elements and their relative position are stored.

Definition at line 400 of file MeshElementMarked.hpp.

Member Typedef Documentation

◆ geoShape_Type

typedef GeoShape::GeoBShape geoShape_Type

Definition at line 411 of file MeshElementMarked.hpp.

◆ marker_Type

typedef MC::faceMarker_Type marker_Type

Definition at line 412 of file MeshElementMarked.hpp.

◆ edgeShape_Type

typedef geoShape_Type::GeoBShape edgeShape_Type

Definition at line 413 of file MeshElementMarked.hpp.

◆ edge_Type

typedef MeshElementMarked<1, 2, GeoShape, MC> edge_Type

Definition at line 414 of file MeshElementMarked.hpp.

◆ point_Type

typedef MeshElementMarked<0, 2, GeoShape, MC> point_Type

Definition at line 415 of file MeshElementMarked.hpp.

◆ geoBElement_Type

Definition at line 416 of file MeshElementMarked.hpp.

Constructor & Destructor Documentation

◆ MeshElementMarked() [1/2]

MeshElementMarked ( ID  identity = NotAnId)
explicit

Declares element identity.

Parameters
identityElement identity

Definition at line 988 of file MeshElementMarked.hpp.

◆ MeshElementMarked() [2/2]

MeshElementMarked ( const MeshElementMarked< 1, 2, GeoShape, MC > &  Element)

Copy constructor.

Parameters
ElementMeshElementMarked to be copied

Definition at line 999 of file MeshElementMarked.hpp.

+ Here is the caller graph for this function:

◆ ~MeshElementMarked()

virtual ~MeshElementMarked ( )
inlinevirtual

Destructor.

Definition at line 436 of file MeshElementMarked.hpp.

Member Function Documentation

◆ firstAdjacentElementIdentity() [1/2]

ID firstAdjacentElementIdentity ( ) const
inline

Returns the identity of the first adjacent element.

Returns
Identity of the first adjacent element

Definition at line 450 of file MeshElementMarked.hpp.

◆ secondAdjacentElementIdentity() [1/2]

ID secondAdjacentElementIdentity ( ) const
inline

Returns the identity of the second adjacent element.

Returns
Identity of the second adjacent element

Definition at line 460 of file MeshElementMarked.hpp.

◆ firstAdjacentElementIdentity() [2/2]

ID& firstAdjacentElementIdentity ( )
inline

Returns the identity of the first adjacent element.

Returns
Identity of the first adjacent element

Definition at line 469 of file MeshElementMarked.hpp.

◆ secondAdjacentElementIdentity() [2/2]

ID& secondAdjacentElementIdentity ( )
inline

Returns the identity of the second adjacent element.

Returns
Identity of the second adjacent element

Definition at line 478 of file MeshElementMarked.hpp.

◆ firstAdjacentElementPosition() [1/2]

ID firstAdjacentElementPosition ( ) const
inline

Returns the position of the first adjacent element.

Returns
Position of the first adjacent element

Definition at line 487 of file MeshElementMarked.hpp.

◆ secondAdjacentElementPosition() [1/2]

ID secondAdjacentElementPosition ( ) const
inline

Returns the position of the second adjacent element.

Returns
Position of the second adjacent element

Definition at line 496 of file MeshElementMarked.hpp.

◆ firstAdjacentElementPosition() [2/2]

ID& firstAdjacentElementPosition ( )
inline

Returns the position of the first adjacent element.

Returns
Position of the first adjacent element

Definition at line 506 of file MeshElementMarked.hpp.

◆ secondAdjacentElementPosition() [2/2]

ID& secondAdjacentElementPosition ( )
inline

Returns the position of the second adjacent element.

Returns
Position of the second adjacent element

Definition at line 515 of file MeshElementMarked.hpp.

Field Documentation

◆ S_numLocalVertices

const UInt S_numLocalVertices = MeshElement<typename GeoShape::GeoBShape, MeshElementMarked<0, 2, GeoShape, MC> >::S_numVertices
static

Number of element edges, for compatibility.

Definition at line 409 of file MeshElementMarked.hpp.

◆ M_firstAdjacentElementIdentity

ID M_firstAdjacentElementIdentity
private

Definition at line 523 of file MeshElementMarked.hpp.

◆ M_secondAdjacentElementIdentity

ID M_secondAdjacentElementIdentity
private

Definition at line 524 of file MeshElementMarked.hpp.

◆ M_firstAdjacentElementPosition

ID M_firstAdjacentElementPosition
private

Definition at line 525 of file MeshElementMarked.hpp.

◆ M_secondAdjacentElementPosition

ID M_secondAdjacentElementPosition
private

Definition at line 526 of file MeshElementMarked.hpp.


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