Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix dynamic wall position - sphere - GPU-based 3D discrete element method algo…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 4bc599379dd9e96126e869a43c6f1fe54de039d5
parent 1125a45ce5ac8b6a68c1331db973d914cbd4a11c
Author: Anders Damsgaard <[email protected]>
Date: Thu, 19 Jun 2014 09:59:42 +0200
fix dynamic wall position
Diffstat:
M python/shortening.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python/shortening.py b/python/shortening.py
t@@ -23,6 +23,9 @@ grid = numpy.array((
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
))
t@@ -63,7 +66,6 @@ sim.writeVTK()
print(sim.np[0])
-'''
## Relaxation
# Choose the tangential contact model
# 1) Visco-frictional (somewhat incorrect, fast computations)
t@@ -76,6 +78,7 @@ sim.contactmodel[0] = 2
sim.g[1] = -9.81
sim.periodicBoundariesX()
+sim.uniaxialStrainRate(wvel = 0.0)
# Set duration of simulation, automatically determine timestep, etc.
sim.initTemporal(total=3.0, file_dt = 0.1)
t@@ -84,9 +87,7 @@ sim.zeroKinematics()
sim.run(dry=True)
sim.run()
sim.writeVTKall()
-'''
-'''
## Shortening
sim.readlast()
sim.initTemporal(current=0.0, total=5.0, file_dt = 0.01)
t@@ -98,4 +99,3 @@ sim.uniaxialStrainRate(wvel = compressional_strain*Lx/sim.ti…
sim.run(dry=True)
sim.run()
sim.writeVTKall()
-'''
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.