LifeV
Global functions to build Bare Items.

Functions

std::pair< BareEdge, bool > makeBareEdge (ID const i, ID const j)
 It creates a BareEdge end returns the orientation of the created edge with respect to the given data. More...
 
BareEdge setBareEdge (ID const i, ID const j)
 It creates a BareEdge, ignoring orientation. More...
 
BareEdge setBareEdgeNo (ID const i, ID const j)
 It creates a non-standard BareEdge. More...
 
std::pair< BareFace, bool > makeBareFace (ID const i, ID const j, ID const k)
 It creates Bare Face objects from three Point ID's. More...
 
std::pair< BareFace, bool > makeBareFace (ID const i, ID const j, ID const k, ID const l)
 It creates Bare Face objects from four Point ID's. To be used with Quad faces. More...
 

Detailed Description

Function Documentation

◆ makeBareEdge()

std::pair<BareEdge, bool> LifeV::makeBareEdge ( ID const  i,
ID const  j 
)
inline

It creates a BareEdge end returns the orientation of the created edge with respect to the given data.

Parameters
iis a Point ID
jis a Point ID
Returns
a pair composed of the created BareEdge and a boolean value which is False if orientation has been changed, True otherwise

The BareEdge that will be built is the one passing by i and j. The orientation is i->j if the returned parameter is a true.

Precondition
i and j >=0, i!=j

Definition at line 254 of file MeshElementBare.hpp.

◆ setBareEdge()

BareEdge LifeV::setBareEdge ( ID const  i,
ID const  j 
)
inline

It creates a BareEdge, ignoring orientation.

Parameters
iis a Point ID
jis a Point ID
Returns
the BareEdge created

The BareEdge that will be built is the one passing by i and j A lighter version of MakeBareEdge, to be used if orientation flag is not needed;

Precondition
i and j >0, i!=j

Definition at line 280 of file MeshElementBare.hpp.

◆ setBareEdgeNo()

BareEdge LifeV::setBareEdgeNo ( ID const  i,
ID const  j 
)
inline

It creates a non-standard BareEdge.

Parameters
iis a Point ID
jis a Point ID
Returns
the BareEdge created
Precondition
i and j >0

Yet another lighter version of MakeBareEdge, without orientation, To be used for non-oriented graphs.

Warning
It produces a BareEdge which does not comply with the invariant of the class (first < second). It must be used only if the BareEdge class is NOT used to uniquely identify edges.

Definition at line 304 of file MeshElementBare.hpp.

◆ makeBareFace() [1/2]

std::pair< BareFace, bool > makeBareFace ( ID const  i,
ID const  j,
ID const  k 
)

It creates Bare Face objects from three Point ID's.

Parameters
iis a Point ID
jis a Point ID
kis a Point ID
Returns
a pair composed of the created BareFace and a boolean value which is False if orientation has been changed, True otherwise

To be used for triangular faces.

Precondition
i, j and k >0. i!=j!=k

Definition at line 125 of file MeshElementBare.cpp.

◆ makeBareFace() [2/2]

std::pair< BareFace, bool > makeBareFace ( ID const  i,
ID const  j,
ID const  k,
ID const  l 
)

It creates Bare Face objects from four Point ID's. To be used with Quad faces.

Parameters
iis a Point ID
jis a Point ID
kis a Point ID
lis a Point ID
Returns
a pair composed of the created BareFace and a boolean value which is False if orientation has been changed, True otherwise
Remarks
For quad faces the construction process is more complex. We start from the smallest vertex and we take the first three vertices in the sequence. We then proceede as for the triangles.

Definition at line 164 of file MeshElementBare.cpp.