On modifying the damping force in source code
Hi there,
I am changing the damping force formula in the source code, and I want the damping force to be proportional to incidentVn**1.5 instead of incidentVn. Am I correct as follows?
Thanks!
double cn = Cn_crit*
/* Add normal viscous component if damping is included */
Vector3r incidentVn_
double sign_1=
double sign_2=
double sign_3=
#Here Sgn is a function to return the sign (1 or minus 1)
incidentVn_
incidentVn_
incidentVn_
#Here I change the component of the Vector3r respectively
phys->
/* Add normal viscous component if damping is included */
phys->normalForce -= phys->normalVis
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: