CEPS  24.01
Cardiac ElectroPhysiology Simulator
GeomSimplex< _Dim > Class Template Reference

Detailed Description

template<CepsUInt _Dim>
class GeomSimplex< _Dim >

k-simplex geometrical element.

Derived from GeomCell, with the addition of computation of geometrical specific data: measure, jacobian, and neighbors.

Templated on _Dim (k): 3 for tetrahedron, 2 for triangle, 1 for cable (edge), 0 for point

The GeometryPartitioner::buildNeighbors function sets the geometrical neighbors

Definition at line 49 of file GeomSimplex.hpp.

#include <GeomSimplex.hpp>

Inheritance diagram for GeomSimplex< _Dim >:
[legend]

Public Member Functions

 GeomSimplex ()
 Default constructor. More...
 
 GeomSimplex (CepsVector< GeomNode * > nodes, const CepsCellGlobalIndex &gID=0)
 Constructor with nodes and global index. More...
 
 GeomSimplex (const GeomCell &that)
 Copy constructor. More...
 
GeomSimplexoperator= (const GeomSimplex &that)
 Copy assignement. More...
 
 ~GeomSimplex () override
 Destructor. More...
 
CepsUInt getNumberOfNodes () const override
 number of nodes overriden from HoldsNodes More...
 
CepsReal getMeasure () const override
 Element size: volume for tetrahedron, area for triangle and length for cable. More...
 
- Public Member Functions inherited from GeomCell
 GeomCell ()
 default constructor
More...
 
 GeomCell (CepsVector< GeomNode * > nodes, const CepsCellGlobalIndex &gID=0)
 Constructor with nodes. More...
 
 GeomCell (const GeomCell &)=default
 copy constructor More...
 
 GeomCell (GeomCell &&)=default
 copy constructor More...
 
GeomCelloperator= (const GeomCell &)=default
 assignment operator More...
 
GeomCelloperator= (GeomCell &&)=default
 assignment operator More...
 
 ~GeomCell () override=default
 destructor More...
 
GeomNodegetNodeWithMinimalIndex () const
 Returns node with smallest index (used eg to determine ownership) More...
 
const CepsCellTypegetCellType () const
 Get the type of cell. More...
 
virtual void reset ()
 Wipes content. More...
 
CepsReal getJacobianDeterminant () const
 Jacobian of geometrical deformation from reference cell. More...
 
virtual const JacobianMatrixTypegetJacobianMatrix ()
 Jacobian Matrix of deformation from reference cell (3 rows for R^3, element dimension columns) More...
 
virtual const InverseJacobianMatrixTypegetInverseJacobianMatrix ()
 Jacobian Matrix of deformation from reference cell (3 rows for R^3, element dimension columns) More...
 
virtual void refresh ()
 Recomputes jacobian matrix and determinant. More...
 
void setNormal (CepsMathVertex n)
 Sets the normal vector, (useful for boundary cells only) More...
 
CepsMathVertex getNormal () const
 Sets the normal vector, (useful for boundary cells only) More...
 
void setNodeSharingCellsIndices (const CepsSet< CepsCellGlobalIndex > &nCellIds)
 Cells that share at least one node with self. More...
 
const CepsSet< CepsCellGlobalIndex > & getNodeSharingCellsIndices () const
 Cells that share at least one node with self. More...
 
CepsReal getDiameter ()
 Size of cell. More...
 
- Public Member Functions inherited from ceps::HoldsGlobalIndex
 HoldsGlobalIndex (const CepsGlobalIndex &gid)
 Constructor with ID. More...
 
 HoldsGlobalIndex ()=default
 Default constructor. More...
 
 HoldsGlobalIndex (const HoldsGlobalIndex &)=default
 Copy constructor. More...
 
 HoldsGlobalIndex (HoldsGlobalIndex &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsGlobalIndex ()=default
 Destructor. More...
 
HoldsGlobalIndexoperator= (const HoldsGlobalIndex &)=default
 Assignment operator. More...
 
HoldsGlobalIndexoperator= (HoldsGlobalIndex &&) noexcept=default
 Assignment operator. More...
 
const CepsGlobalIndexgetGlobalIndex () const
 Get the index
More...
 
void setGlobalIndex (const CepsGlobalIndex &gid)
 Set the index. More...
 
void reset ()
 Set the index to 0u. More...
 
- Public Member Functions inherited from ceps::HoldsDimension
 HoldsDimension (const CepsUInt &dim)
 Constructor with dimension. More...
 
 HoldsDimension ()=default
 Default constructor. More...
 
 HoldsDimension (const HoldsDimension &)=default
 Constructor by copy. More...
 
 HoldsDimension (HoldsDimension &&) noexcept=default
 Constructor by copy. More...
 
virtual ~HoldsDimension ()=default
 Destructor. More...
 
HoldsDimensionoperator= (const HoldsDimension &)=default
 Assignment operator. More...
 
HoldsDimensionoperator= (HoldsDimension &&) noexcept=default
 Assignment operator. More...
 
const CepsUIntgetDimension () const
 Get the dimension of the object. More...
 
void setDimension (const CepsUInt &dim)
 Set the dimension of the object. More...
 
void reset ()
 Set the dimension of the object to 0. More...
 
- Public Member Functions inherited from ceps::HoldsBoundary
 HoldsBoundary (const CepsBool &isBoundary)
 Constructor with given information. More...
 
 HoldsBoundary ()=default
 Default constructor. More...
 
 HoldsBoundary (const HoldsBoundary &)=default
 Copy constructor. More...
 
 HoldsBoundary (HoldsBoundary &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsBoundary ()=default
 Destructor. More...
 
HoldsBoundaryoperator= (const HoldsBoundary &)=default
 Assignment operator. More...
 
HoldsBoundaryoperator= (HoldsBoundary &&) noexcept=default
 Assignment operator. More...
 
CepsBool isBoundary () const
 Tells if entity is on boundary or not. More...
 
void setOnBoundary (CepsBool value=true)
 Sets the entity as being on boundary or not. More...
 
void reset ()
 Sets the entity as NOT being on boundary. More...
 
- Public Member Functions inherited from ceps::HoldsAttributes
 HoldsAttributes (const CepsSet< CepsAttribute > &attributes)
 Constructor with any number of attributes. More...
 
 HoldsAttributes (const CepsVector< CepsAttribute > &attributes)
 Constructor with any number of attributes. More...
 
 HoldsAttributes (CepsAttribute *attributes, const CepsUInt &n)
 Constructor with any number of attributes. More...
 
 HoldsAttributes ()=default
 Default constructor. More...
 
 HoldsAttributes (const HoldsAttributes &)=default
 Assignement operator. More...
 
 HoldsAttributes (HoldsAttributes &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsAttributes ()=default
 Destructor. More...
 
HoldsAttributesoperator= (const HoldsAttributes &)=default
 Assignment operator. More...
 
HoldsAttributesoperator= (HoldsAttributes &&) noexcept=default
 Assignment operator. More...
 
CepsUInt getNumberOfAttributes () const
 Returns number of attributes of the entity. More...
 
CepsSet< CepsAttribute > & getAttributes ()
 Returns the attributes of the entity. More...
 
const CepsSet< CepsAttribute > & getAttributes () const
 Returns the attributes of the entity, const version. More...
 
void setAttributes (const CepsVector< CepsAttribute > &attributes)
 Sets the attributes of the entity. More...
 
void setAttributes (const CepsSet< CepsAttribute > &attributes)
 Sets the attributes of the entity. More...
 
void setAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Sets the attributes of the entity. More...
 
template<class _It >
void setAttributes (_It first, _It last)
 Sets the attributes of the entity. More...
 
void addAttribute (const CepsAttribute &name)
 Adds an attribute to the entity. More...
 
void addAttributes (const CepsVector< CepsAttribute > &attributes)
 Adds several attributes to the entity. More...
 
void addAttributes (const CepsSet< CepsAttribute > &attributes)
 Adds several attributes to the entity. More...
 
void addAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Adds several attributes to the entity. More...
 
template<class _It >
void addAttributes (_It first, _It last)
 Adds several attributes to the entity. More...
 
void removeAttribute (const CepsAttribute &name)
 Removes an attribute from the entity. More...
 
void removeAttributes (const CepsSet< CepsAttribute > &attributes)
 Removes several attributes from the entity. More...
 
void removeAttributes (const CepsVector< CepsAttribute > &attributes)
 Removes several attributes from the entity. More...
 
void removeAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Removes several attributes from the entity. More...
 
template<class _It >
void removeAttributes (_It first, _It last)
 Removes several attributes from the entity. More...
 
void clearAttributes ()
 Removes all attributes from the entity. More...
 
CepsBool hasAttribute (const CepsAttribute &name) const
 Tells if the entity has the attribute in argument. More...
 
CepsBool hasAllAttributes (const CepsVector< CepsAttribute > &attributes) const
 Tells if the entity has all the attributes in argument. More...
 
CepsBool hasAllAttributes (const CepsAttribute *attributes, const CepsUInt &n) const
 Tells if the entity has all the attributes in argument. More...
 
template<class _It >
CepsBool hasAllAttributes (_It first, _It last) const
 Tells if the entity has all the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsSet< CepsAttribute > &attributes) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsVector< CepsAttribute > &attributes) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsAttribute *attributes, const CepsUInt &n) const
 Tells if the entity has one of the attributes in argument. More...
 
template<class _It >
CepsBool hasOneOfAttributes (_It first, _It last) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasUniversalAttribute () const
 Detect if the current entity has the attribute universal. More...
 
void reset ()
 Equivalent to HoldsAttributes::clear() More...
 
- Public Member Functions inherited from ceps::HoldsProcIds
 HoldsProcIds (const CepsProcId &owner, const CepsVector< CepsProcId > &halosPid={})
 Constructor with own CPU Id and Ids of neighboring CPUs. More...
 
 HoldsProcIds ()=default
 Default constructor. More...
 
 HoldsProcIds (const HoldsProcIds &)=default
 Copy constructor. More...
 
 HoldsProcIds (HoldsProcIds &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsProcIds ()=default
 Destructor. More...
 
HoldsProcIdsoperator= (const HoldsProcIds &)=default
 Assignment operator. More...
 
HoldsProcIdsoperator= (HoldsProcIds &&) noexcept=default
 Assignment operator. More...
 
CepsBool isShared () const
 Tells if there are halo CPUs. More...
 
void setShared (CepsBool flag)
 Tells if there are halo CPUs. More...
 
void setOwner (const CepsProcId &pid)
 Set shared between several processes ? More...
 
const CepsProcIdgetOwner () const
 Get owner (processus id) of this entity. More...
 
void setAsHaloFor (const CepsProcId &pid)
 Adds pid to the set of halo CPUs
More...
 
CepsBool isHaloFor (const CepsProcId &pid) const
 Detect if this entity is in the halo of. More...
 
void reset ()
 Gives ownership to rank(), removes halos. More...
 
- Public Member Functions inherited from ceps::HoldsNodes< GeomNode >
 HoldsNodes (const CepsVector< GeomNode * > &nodes)
 Constructor with nodes. More...
 
 HoldsNodes (GeomNode **nodes, const CepsUInt &n)
 Constructor with nodes. More...
 
 HoldsNodes ()=default
 Default constructor. More...
 
 HoldsNodes (const HoldsNodes &)=default
 Copy constructor. More...
 
 HoldsNodes (HoldsNodes &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsNodes ()=default
 Destructor. More...
 
HoldsNodesoperator= (const HoldsNodes &)=default
 Assignment operator. More...
 
HoldsNodesoperator= (HoldsNodes &&) noexcept=default
 Assignment operator. More...
 
CepsUInt getNumberOfNodes () const
 Returns the total number of nodes. More...
 
CepsUInt countValidNodes ()
 Returns the number of nodes that are not nullptr. More...
 
CepsVector< GeomNode * > & getNodes ()
 Reference to the node pointers array. More...
 
const CepsVector< GeomNode * > & getNodes () const
 Reference to the node pointers array, const version. More...
 
GeomNodegetNodeAt (const CepsUInt &i)
 Pointer to the i-th node. More...
 
const GeomNodegetNodeAt (const CepsUInt &i) const
 Pointer to the i-th node, const version. More...
 
void setNodes (const CepsVector< GeomNode * > &nodes)
 Assign all nodes. More...
 
void setNodes (GeomNode **nodes, const CepsUInt &n)
 Assign all nodes. More...
 
void setNodes (_It first, _It last)
 Assign all nodes. More...
 
void setNodeAt (const CepsUInt &i, GeomNode *neigh)
 Set the i-th node. If i>nNodes, nullptrs fill the vector. More...
 
void addNode (GeomNode *name)
 Add a single node to the vector. More...
 
void addNodes (const CepsVector< GeomNode * > &nodes)
 Add several nodes to the vector. More...
 
void addNodes (GeomNode **nodes, const CepsUInt &n)
 Add several nodes to the vector. More...
 
void addNodes (_It first, _It last)
 Add several nodes to the vector. More...
 
void removeNode (GeomNode *&name)
 Removes the given node from the list. More...
 
void removeNodes (const CepsVector< GeomNode * > &nodes)
 Removes several nodes from the list. More...
 
void removeNodes (GeomNode **nodes, const CepsUInt &n)
 Removes several nodes from the list. More...
 
void removeNodes (_It first, _It last)
 Removes several nodes from the list. More...
 
void clearNodes ()
 Wipes the vector of nodes. More...
 
CepsBool hasNode (GeomNode *&neigh)
 Tells if object has the given node. More...
 
CepsBool hasAllNodes (const CepsVector< GeomNode * > &nodes)
 Tells if object has all the given nodes. More...
 
CepsBool hasAllNodes (GeomNode **nodes, const CepsUInt &n)
 Tells if object has all the given nodes. More...
 
CepsBool hasAllNodes (_It first, _It last)
 Tells if object has all the given nodes. More...
 
CepsBool hasOneOfNodes (const CepsVector< GeomNode * > &nodes)
 Tells if object has one of the given nodes. More...
 
CepsBool hasOneOfNodes (GeomNode **nodes, const CepsUInt &n)
 Tells if object has one of the given nodes. More...
 
CepsBool hasOneOfNodes (_It first, _It last)
 Tells if object has one of the given nodes. More...
 
CepsVector< GeomNode * > getValidNodes () const
 Get pointers on all valid nodes. More...
 
CepsGlobalIndex getNodeIndex (CepsUInt i) const
 Get the index of i-th node. More...
 
CepsVector< CepsGlobalIndexgetNodeIndices () const
 Get indices of all nodes. More...
 
void getNodeIndices (CepsGlobalIndex *nodesIndices, const CepsSize &nAllocated) const
 Get indices of all nodes. More...
 
void reset ()
 Equivalent to HoldsNodes::clearNodes. More...
 
- Public Member Functions inherited from ceps::HoldsCells< GeomCell >
 HoldsCells (const CepsVector< GeomCell * > &cells)
 Constructor with a vector of cells. More...
 
 HoldsCells (GeomCell **cells, const CepsUInt &n)
 Constructor with a vector of cells. More...
 
 HoldsCells ()=default
 Default constructor. More...
 
 HoldsCells (const HoldsCells &)=default
 Copy constructor. More...
 
 HoldsCells (HoldsCells &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsCells ()=default
 Destructor. More...
 
HoldsCellsoperator= (const HoldsCells &)=default
 Assignment operator. More...
 
HoldsCellsoperator= (HoldsCells &&) noexcept=default
 Assignment operator. More...
 
CepsUInt getNumberOfCells () const
 Returns the number of cells in the object. More...
 
CepsUInt countValidCells ()
 Get the number of cells that are not nullptr. More...
 
CepsVector< GeomCell * > getValidCells ()
 Reference to the valid cells. More...
 
CepsVector< GeomCell * > & getCells ()
 Reference to the cells. More...
 
const CepsVector< GeomCell * > & getCells () const
 Reference to the cells, const version. More...
 
GeomCell *& getCellAt (const CepsUInt &i)
 Pointer to the i-th cell. More...
 
const GeomCell *& getCellAt (const CepsUInt &i) const
 Pointer to the i-th cell , const version. More...
 
void setCells (const CepsVector< GeomCell * > &cells)
 Replaces currently held cell pointers. More...
 
void setCells (GeomCell **cells, const CepsUInt &n)
 Replaces currently held cell pointers. More...
 
void setCells (_It first, _It last)
 Replaces currently held cell pointers. More...
 
void setCellAt (const CepsUInt &i, GeomCell *neigh)
 Set a cell pointer in the vector of currently held cells, at given index. More...
 
void addCell (GeomCell *&name)
 Adds a cell to the list. More...
 
void addCells (const CepsVector< GeomCell * > &cells)
 Adds several cells to the list. More...
 
void addCells (GeomCell **cells, const CepsUInt &n)
 Adds several cells to the list. More...
 
void addCells (_It first, _It last)
 Adds several cells to the list. More...
 
void removeCell (GeomCell *&name)
 Removes a given cell pointer from the list. More...
 
void removeCells (const CepsVector< GeomCell * > &cells)
 Removes several cell pointers from the list. More...
 
void removeCells (GeomCell **cells, const CepsUInt &n)
 Removes several cell pointers from the list. More...
 
void removeCells (_It first, _It last)
 Removes several cell pointers from the list. More...
 
void clearCells ()
 Wipes the current list of cell pointers. More...
 
CepsBool hasCell (GeomCell *&neigh)
 Tells if object has the cell given in argument. More...
 
CepsBool hasAllCells (const CepsVector< GeomCell * > &cells)
 Tells if object has all cells given in argument. More...
 
CepsBool hasAllCells (GeomCell **cells, const CepsUInt &n)
 Tells if object has all cells given in argument. More...
 
CepsBool hasAllCells (_It first, _It last)
 Tells if object has all cells given in argument. More...
 
CepsBool hasOneOfCells (const CepsVector< GeomCell * > &cells)
 Tells if object has one of the cells given in argument. More...
 
CepsBool hasOneOfCells (GeomCell **cells, const CepsUInt &n)
 Tells if object has one of the cells given in argument. More...
 
CepsBool hasOneOfCells (_It first, _It last)
 Tells if object has one of the cells given in argument. More...
 
CepsIndex getCellIndex (CepsUInt i) const
 Get the index of i-th cell. More...
 
CepsVector< CepsIndexgetCellsIndices () const
 Get indices of all cells. More...
 
void reset ()
 Equivalent to HoldsCells::clearCells. More...
 

Protected Member Functions

void computeJacobianMatrix () override
 Computes the 3xELEMENT_DIM jacobian matrix. More...
 
void computeInverseJacobianMatrix () override
 Computes the inverse of the jacobian matrix. More...
 
void computeJacobianDeterminant () override
 Computes the determinant of the Jacobian matrix (specialized by dimension) More...
 
CepsBool checkJacobianDeterminant () override
 Checks if determinant is non-positive, and tries to reorder element's nodes if it is. More...
 
- Protected Member Functions inherited from GeomCell
void initialize (CepsUInt dim, CepsCellType cellType, CepsUInt nNodes)
 internal init method More...
 
void computeDiameter ()
 Computes size of cell (max edge length) More...
 
- Protected Member Functions inherited from ceps::HoldsNodes< GeomNode >
void errorOnNodeIndex (CepsUInt i, std::source_location loc=std::source_location::current()) const
 Aborts if requesting node with wrong index. More...
 
- Protected Member Functions inherited from ceps::HoldsCells< GeomCell >
void errorOnCellIndex (CepsUInt i, const CepsString &funcName) const
 Aborts if object holds less than i cells. More...
 

Private Member Functions

void initializeNodes (GeomNode *const *nodes, CepsUInt nNodes) override
 Copy nodes and compute jacobian. More...
 

Friends

class TestGeomCells
 

Additional Inherited Members

- Public Types inherited from GeomCell
using JacobianMatrixType = Eigen::Matrix< CepsReal, 3, Eigen::Dynamic >
 Typedef for jaccobian matrix. More...
 
using InverseJacobianMatrixType = Eigen::Matrix< CepsReal, Eigen::Dynamic, 3 >
 Typedef for inverse jaccobian matrix. More...
 
- Protected Attributes inherited from GeomCell
CepsCellType m_cellType
 Cell type. More...
 
JacobianMatrixType m_jacobian
 Jacobian Matrix. More...
 
InverseJacobianMatrixType m_invJacobian
 Inverse of Jacobian Matrix. More...
 
CepsReal m_detJacobian
 determinant of Jacobian matrix More...
 
CepsBool m_invJcomputed
 Flag to trigger computation of invJ. More...
 
CepsMathVertex m_normal
 For boundary cells, outward normal vector. More...
 
CepsReal m_diameter
 Size of cell. More...
 
CepsSet< CepsCellGlobalIndexm_nodeSharingCells
 IDs of cells that have a node in common. More...
 
- Protected Attributes inherited from ceps::HoldsGlobalIndex
CepsGlobalIndex m_globalIndex
 the index More...
 
- Protected Attributes inherited from ceps::HoldsAttributes
CepsSet< CepsAttributem_attributes
 The attributes held by the entity. More...
 
- Protected Attributes inherited from ceps::HoldsNodes< GeomNode >
CepsVector< GeomNode * > m_nodes
 The node pointers. More...
 
GeomNodem_dummyNode
 An empty node to be returned after abort when testing. More...
 
- Protected Attributes inherited from ceps::HoldsCells< GeomCell >
CepsVector< GeomCell * > m_cells
 The cell pointers. More...
 

Constructor & Destructor Documentation

◆ GeomSimplex() [1/3]

template<CepsUInt _Dim>
GeomSimplex< _Dim >::GeomSimplex ( )

Default constructor.

◆ GeomSimplex() [2/3]

template<CepsUInt _Dim>
GeomSimplex< _Dim >::GeomSimplex ( CepsVector< GeomNode * >  nodes,
const CepsCellGlobalIndex gID = 0 
)
explicit

Constructor with nodes and global index.

◆ GeomSimplex() [3/3]

template<CepsUInt _Dim>
GeomSimplex< _Dim >::GeomSimplex ( const GeomCell that)
explicit

Copy constructor.

◆ ~GeomSimplex()

template<CepsUInt _Dim>
GeomSimplex< _Dim >::~GeomSimplex ( )
override

Destructor.

Member Function Documentation

◆ checkJacobianDeterminant()

template<CepsUInt _Dim>
CepsBool GeomSimplex< _Dim >::checkJacobianDeterminant ( )
overrideprotectedvirtual

Checks if determinant is non-positive, and tries to reorder element's nodes if it is.

Returns
false if determinant is <= 0

Implements GeomCell.

◆ computeInverseJacobianMatrix()

void GeomTetraCell::computeInverseJacobianMatrix
overrideprotectedvirtual

Computes the inverse of the jacobian matrix.

Implements GeomCell.

Definition at line 45 of file GeomSimplices.cpp.

◆ computeJacobianDeterminant()

void GeomTetraCell::computeJacobianDeterminant
overrideprotectedvirtual

Computes the determinant of the Jacobian matrix (specialized by dimension)

In 3D, the Jacobian is a square matrix, Eigen determinant method is called. In 2D, let the triangle element $T_k = (P_0,P_1,P_2)$ and the transform from the reference triangle $T$:

\[ \begin{array}{rrcl} \Phi_k : & T & \mapsto & T_k \\ & (s,t) & \rightarrow & s(P_1-P_0) + t(P_2-P_0) + P_0 \end{array} \]

Then $\mathrm{d}S = \left\|\partial_s\Phi_k \times \partial_t\Phi_k\right\|\mathrm{d}s\mathrm{d}t$. In 1D, it is simply the length of the segment.

Implements GeomCell.

Definition at line 57 of file GeomSimplices.cpp.

◆ computeJacobianMatrix()

template<CepsUInt _Dim>
void GeomSimplex< _Dim >::computeJacobianMatrix ( )
overrideprotectedvirtual

Computes the 3xELEMENT_DIM jacobian matrix.

As the first node of the element will be transported to the origin (0,0) by the geometrical transformation, the columns of the matrix are simply $x_k-x_0$ where $x_k$ is the coordinate of the $k$-th node.

Implements GeomCell.

◆ getMeasure()

CepsReal GeomTetraCell::getMeasure
overridevirtual

Element size: volume for tetrahedron, area for triangle and length for cable.

Implements GeomCell.

Definition at line 37 of file GeomSimplices.cpp.

◆ getNumberOfNodes()

template<CepsUInt _Dim>
CepsUInt GeomSimplex< _Dim >::getNumberOfNodes ( ) const
overridevirtual

number of nodes overriden from HoldsNodes

Implements GeomCell.

◆ initializeNodes()

template<CepsUInt _Dim>
void GeomSimplex< _Dim >::initializeNodes ( GeomNode *const *  nodes,
CepsUInt  nNodes 
)
overrideprivatevirtual

Copy nodes and compute jacobian.

Reimplemented from GeomCell.

◆ operator=()

template<CepsUInt _Dim>
GeomSimplex& GeomSimplex< _Dim >::operator= ( const GeomSimplex< _Dim > &  that)

Copy assignement.

Friends And Related Function Documentation

◆ TestGeomCells

template<CepsUInt _Dim>
friend class TestGeomCells
friend

Definition at line 80 of file GeomSimplex.hpp.


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