필터 지우기
필터 지우기

Solving 12 Simultaneous, Coupled second order differential equations

조회 수: 1 (최근 30일)
Brandon Johnson
Brandon Johnson 2015년 9월 9일
편집: Brandon Johnson 2015년 9월 9일
I need help writing a program to simulate the motion of 2 bodies in space under the influence of the force of gravitation of the other. I intend to give the program the initial conditions R1,R2,V1, and V2 (position and velocity of each body) in x, y, z components. The general form of the ODEs that I need to solve are: dR/dt = V
dV/dt = Gmr/magnitude(r)^3 Where r = R2 - R1 (in component form) So I need to figure out a way to plug 12 of these in (6 dRs and 6 dVs where R1 and R2 are broken into x, y, z components) and solve for the new R1, R2, V1, and V2 so that the process can be iterated.
I've spent some time away from MATLAB so I'm quite rusty on how to do something like this. I think I can use ode 45 but I'm not entirely sure.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by