Geophysical Inversion and Modeling Library  jenkins-pyGIMLi-211-SUCCESS-2-g7e1ba6f0
GIMLI::Edge Class Reference
+ Inheritance diagram for GIMLI::Edge:
+ Collaboration diagram for GIMLI::Edge:

Public Member Functions

 Edge (Node &n1, Node &n2)
 
 Edge (const std::vector< Node * > &nodes)
 
virtual uint dim () const
 
virtual uint rtti () const
 
virtual std::vector< PolynomialFunction< double > > createShapeFunctions () const
 
void setNodes (Node &n1, Node &n2, bool changed=true)
 
int swap ()
 
- Public Member Functions inherited from GIMLI::Boundary
 Boundary (const std::vector< Node * > &nodes)
 
virtual uint parentType () const
 
virtual RVector3 rst (uint i) const
 
const CellleftCell () const
 
CellleftCell ()
 
const CellrightCell () const
 
CellrightCell ()
 
void setLeftCell (Cell *cell)
 
void setRightCell (Cell *cell)
 
virtual RVector3 norm () const
 
virtual RVector3 norm (const Cell &cell) const
 
bool normShowsOutside (const Cell &cell) const
 
- Public Member Functions inherited from GIMLI::MeshEntity
 MeshEntity ()
 
 MeshEntity (const std::vector< Node * > &nodes)
 
virtual ~MeshEntity ()
 
Nodenode (uint i)
 
Nodenode (uint i) const
 
uint nodeCount () const
 
Shapeshape ()
 
Shapeshape () const
 
ShapepShape ()
 
RVector3 rst (uint i) const
 
RVector3 center () const
 
double size () const
 
virtual double attribute () const
 
IndexArray ids () const
 
virtual RVector N (const RVector3 &rst) const
 
virtual void N (const RVector3 &rst, RVector &n) const
 
virtual RVector dNdL (const RVector3 &rst, uint i) const
 
virtual RMatrix dNdL (const RVector3 &rst) const
 
double pot (const RVector3 &p, const RVector &u) const
 
RVector3 vec (const RVector3 &p, const std::vector< RVector3 > &v) const
 
RVector3 grad (const RVector3 &p, const RVector &u) const
 
const std::vector< Node *> & nodes () const
 
void setUxCache (const RMatrix &mat) const
 
const RMatrixuxCache () const
 
void addSecondaryNode (Node *n)
 
const std::vector< Node *> & secondaryNodes () const
 
const std::vector< Node *> allNodes () const
 
Index allNodeCount () const
 
- Public Member Functions inherited from GIMLI::BaseEntity
 BaseEntity (const BaseEntity &ent)
 
BaseEntityoperator= (const BaseEntity &ent)
 
virtual bool valid () const
 
virtual void setValid (bool valid)
 
int id () const
 
void setId (int id)
 
void setMarker (int marker)
 
int marker () const
 
void setTagged (bool tagged)
 
void untag ()
 
void tag ()
 
bool tagged () const
 

Friends

std::ostream & operator<< (std::ostream &str, const Edge &e)
 

Additional Inherited Members

- Protected Member Functions inherited from GIMLI::Boundary
void registerNodes_ ()
 
void deRegisterNodes_ ()
 
 Boundary (const Boundary &bound)
 
Boundaryoperator= (const Boundary &boundary)
 
- Protected Member Functions inherited from GIMLI::MeshEntity
void fillShape_ ()
 
void setNodes_ (const std::vector< Node * > &nodes)
 
void deRegisterNodes_ ()
 
 MeshEntity (const MeshEntity &ent)
 
MeshEntityoperator= (const MeshEntity &ent)
 
- Protected Attributes inherited from GIMLI::Boundary
CellleftCell_
 
CellrightCell_
 
- Protected Attributes inherited from GIMLI::MeshEntity
Shapeshape_
 
std::vector< Node *> nodeVector_
 
std::vector< Node *> secondaryNodes_
 
RMatrix uxCache_
 
- Protected Attributes inherited from GIMLI::BaseEntity
int id_
 
bool valid_
 
int marker_
 
bool tagged_
 

Member Function Documentation

◆ dim()

virtual uint GIMLI::Edge::dim ( ) const
inlinevirtual

Return the dimension for this MeshEntity.

Reimplemented from GIMLI::MeshEntity.

◆ rtti()

virtual uint GIMLI::Edge::rtti ( ) const
inlinevirtual

Return the runtime identification for this MeshEntity.

Reimplemented from GIMLI::Boundary.

Reimplemented in GIMLI::Edge3.

References GIMLI::str().

◆ swap()

int GIMLI::Edge::swap ( )

Swap edge between two triangular neighbor cells. Only defined if both neighbors are triangles.

References GIMLI::BaseEntity::id(), and GIMLI::Cell::oppositeTo().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  str,
const Edge e 
)
friend

See ref MeshEntity::N()