Skip to content

Commit

Permalink
use FBDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 27, 2024
1 parent 9e0fcef commit 2c1085b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Relative and absolute tolerance: $1.0^{-6}$. CPU: Ryzen 9 7950X.
|Non-linear Spring damper (3) | 49 | 83 | 0.64 | 20 |
|ditto with callbacks (3b, 3c) | 58 | 103 | 0.8 | 31 |
|swinging tether, 5 segments (5) | 105 | 150 | 2.9 | 47 |
|Dyneema tether, reeling out (6) | 121 | 160 | 4.3 | 9300 |
|Dyneema tether, reeling out (6) | 121 | 160 | 2.1 | 9300 |
|ditto with callbacks (6c) | 167 | | 4.3 | |
|Dyneema, reeling out with drag (7) | 169 | | 1.9 | |

Expand Down
3 changes: 2 additions & 1 deletion src/Tether_06.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ tspan = (0.0, duration)
ts = 0:dt:duration

prob = ODEProblem(simple_sys, nothing, tspan)
@time sol = solve(prob, Rodas5(), dt=dt, abstol=tol, reltol=tol, saveat=ts)
solve(prob, FBDF(), dt=dt, abstol=tol, reltol=tol, saveat=ts)
@time sol = solve(prob, FBDF(), dt=dt, abstol=tol, reltol=tol, saveat=ts)

# plotting the result
function play()
Expand Down

0 comments on commit 2c1085b

Please sign in to comment.