Question: A popular ODE integration method is the Runge - Kutta 4 4 method where, when applied to the ODE: = ( , ) , can
A popular ODE integration method is the RungeKutta method where, when applied to the ODE: can be expressed as follows:
Delta
where the time step size is denoted by Delta and with
Delta Delta
Delta Delta
Delta Delta
In what follows, you will apply that method to the following ODE: with initial value
and with That is the generic function is simply:
Compute the gain factor
as a function of Delta and plot it for in
Determine the range of time step sizes Delta for which the method is stable you may have
to use a root finding method for this
Is the method explicit or implicit? Justify. Recall that an explicit method calculates the
system status at a future time from the currently known system status. An implicit method calculates the system status at a future time from the system statuses at present and future times. If every step is explicit, then the method as a whole is explicit.
Determine the range of time step sizes Delta for which the method does not present spurious oscillations.
Pick sec and write an ODE solver using the RungeKutta method. Pick the simulation duration time to be seconds. Plot the error, at time s between the exact solution and several numerical solutions, as a function of the time step sizes used. The numerical solutions should be obtained using and time steps. The plot should be a loglog plot. Determine the convergence rate of the method ie the slope of that curve
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
