comparison +time/Rungekutta4SecondOrder.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 ae905a11e32c
children
comparison
equal deleted inserted replaced
845:1e057b0f2fed 846:c6fcee3fcf1b
97 vt = obj.w(end/2+1:end); 97 vt = obj.w(end/2+1:end);
98 t = obj.t; 98 t = obj.t;
99 end 99 end
100 100
101 function obj = step(obj) 101 function obj = step(obj)
102 obj.w = time.rk4.rungekutta_4(obj.w, obj.t, obj.k, obj.F); 102 obj.w = time.rk.rungekutta_4(obj.w, obj.t, obj.k, obj.F);
103 obj.t = obj.t + obj.k; 103 obj.t = obj.t + obj.k;
104 obj.n = obj.n + 1; 104 obj.n = obj.n + 1;
105 end 105 end
106 end 106 end
107 107