Mercurial > repos > public > sbplib
comparison +time/Rungekutta.m @ 847:1c6f1595bb94 feature/burgers1d
Clean up in RK time stepper schemes
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 20 Sep 2018 18:36:45 +0200 |
parents | c6fcee3fcf1b |
children | 5b180c76578e |
comparison
equal
deleted
inserted
replaced
846:c6fcee3fcf1b | 847:1c6f1595bb94 |
---|---|
11 | 11 |
12 methods | 12 methods |
13 % Timesteps v_t = F(v,t), using RK with specfied order from t = t0 with | 13 % Timesteps v_t = F(v,t), using RK with specfied order from t = t0 with |
14 % timestep k and initial conditions v = v0 | 14 % timestep k and initial conditions v = v0 |
15 function obj = Rungekutta(F, k, t0, v0, order) | 15 function obj = Rungekutta(F, k, t0, v0, order) |
16 default_arg('order','4'); | 16 default_arg('order',4); |
17 obj.F = F; | 17 obj.F = F; |
18 obj.k = k; | 18 obj.k = k; |
19 obj.t = t0; | 19 obj.t = t0; |
20 obj.v = v0; | 20 obj.v = v0; |
21 obj.n = 0; | 21 obj.n = 0; |