Granular.jl

Julia package for granular dynamics simulation
git clone git://src.adamsgaard.dk/Granular.jl
Log | Files | Refs | README | LICENSE

commit 386de01b7b0e7908384d02c1cb52d1a27c98e582
parent cd4e192c01d957b17d2ff205151b214458f1961b
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed,  8 Nov 2017 11:54:19 -0500

decrease size of grain packing in granular example

Diffstat:
Mdocs/src/man/getting_started.md | 6+++---
Mexamples/sedimentation.jl | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/src/man/getting_started.md b/docs/src/man/getting_started.md @@ -284,13 +284,13 @@ julia> sim = Granular.createSimulation(id="sedimentation.jl") ### Creating a pseudo-random grain packing Instead of manually adding grains one by one, we can use the `regularPacking!()` function to add a regular grid of random-sized grains to -the simulation. Below, we specify that we want the grid of grains to be 10 -grains wide along x, and 50 grains tall along y. We also specify the grain +the simulation. Below, we specify that we want the grid of grains to be 7 +grains wide along x, and 25 grains tall along y. We also specify the grain radii to fall between 0.02 and 0.2 m. The sizes will be drawn from a power-law distribution, by default. ```julia-repl -julia> Granular.regularPacking!(sim, [10, 50], 0.02, 0.2) +julia> Granular.regularPacking!(sim, [7, 25], 0.02, 0.2) ``` Since we haven't explicitly set the grain sizes for this example, we can diff --git a/examples/sedimentation.jl b/examples/sedimentation.jl @@ -4,9 +4,9 @@ import Granular #### Create a loose granular assemblage and let it settle at towards -y sim = Granular.createSimulation(id="sedimentation") -# Generate 10 grains along x and 50 grains along y, with radii between 0.2 and +# Generate 10 grains along x and 25 grains along y, with radii between 0.2 and # 1.0 m. -Granular.regularPacking!(sim, [10, 50], 0.02, 0.2) +Granular.regularPacking!(sim, [7, 25], 0.02, 0.2) # Visualize the grain-size distribution Granular.plotGrainSizeDistribution(sim)