tAdd irregularity and triangular geometry to initial packing - Granular.jl - Ju… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c3949678822a95a6d9f160475141e2388952278b | |
parent f0a582f6c81760b96a9fc9201ac3a614ac89c9a3 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 10 Mar 2019 21:38:30 +0100 | |
Add irregularity and triangular geometry to initial packing | |
Diffstat: | |
M examples/sedimentation.jl | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/examples/sedimentation.jl b/examples/sedimentation.jl | |
t@@ -6,7 +6,9 @@ sim = Granular.createSimulation(id="sedimentation") | |
# Generate 10 grains along x and 25 grains along y, with radii between 0.2 and | |
# 1.0 m. | |
-Granular.regularPacking!(sim, [7, 25], 0.02, 0.2) | |
+Granular.regularPacking!(sim, [7, 25], 0.02, 0.2, | |
+ tiling="triangular", | |
+ padding_factor=0.1) | |
# Visualize the grain-size distribution | |
#Granular.plotGrainSizeDistribution(sim) |