Introduction
Introduction Statistics Contact Development Disclaimer Help
tadd more DOF - slidergrid - grid of elastic sliders on a frictional surface
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit cc654a7b73a8bdb1f7771af8e6aa946262d7e0bd
parent d7ec81af4ae23fc6bc3614beb3f2f80dab6320af
Author: Anders Damsgaard <[email protected]>
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(-)
---
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;
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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.