tadd cell size calculation - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 35fe4632d0ad9f2bb021b669f33567d828294a9f
DIR parent e7ff2bb38671081bddefa9147276d4852c318c8f
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 13 Aug 2014 14:52:48 +0200
add cell size calculation
Diffstat:
M python/diffusivity-starter.py | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/python/diffusivity-starter.py b/python/diffusivity-starter.py
t@@ -50,6 +50,7 @@ for sigma0_str in sys.argv[4:]:
sim.initTemporal(total = 5.0, file_dt = 0.01, epsilon=0.07)
# Fix lowermost particles
+ dz = sim.L[2]/sim.num[2]
I = numpy.nonzero(sim.x[:,2] < 1.5*dz)
sim.fixvel[I] = 1