| tdo not open png files, add perturbation - slidergrid - grid of elastic sliders… | |
| git clone git://src.adamsgaard.dk/slidergrid | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 5420c99b87bf0d3a043aaf7d8ad2ba6dc972bfda | |
| parent 2148944e1fe65b0eec1d0179e0ec41eb21f54eca | |
| Author: Anders Damsgaard <[email protected]> | |
| Date: Thu, 17 Mar 2016 11:25:26 -0700 | |
| do not open png files, add perturbation | |
| Diffstat: | |
| M plot_output.py | 2 +- | |
| M test.c | 4 +++- | |
| 2 files changed, 4 insertions(+), 2 deletions(-) | |
| --- | |
| diff --git a/plot_output.py b/plot_output.py | |
| t@@ -39,7 +39,7 @@ class sgvis: | |
| def plot_all_sliders(self): | |
| for filename in os.listdir(self.folder): | |
| - if 'sliders' in filename: | |
| + if 'sliders' in filename and '.png' not in filename: | |
| self.read_sliders(filename) | |
| self.plot_sliders() | |
| diff --git a/test.c b/test.c | |
| t@@ -11,7 +11,7 @@ simulation setup_simulation() | |
| // initialize grid of sliders | |
| int nx = 4; | |
| - int ny = 4; | |
| + int ny = 1; | |
| int nz = 1; | |
| sim.N = nx*ny*nz; | |
| sim.sliders = create_regular_slider_grid(nx, ny, nz, 1.0, 1.0, 1.0); | |
| t@@ -26,6 +26,8 @@ simulation setup_simulation() | |
| sim.sliders[i].bond_parallel_stiffness = 1.0e5; | |
| } | |
| + sim.sliders[i].vel.x = 1.0; | |
| + | |
| // set temporal parameters | |
| sim.time = 0.0; | |
| sim.time_end = 1.0; |