commit 43392ce28ad0683d549a4d3827bb3026eba66266
parent 842f2d61d648ee12d7f78d7015f824a411b3be11
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 9 May 2018 15:32:43 -0400
Test writing of atmosphere grid
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/test/vtk.jl b/test/vtk.jl
@@ -104,17 +104,10 @@ end
Compat.@info "Writing simple simulation to VTK file"
sim = Granular.createSimulation(id="test")
-Granular.addGrainCylindrical!(sim, [ 0., 0.], 10., 1., verbose=false)
-Granular.addGrainCylindrical!(sim, [18., 0.], 10., 1., verbose=false)
-sim.ocean = Granular.createRegularOceanGrid([10, 20, 5], [10., 25., 2.])
-Granular.findContacts!(sim, method="all to all")
-Granular.writeVTK(sim, verbose=false)
-
-Compat.@info "Writing simple simulation to VTK file"
-sim = Granular.createSimulation(id="test")
Granular.addGrainCylindrical!(sim, [ 0., 0.], 10., 1., youngs_modulus=0., verbose=false)
Granular.addGrainCylindrical!(sim, [18., 0.], 10., 1., youngs_modulus=0., verbose=false)
-sim.ocean = Granular.createRegularOceanGrid([10, 20, 5], [10., 25., 2.])
+sim.ocean = Granular.createRegularOceanGrid([10, 20, 5], [10., 25., 2.])
+sim.atmosphere = Granular.createRegularAtmosphereGrid([10, 20, 5], [10., 25., 2.])
Granular.findContacts!(sim, method="all to all")
Granular.writeVTK(sim, verbose=false)