Runge-Kutta 4th Order

조회 수: 7 (최근 30일)
peny lin
peny lin 2018년 5월 31일
I have to solve mx"+cx'+kx=kc*[x(t-T)-x(t)] for milling problem, how can I apply Runge-Kutta method. Now the method I use us to calculate the force for each time steps, and x" can be written in x"=(f(t)-kx-cx')/m, and x'(i+1)=x'(i)+x"*dt, where dt is the time step. Then x(i+1)=x(i)+x'*dt. How can I reply Runge-Kutta for this problem. I can get the force at different time step to get k1 k2 k3 k4 for Runge-kutta, then get the x'(i+1)=x(i)+1/6(k1+2*k2+2*k3+k4)? and calculate the x' at different time step for k1 k2 k3 k4 to get x(i)=x(i+1)+1/6(k1+2*k2+2*k3+k4)? Is my idea wrong? Or matlab provide any other better ways to sole the time delay differentiation equation? Thank you very much.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by