14.4: Celestial Mechanics

Physical Modeling in MATLAB · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    14.4: Celestial Mechanics

    Celestial mechanics describes how objects move in outer space. If you did Section 11.2, you simulated the Earth being pulled toward the Sun in one dimension. Now we’ll simulate the Earth orbiting the Sun in two dimensions.

    To keep things simple, we’ll consider only the effect of the Sun on the Earth and ignore the effect of the Earth on the Sun. So we’ll place the Sun at the origin and use a spatial vector, \(\textbf{P}\), to represent the position of the Earth relative to the Sun.

    Given the mass of the Sun, \(m_{1}\), and the mass of the Earth, \(m_{2}\), the gravitational force between them is

    \[\textbf{F}_\mathrm{g} = -G \frac{m_1 m_2}{r^2} \hat{\textbf{P}}\notag\]where \(G\) is the universal gravitational constant (see https://greenteapress.com/matlab/gravity), \(r\) is the distance of the Earth from the Sun, and \(\hat{\textbf{P}}\) is a unit vector in the direction of \(\textbf{P}\).

    Exercise 14.4

    Write a simulation of the Earth orbiting the Sun. You can look up the orbital velocity of the Earth or manually search for the initial velocity that causes the Earth to make one complete orbit in one year. Optionally, use fminsearch to find the velocity that gets the Earth as close as possible to the starting place after one year.


    This page titled 14.4: Celestial Mechanics was last modified on Thu, 17 Nov 2022 18:20:25 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Allen B. Downey (Green Tea Press) via source content that was edited to the style and standards of the LibreTexts platform.