CellModules
MecaCell::ElasticConnection< Cell > Struct Template Reference

An Elastic Connection is a connection between two cells. More...

#include <elasticconnection.hpp>

Public Member Functions

 ElasticConnection ()
 
 ElasticConnection (ordered_pair< Cell * > c)
 
void updateDirection ()
 
std::pair< double, double > computeMidpoints ()
 
void updateCollisionForces ()
 
void updateAdhesionForces (double)
 
void init ()
 
void update (double dt)
 

Public Attributes

ordered_pair< Cell * > cells
 
double area = 0
 
double adhArea = 0
 
double overlap = 0
 
double adhOverlap = 0
 
double bondBreakDist = 2.0
 
std::pair< double, double > midpoint
 
Vector3D direction
 
double prevDist
 
double dist
 
std::pair< Joint, Jointflex
 
std::pair< Joint, Jointtors
 
bool adhesionEnabled = false
 
bool fixedAdhesion = false
 

Detailed Description

template<typename Cell>
struct MecaCell::ElasticConnection< Cell >

An Elastic Connection is a connection between two cells.

Template Parameters
Cella connectable cell class with an elastic body.

Definition at line 15 of file elasticconnection.hpp.

Constructor & Destructor Documentation

◆ ElasticConnection() [1/2]

template<typename Cell >
MecaCell::ElasticConnection< Cell >::ElasticConnection ( )
inline

Definition at line 30 of file elasticconnection.hpp.

◆ ElasticConnection() [2/2]

template<typename Cell >
MecaCell::ElasticConnection< Cell >::ElasticConnection ( ordered_pair< Cell * >  c)
inline

Definition at line 31 of file elasticconnection.hpp.

Member Function Documentation

◆ computeMidpoints()

template<typename Cell >
std::pair< double, double > MecaCell::ElasticConnection< Cell >::computeMidpoints ( )
inline

Definition at line 41 of file elasticconnection.hpp.

◆ init()

template<typename Cell >
void MecaCell::ElasticConnection< Cell >::init ( )
inline

Definition at line 113 of file elasticconnection.hpp.

◆ update()

template<typename Cell >
void MecaCell::ElasticConnection< Cell >::update ( double  dt)
inline

Definition at line 117 of file elasticconnection.hpp.

◆ updateAdhesionForces()

template<typename Cell >
void MecaCell::ElasticConnection< Cell >::updateAdhesionForces ( double  )
inline

Definition at line 81 of file elasticconnection.hpp.

◆ updateCollisionForces()

template<typename Cell >
void MecaCell::ElasticConnection< Cell >::updateCollisionForces ( )
inline

Definition at line 63 of file elasticconnection.hpp.

◆ updateDirection()

template<typename Cell >
void MecaCell::ElasticConnection< Cell >::updateDirection ( )
inline

Definition at line 33 of file elasticconnection.hpp.

Member Data Documentation

◆ adhArea

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::adhArea = 0

Definition at line 18 of file elasticconnection.hpp.

◆ adhesionEnabled

template<typename Cell >
bool MecaCell::ElasticConnection< Cell >::adhesionEnabled = false

Definition at line 27 of file elasticconnection.hpp.

◆ adhOverlap

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::adhOverlap = 0

Definition at line 19 of file elasticconnection.hpp.

◆ area

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::area = 0

Definition at line 17 of file elasticconnection.hpp.

◆ bondBreakDist

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::bondBreakDist = 2.0

Definition at line 20 of file elasticconnection.hpp.

◆ cells

template<typename Cell >
ordered_pair<Cell *> MecaCell::ElasticConnection< Cell >::cells

Definition at line 16 of file elasticconnection.hpp.

◆ direction

template<typename Cell >
Vector3D MecaCell::ElasticConnection< Cell >::direction

Definition at line 23 of file elasticconnection.hpp.

◆ dist

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::dist

Definition at line 25 of file elasticconnection.hpp.

◆ fixedAdhesion

template<typename Cell >
bool MecaCell::ElasticConnection< Cell >::fixedAdhesion = false

Definition at line 28 of file elasticconnection.hpp.

◆ flex

template<typename Cell >
std::pair<Joint, Joint> MecaCell::ElasticConnection< Cell >::flex

Definition at line 26 of file elasticconnection.hpp.

◆ midpoint

template<typename Cell >
std::pair<double, double> MecaCell::ElasticConnection< Cell >::midpoint

Definition at line 22 of file elasticconnection.hpp.

◆ overlap

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::overlap = 0

Definition at line 19 of file elasticconnection.hpp.

◆ prevDist

template<typename Cell >
double MecaCell::ElasticConnection< Cell >::prevDist

Definition at line 24 of file elasticconnection.hpp.

◆ tors

template<typename Cell >
std::pair<Joint, Joint> MecaCell::ElasticConnection< Cell >::tors

Definition at line 26 of file elasticconnection.hpp.


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