CellModules
|
A Spring Connection is a connection between two cells that aims to models both attractive (for adhesion) and repulsive (for collision) forces. It can be seen as composed of 4 dynamically updated mass-spring-damper systems (which can also be seen as a simplified Euler-Bernouilli beam system): More...
#include <springconnection.hpp>
Public Member Functions | |
SpringConnection () | |
SpringConnection (ordered_pair< Cell * > c) | |
std::pair< double, double > | computeMidpoints (double distanceBtwnCenters) |
void | updateDirection () |
void | updateCollisionParams () |
void | updateAdhesionParams () |
void | initJoints () |
void | updateTorsParams () |
void | updateFlexParams () |
void | init () |
template<int n> | |
void | updateJointsForces (double dt) |
void | update (double dt) |
Public Attributes | |
double | COLLISION_DAMPING_RATIO = 0.5 |
double | ADH_DAMPING_RATIO = 1.0 |
double | ANG_ADH_COEF = 10.0 |
double | ADH_CONSTANT = 1.0 |
double | MAX_TS_INCL |
ordered_pair< Cell * > | cells |
Spring | collision |
Spring | adhesion |
std::pair< double, double > | midpoint |
double | sqradius = 0 |
double | area = 0 |
double | adhArea = 0 |
Vector3D | direction |
double | dist |
std::pair< Joint, Joint > | flex |
std::pair< Joint, Joint > | tors |
bool | adhesionEnabled = true |
bool | frictionEnabled = false |
bool | flexEnabled = false |
bool | torsEnabled = false |
bool | unbreakable = false |
double | adhCoef = 0.5 |
A Spring Connection is a connection between two cells that aims to models both attractive (for adhesion) and repulsive (for collision) forces. It can be seen as composed of 4 dynamically updated mass-spring-damper systems (which can also be seen as a simplified Euler-Bernouilli beam system):
Cell | a connectable cell class. Required methods for Cell:
|
Definition at line 35 of file springconnection.hpp.
|
inline |
Definition at line 57 of file springconnection.hpp.
|
inline |
Definition at line 58 of file springconnection.hpp.
|
inline |
Definition at line 60 of file springconnection.hpp.
|
inline |
Definition at line 171 of file springconnection.hpp.
|
inline |
Definition at line 124 of file springconnection.hpp.
|
inline |
Definition at line 238 of file springconnection.hpp.
|
inline |
Definition at line 106 of file springconnection.hpp.
|
inline |
Definition at line 89 of file springconnection.hpp.
|
inline |
Definition at line 82 of file springconnection.hpp.
|
inline |
Definition at line 153 of file springconnection.hpp.
|
inline |
Definition at line 184 of file springconnection.hpp.
|
inline |
Definition at line 139 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::ADH_CONSTANT = 1.0 |
Definition at line 39 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::ADH_DAMPING_RATIO = 1.0 |
Definition at line 37 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::adhArea = 0 |
Definition at line 49 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::adhCoef = 0.5 |
Definition at line 55 of file springconnection.hpp.
Spring MecaCell::SpringConnection< Cell >::adhesion |
Definition at line 45 of file springconnection.hpp.
bool MecaCell::SpringConnection< Cell >::adhesionEnabled = true |
Definition at line 53 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::ANG_ADH_COEF = 10.0 |
Definition at line 38 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::area = 0 |
Definition at line 49 of file springconnection.hpp.
ordered_pair<Cell *> MecaCell::SpringConnection< Cell >::cells |
Definition at line 43 of file springconnection.hpp.
Spring MecaCell::SpringConnection< Cell >::collision |
Definition at line 44 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::COLLISION_DAMPING_RATIO = 0.5 |
Definition at line 36 of file springconnection.hpp.
Vector3D MecaCell::SpringConnection< Cell >::direction |
Definition at line 50 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::dist |
Definition at line 51 of file springconnection.hpp.
std::pair<Joint, Joint> MecaCell::SpringConnection< Cell >::flex |
Definition at line 52 of file springconnection.hpp.
bool MecaCell::SpringConnection< Cell >::flexEnabled = false |
Definition at line 53 of file springconnection.hpp.
bool MecaCell::SpringConnection< Cell >::frictionEnabled = false |
Definition at line 53 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::MAX_TS_INCL |
Definition at line 40 of file springconnection.hpp.
std::pair<double, double> MecaCell::SpringConnection< Cell >::midpoint |
Definition at line 47 of file springconnection.hpp.
double MecaCell::SpringConnection< Cell >::sqradius = 0 |
Definition at line 48 of file springconnection.hpp.
std::pair<Joint, Joint> MecaCell::SpringConnection< Cell >::tors |
Definition at line 52 of file springconnection.hpp.
bool MecaCell::SpringConnection< Cell >::torsEnabled = false |
Definition at line 54 of file springconnection.hpp.
bool MecaCell::SpringConnection< Cell >::unbreakable = false |
Definition at line 54 of file springconnection.hpp.