tadd comments, mass and spring_stiffness - slidergrid - grid of elastic sliders on a frictional surface
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit e99f679f8b69de849021d65feb2ac5a955d270ba
parent a270ef4ab316d4b52745938eb25ed87749b5fe0a
Author: Anders Damsgaard 
Date:   Tue, 15 Mar 2016 13:45:06 -0700

add comments, mass and spring_stiffness

Diffstat:
  M slider.h                            |      11 ++++++-----

1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/slider.h b/slider.h
t@@ -4,11 +4,12 @@
 #include "typedefs.h"
 
 typedef struct {
-    Float3 pos;  // spatial position
-    Float3 vel;  // spatial velocity
-    Float3 acc;  // spatial acceleration
-    Float3 force;  // sum of forces
-    Float bulk_modulus;  // elastic compressibility
+    Float3 pos;  // spatial position [m]
+    Float3 vel;  // spatial velocity [m/s]
+    Float3 acc;  // spatial acceleration [m/(s*s)]
+    Float3 force;  // sum of forces [N]
+    Float mass;  // mass [kg]
+    Float spring_stiffness;  // elastic compressibility [N/m]
     int neighbors[];  // indexes of sliders this one is bonded to
 } slider;