Mercurial > repos > public > sbplib
comparison +time/Rungekutta4proper.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | e1a05acc1b5d |
children | c6fcee3fcf1b 8894e9c49e40 |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
8 n | 8 n |
9 end | 9 end |
10 | 10 |
11 | 11 |
12 methods | 12 methods |
13 % Timesteps v_t = F(v,t), using RK4 fromt t = t0 with timestep k and initial conditions v = v0 | |
13 function obj = Rungekutta4proper(F, k, t0, v0) | 14 function obj = Rungekutta4proper(F, k, t0, v0) |
14 obj.F = F; | 15 obj.F = F; |
15 obj.k = k; | 16 obj.k = k; |
16 obj.t = t0; | 17 obj.t = t0; |
17 obj.v = v0; | 18 obj.v = v0; |