Mercurial > repos > public > sbplib
comparison +time/Rk4SecondOrderNonlin.m @ 846:c6fcee3fcf1b feature/burgers1d
Add generalized RungeKutta and RungeKuttaRV class which extracts its coefficients from a butcher tableau, specified on the scheme.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 20 Sep 2018 17:51:19 +0200 |
parents | cd2e28c5ecd2 |
children |
comparison
equal
deleted
inserted
replaced
845:1e057b0f2fed | 846:c6fcee3fcf1b |
---|---|
59 vt = obj.w(end/2+1:end); | 59 vt = obj.w(end/2+1:end); |
60 t = obj.t; | 60 t = obj.t; |
61 end | 61 end |
62 | 62 |
63 function obj = step(obj) | 63 function obj = step(obj) |
64 obj.w = time.rk4.rungekutta_4(obj.w, obj.t, obj.k, obj.F); | 64 obj.w = time.rk.rungekutta_4(obj.w, obj.t, obj.k, obj.F); |
65 obj.t = obj.t + obj.k; | 65 obj.t = obj.t + obj.k; |
66 obj.n = obj.n + 1; | 66 obj.n = obj.n + 1; |
67 end | 67 end |
68 end | 68 end |
69 | 69 |