How can I overcome errors in RK4 due to linearly interpolated data?

  • Context: Graduate 
  • Thread starter Thread starter Liferider
  • Start date Start date
  • Tags Tags
    Data Discrete Rk4
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Liferider
Messages
41
Reaction score
0
I am simulating an ODE where the differential function is a function of sampled data points and are having trouble obtaining data in between sampled points (for the step computations of RK4). The first thing that I tried was to linearly interpolate the data, but that introduced large accumulating errors in the simulation. Is there a way to circumvent this?

One possibility of course, is to use Euler integration with the appropriate step length, but it would be nice to use a higher order scheme if possible.
 
Physics news on Phys.org
Don't bother, just very sensitive regarding step length.