comparison +time/Rungekutta4.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 ef5c9870f386
children
comparison
equal deleted inserted replaced
845:1e057b0f2fed 846:c6fcee3fcf1b
37 v = obj.v; 37 v = obj.v;
38 t = obj.t; 38 t = obj.t;
39 end 39 end
40 40
41 function obj = step(obj) 41 function obj = step(obj)
42 obj.v = time.rk4.rungekutta_4(obj.v, obj.t, obj.k, obj.F); 42 obj.v = time.rk.rungekutta_4(obj.v, obj.t, obj.k, obj.F);
43 obj.t = obj.t + obj.k; 43 obj.t = obj.t + obj.k;
44 obj.n = obj.n + 1; 44 obj.n = obj.n + 1;
45 end 45 end
46 end 46 end
47 47