Granular.jl

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

commit 2f2716c0592b904d8af0f66c2b8b389b3d276f46
parent b1eae73228ab53784fd53f97f9c76688902540aa
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Thu,  9 Nov 2017 07:21:50 -0600

remove PyPlot requirement and update documentation accordingly

Diffstat:
M.travis.yml | 2+-
MREQUIRE | 1-
Mdocs/src/man/getting_started.md | 3++-
Mexamples/sedimentation.jl | 2+-
Mexamples/shear.jl | 2+-
5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -27,7 +27,7 @@ before_script: script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - julia -e 'Pkg.clone(pwd()); Pkg.build("Granular"); ENV["PYTHON"]=""; Pkg.build("PyCall"); Pkg.build("PyPlot")'; julia -e 'Pkg.test("Granular"; coverage=true)'; + - julia -e 'Pkg.clone(pwd()); Pkg.build("Granular"); Pkg.test("Granular"; coverage=true)'; deploy: - provider: script diff --git a/REQUIRE b/REQUIRE @@ -2,7 +2,6 @@ julia 0.6 WriteVTK NetCDF Documenter -PyPlot BinDeps 0.2.12- Compat 0.9.1 @osx Homebrew 0.0.4- diff --git a/docs/src/man/getting_started.md b/docs/src/man/getting_started.md @@ -301,7 +301,8 @@ julia> Granular.regularPacking!(sim, [7, 25], 0.02, 0.2) ``` Since we haven't explicitly set the grain sizes for this example, we can -inspect the values by plotting a histogram of sizes: +inspect the values by plotting a histogram of sizes (only works if the `PyPlot` +package is installed with `Pkg.add("PyPlot")`: ```julia-repl julia> Granular.plotGrainSizeDistribution(sim) diff --git a/examples/sedimentation.jl b/examples/sedimentation.jl @@ -9,7 +9,7 @@ sim = Granular.createSimulation(id="sedimentation") Granular.regularPacking!(sim, [7, 25], 0.02, 0.2) # Visualize the grain-size distribution -Granular.plotGrainSizeDistribution(sim) +#Granular.plotGrainSizeDistribution(sim) # Create a grid for contact searching spanning the extent of the grains in the # simulation diff --git a/examples/shear.jl b/examples/shear.jl @@ -36,7 +36,7 @@ Granular.setTotalTime!(sim, 30.) Granular.setOutputFileInterval!(sim, .2) # Visualize the grain-size distribution -Granular.plotGrainSizeDistribution(sim) +#Granular.plotGrainSizeDistribution(sim) # Start the simulation Granular.run!(sim)