ttemporal.jl - Granular.jl - Julia package for granular dynamics simulation | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
ttemporal.jl (797B) | |
--- | |
1 @info "Testing temporal functionality" | |
2 | |
3 sim = Granular.createSimulation() | |
4 @test_throws ErrorException Granular.setTimeStep!(sim) | |
5 | |
6 Granular.setOutputFileInterval!(sim, 1e-9) | |
7 @test_throws ErrorException Granular.setTotalTime!(sim, 0.) | |
8 @test_throws ErrorException Granular.setCurrentTime!(sim, 0.) | |
9 Granular.setCurrentTime!(sim, 1.) | |
10 @test sim.time ≈ 1.0 | |
11 @test_throws ErrorException Granular.incrementCurrentTime!(sim, 0.) | |
12 Granular.setOutputFileInterval!(sim, 0.) | |
13 Granular.disableOutputFiles!(sim) | |
14 @test_throws ErrorException Granular.checkTimeParameters(sim) | |
15 Granular.addGrainCylindrical!(sim, [.1,.1], 2., 2.) | |
16 sim.grains[1].mass = 0. | |
17 @test_throws ErrorException Granular.setTimeStep!(sim) | |
18 | |
19 sim = Granular.createSimulation() | |
20 sim2 = Granular.createSimulation() | |
21 Granular.compareSimulations(sim, sim2) |