Simple_runge_kutta_example - Simple Runge-Kutta solution of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Simple Runge-Kutta solution of an ODE J. M. Cimbala, September 2001 The equation to be solved is dy/dt = B - Ay, where in general A and B can be functions of time. The data are plotted on a separate sheet called "plot of y vs t". tstart = deltat = 0.01 y(tstart) = 7.6 ti yi A(t) B(t) Di ta ya Da tb yb Db yc Dc yi+1 7.6 3.82 10-19.03 0.01 7.5-18.67 0.01 7.51-18.68 7.41-18.32 7.41 0.01 7.41 3.82 10-18.32 0.02 7.32-17.97 0.02 7.32-17.98 7.23-17.63 7.23 0.02 7.23 3.82 10-17.63 0.03 7.15-17.3 0.03 7.15-17.3 7.06-16.97 7.06 0.03 7.06 3.82 10-16.97 0.04 6.98-16.65 0.04 6.98-16.65 6.89-16.34 6.89 0.04 6.89 3.82 10-16.34 0.05 6.81-16.02 0.05 6.81-16.03 6.73-15.72 6.73 0.05 6.73 3.82 10-15.72 0.06 6.66-15.42 0.06 6.66-15.43 6.58-15.13 6.58 0.06 6.58 3.82 10-15.13 0.07 6.5-14.84 0.07 6.51-14.85 6.43-14.57 6.43 0.07 6.43 3.82 10-14.57 0.08 6.36-14.29 0.08 6.36-14.29 6.29-14.02 6.29 0.08 6.29 3.82 10-14.02 0.09 6.22-13.75 0.09 6.22-13.76 6.15-13.49 6.15 0.09 6.15 3.82 10-13.5 0.1 6.08-13.24 0.1 6.086....
View Full Document

This note was uploaded on 07/23/2008 for the course ME 33 taught by Professor Cimbala during the Fall '05 term at Pennsylvania State University, University Park.

Page1 / 2

Simple_runge_kutta_example - Simple Runge-Kutta solution of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online