Mercurial > repos > public > sbplib
comparison +time/Rungekutta4proper.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 | e1a05acc1b5d |
children |
comparison
equal
deleted
inserted
replaced
845:1e057b0f2fed | 846:c6fcee3fcf1b |
---|---|
24 v = obj.v; | 24 v = obj.v; |
25 t = obj.t; | 25 t = obj.t; |
26 end | 26 end |
27 | 27 |
28 function obj = step(obj) | 28 function obj = step(obj) |
29 obj.v = time.rk4.rungekutta_4(obj.v, obj.t, obj.k, obj.F); | 29 obj.v = time.rk.rungekutta_4(obj.v, obj.t, obj.k, obj.F); |
30 obj.t = obj.t + obj.k; | 30 obj.t = obj.t + obj.k; |
31 obj.n = obj.n + 1; | 31 obj.n = obj.n + 1; |
32 end | 32 end |
33 end | 33 end |
34 | 34 |