CellModules
MecaCell::ContactSurface< Cell > Struct Template Reference

#include <contactsurface.hpp>

Classes

struct  TargetSurface
 

Public Member Functions

 ContactSurface ()
 
 ContactSurface (ordered_pair< Cell * > c)
 
void update (double dt)
 
void updateInternals ()
 
std::pair< double, double > computeMidpoints (double distanceBtwnCenters)
 
void applyPressureForces (double)
 
void applyAdhesiveForces (double dt)
 

Public Attributes

ordered_pair< Cell * > cells
 
bool pressureEnabled = true
 
bool adhesionEnabled = true
 
bool frictionEnabled = false
 
bool unbreakable = false
 
double adhCoef = 0.5
 
double ADH_DAMPING_RATIO = 0.1
 
double bondMaxL = 5.0
 
double bondReach = 1.0
 
double fixedDamping = 0.0
 
double baseBondStrength = 0.05
 
double MIN_ADH_DIST = 8.0
 
Vec direction
 
std::pair< double, double > midpoint
 
double sqradius = 0
 
double area = 0
 
double adhArea = 0
 
double centersDist = 0
 
double prevCentersDist = 0
 
double prevLinAdhElongation = 0
 
double linAdhElongation = 0
 
double prevFlexAdhElongation = 0
 
double flexAdhElongation = 0
 
bool atRest = false
 
std::pair< TargetSurface, TargetSurfacetargets
 

Static Public Attributes

static constexpr double REST_EPSILON
 

Detailed Description

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

Definition at line 9 of file contactsurface.hpp.

Constructor & Destructor Documentation

◆ ContactSurface() [1/2]

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

Definition at line 62 of file contactsurface.hpp.

◆ ContactSurface() [2/2]

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

Definition at line 63 of file contactsurface.hpp.

Member Function Documentation

◆ applyAdhesiveForces()

template<typename Cell >
void MecaCell::ContactSurface< Cell >::applyAdhesiveForces ( double  dt)
inline

Definition at line 155 of file contactsurface.hpp.

◆ applyPressureForces()

template<typename Cell >
void MecaCell::ContactSurface< Cell >::applyPressureForces ( double  )
inline

Definition at line 143 of file contactsurface.hpp.

◆ computeMidpoints()

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

Definition at line 114 of file contactsurface.hpp.

◆ update()

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

Definition at line 83 of file contactsurface.hpp.

◆ updateInternals()

template<typename Cell >
void MecaCell::ContactSurface< Cell >::updateInternals ( )
inline

Definition at line 94 of file contactsurface.hpp.

Member Data Documentation

◆ ADH_DAMPING_RATIO

template<typename Cell >
double MecaCell::ContactSurface< Cell >::ADH_DAMPING_RATIO = 0.1

Definition at line 22 of file contactsurface.hpp.

◆ adhArea

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

Definition at line 35 of file contactsurface.hpp.

◆ adhCoef

template<typename Cell >
double MecaCell::ContactSurface< Cell >::adhCoef = 0.5

Definition at line 21 of file contactsurface.hpp.

◆ adhesionEnabled

template<typename Cell >
bool MecaCell::ContactSurface< Cell >::adhesionEnabled = true

Definition at line 16 of file contactsurface.hpp.

◆ area

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

Definition at line 35 of file contactsurface.hpp.

◆ atRest

template<typename Cell >
bool MecaCell::ContactSurface< Cell >::atRest = false

Definition at line 45 of file contactsurface.hpp.

◆ baseBondStrength

template<typename Cell >
double MecaCell::ContactSurface< Cell >::baseBondStrength = 0.05

Definition at line 26 of file contactsurface.hpp.

◆ bondMaxL

template<typename Cell >
double MecaCell::ContactSurface< Cell >::bondMaxL = 5.0

Definition at line 23 of file contactsurface.hpp.

◆ bondReach

template<typename Cell >
double MecaCell::ContactSurface< Cell >::bondReach = 1.0

Definition at line 24 of file contactsurface.hpp.

◆ cells

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

Definition at line 10 of file contactsurface.hpp.

◆ centersDist

template<typename Cell >
double MecaCell::ContactSurface< Cell >::centersDist = 0

Definition at line 36 of file contactsurface.hpp.

◆ direction

template<typename Cell >
Vec MecaCell::ContactSurface< Cell >::direction

Definition at line 32 of file contactsurface.hpp.

◆ fixedDamping

template<typename Cell >
double MecaCell::ContactSurface< Cell >::fixedDamping = 0.0

Definition at line 25 of file contactsurface.hpp.

◆ flexAdhElongation

template<typename Cell >
double MecaCell::ContactSurface< Cell >::flexAdhElongation = 0

Definition at line 40 of file contactsurface.hpp.

◆ frictionEnabled

template<typename Cell >
bool MecaCell::ContactSurface< Cell >::frictionEnabled = false

Definition at line 17 of file contactsurface.hpp.

◆ linAdhElongation

template<typename Cell >
double MecaCell::ContactSurface< Cell >::linAdhElongation = 0

Definition at line 37 of file contactsurface.hpp.

◆ midpoint

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

Definition at line 33 of file contactsurface.hpp.

◆ MIN_ADH_DIST

template<typename Cell >
double MecaCell::ContactSurface< Cell >::MIN_ADH_DIST = 8.0

Definition at line 27 of file contactsurface.hpp.

◆ pressureEnabled

template<typename Cell >
bool MecaCell::ContactSurface< Cell >::pressureEnabled = true

Definition at line 15 of file contactsurface.hpp.

◆ prevCentersDist

template<typename Cell >
double MecaCell::ContactSurface< Cell >::prevCentersDist = 0

Definition at line 36 of file contactsurface.hpp.

◆ prevFlexAdhElongation

template<typename Cell >
double MecaCell::ContactSurface< Cell >::prevFlexAdhElongation = 0

Definition at line 40 of file contactsurface.hpp.

◆ prevLinAdhElongation

template<typename Cell >
double MecaCell::ContactSurface< Cell >::prevLinAdhElongation = 0

Definition at line 37 of file contactsurface.hpp.

◆ REST_EPSILON

template<typename Cell >
constexpr double MecaCell::ContactSurface< Cell >::REST_EPSILON
staticconstexpr
Initial value:
=
1e-10

Definition at line 46 of file contactsurface.hpp.

◆ sqradius

template<typename Cell >
double MecaCell::ContactSurface< Cell >::sqradius = 0

Definition at line 34 of file contactsurface.hpp.

◆ targets

template<typename Cell >
std::pair<TargetSurface, TargetSurface> MecaCell::ContactSurface< Cell >::targets

Definition at line 57 of file contactsurface.hpp.

◆ unbreakable

template<typename Cell >
bool MecaCell::ContactSurface< Cell >::unbreakable = false

Definition at line 18 of file contactsurface.hpp.


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