Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdded fluid shear test - sphere - GPU-based 3D discrete element method algorit…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 980a99ca05ed04ff9cb51ed7fecef8bd6fa6f554
parent 874be72bf7a0fa969d777e4ad5e24061e6c7047a
Author: Anders Damsgaard <[email protected]>
Date: Tue, 1 Apr 2014 09:21:12 +0200
Added fluid shear test
Diffstat:
A python/fluidshear.py | 42 +++++++++++++++++++++++++++++…
1 file changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/python/fluidshear.py b/python/fluidshear.py
t@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+
+import sphere
+
+sid = 'fluidshear'
+
+## Initialization from loose packing to a gravitationally collapsed state
+## without fluids
+sim = sphere.sim(sid + '-init', np = 2400, fluid = False)
+#sim.cleanup()
+sim.radius[:] = 0.05
+sim.initRandomGridPos(gridnum = [12, 12, 9000])
+sim.initTemporal(total = 5.0, file_dt = 0.05)
+sim.g[2] = -9.81
+sim.run(dry=True)
+#sim.run()
+#sim.writeVTKall()
+
+## Consolidation from a top wall without fluids
+sim.readlast()
+sim.sid = sid + '-cons'
+sim.adjustUpperWall()
+sim.consolidate(normal_stress = 10.0e3)
+#sim.initFluid(mu = 17.87e-4, p = 1.0e5, hydrostatic = True) # mu = water at …
+sim.initTemporal(total = 1.0, file_dt = 0.01)
+sim.run(dry=True)
+#sim.run()
+#sim.writeVTKall()
+sim.visualize('walls')
+
+## Shear with fluids
+sim.readlast()
+sim.sid = sid + '-shear'
+sim.shear()
+sim.fluid = True
+sim.initFluid(mu = 17.87e-4, p = 1.0e5, hydrostatic = True)
+sim.bc_bot[0] = 1 # Neumann BC
+sim.initTemporal(total = 1.0, file_dt = 0.01)
+sim.run(dry=True)
+sim.run()
+sim.writeVTKall()
+sim.visualize('shear')
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.