tadd more DOF - slidergrid - grid of elastic sliders on a frictional surface
HTML git clone git://src.adamsgaard.dk/slidergrid
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cc654a7b73a8bdb1f7771af8e6aa946262d7e0bd
DIR parent d7ec81af4ae23fc6bc3614beb3f2f80dab6320af
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 15 Mar 2016 12:58:32 -0700
add more DOF
Diffstat:
M main.c | 1 -
M slider.h | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)
---
DIR diff --git a/main.c b/main.c
t@@ -12,7 +12,6 @@ int main(int argc, char** argv)
slider* sliders = create_regular_slider_grid(nx, ny, nz, 1.0, 1.0, 1.0);
- print_slider_position(0);
free(sliders);
return EXIT_SUCCESS;
DIR diff --git a/slider.h b/slider.h
t@@ -5,6 +5,9 @@
typedef struct {
v3 pos; // spatial position
+ v3 vel; // spatial velocity
+ v3 acc; // spatial acceleration
+ v3 force; // sum of forces
Float bulk_modulus; // elastic compressibility
int neighbors[]; // indexes of sliders this one is bonded to
} slider;