- #1
member 428835
Hi PF!
I am trying to compute ##d_t y = d_x u^2##. Following standard RK4 procedure outlined by wikipedia as https://en.wikipedia.org/wiki/Runge–Kutta_methods
I am forced to compute ##k_2##. If the RHS is analytic, the fractional stepping is direct. However, the RHS gradient is finite differenced: ##(u_{i+1}^2-u_{i-1}^2)/\Delta x##. Then how would you compute ##k_2##?
Thanks!
I am trying to compute ##d_t y = d_x u^2##. Following standard RK4 procedure outlined by wikipedia as https://en.wikipedia.org/wiki/Runge–Kutta_methods
I am forced to compute ##k_2##. If the RHS is analytic, the fractional stepping is direct. However, the RHS gradient is finite differenced: ##(u_{i+1}^2-u_{i-1}^2)/\Delta x##. Then how would you compute ##k_2##?
Thanks!
Last edited by a moderator: