70 likes | 208 Views
P lasma A pplication M odeling, POSTECH. Solve ODEs by the Euler method using Frotran (9-3). J.H. Kang and J.K. Lee. 2005. 10. 04. Solve the following set of first-order ODEs by the forward Euler method with and :. P lasma A pplication
E N D
Plasma Application Modeling, POSTECH Solve ODEs by the Euler method using Frotran (9-3) J.H. Kang and J.K. Lee 2005. 10. 04
Solve the following set of first-order ODEs by the forward Euler method with and : Plasma Application Modeling, POSTECH 9-3
Plasma Application Modeling, POSTECH Exact Solution Exact solution
Plasma Application Modeling, POSTECH Code subroutine ode(y0,z0,y,z) real y0,z0 real y(1600),z(1600) real dx integer N common /a/ N,dx y(1) = y0 z(1) = z0 do 130 i=2,N y(i) = y(i-1) + dx*z(i-1) z(i) = z(i-1) - dx*y(i-1) 130 continue end
Plasma Application Modeling, POSTECH Result (1) - Solution Error
Plasma Application Modeling, POSTECH Result (2) - Solution Error