tdeformationdepth.py: update to newer sphere syntax - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit ff042ebfbb9eb6ad2a5640e88b474a2dd3ee3eac
(DIR) parent 29ef77af0b602c4b4402f6c86b0673e266ebfe39
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 17 Apr 2022 10:41:36 +0200
deformationdepth.py: update to newer sphere syntax
Diffstat:
M python/deformationdepth.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/python/deformationdepth.py b/python/deformationdepth.py
t@@ -4,7 +4,7 @@
import sphere
### EXPERIMENT SETUP ###
-initialization = True
+initialization = False
consolidation = True
shearing_norot = True
shearing = False
t@@ -72,14 +72,14 @@ for N in Nlist:
"-cons-N{}".format(N))
# Read last output file of initialization step
- lastf = status(sim_id + "-init")
+ lastf = sphere.status(sim_id + "-init")
cons.readbin("../output/" + sim_id + "-init.output{:0=5}.bin".format(lastf), verbose=False)
# Periodic x and y boundaries
cons.periodicBoundariesXY()
# Setup consolidation experiment
- cons.consolidate(normal_stress = N, periodic = init.periodic)
+ cons.consolidate(normal_stress = N)
cons.adaptiveGrid()
t@@ -120,7 +120,7 @@ for N in Nlist:
"-shear_nrt-N{}".format(N))
# Read last output file of initialization step
- lastf = status(sim_id + "-cons-N{}".format(N))
+ lastf = sphere.status(sim_id + "-cons-N{}".format(N))
shear_nrt.readbin("../output/" + sim_id +
"-cons-N{}.output{:0=5}.bin".format(N, lastf),
verbose = False)
t@@ -129,7 +129,7 @@ for N in Nlist:
shear_nrt.periodicBoundariesXY()
# Setup shear_nrt experiment
- shear_nrt.shear(shear_strain_rate = 0.05, periodic = init.periodic)
+ shear_nrt.shear(shear_strain_rate = 0.05)
shear_nrt.adaptiveGrid()
# Set duration of simulation
t@@ -163,7 +163,7 @@ for N in Nlist:
"-shear-N{}".format(N))
# Read last output file of initialization step
- lastf = status(sim_id + "-cons-N{}".format(N))
+ lastf = sphere.status(sim_id + "-cons-N{}".format(N))
shear.readbin("../output/" + sim_id +
"-cons-N{}.output{:0=5}.bin".format(N, lastf),
verbose = False)
t@@ -172,7 +172,7 @@ for N in Nlist:
shear.periodicBoundariesXY()
# Setup shear experiment
- shear.shear(shear_strain_rate = 0.05, periodic = init.periodic)
+ shear.shear(shear_strain_rate = 0.05)
shear.adaptiveGrid()
# Set duration of simulation