## Thursday, May 22, 2014

### EJSS Two Body Circular Orbits Model

EJSS Two Body Circular Orbits Model by Wolfgang Christian, customized by lookang for A level Physics.

 http://weelookang.blogspot.com/2014/05/ejss-two-body-circular-orbits-model.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_TwoBodyOrbitswee/TwoBodyOrbitswee_Simulation.xhtml source: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_src_TwoBodyOrbitswee.zip authors: Wolfgang Christian, this version by lookang author of EJS 5: Paco.

## Two Body Orbit Theory by Wolfgang Christian

Because two objects (e.g., a star and a planet) with masses $m_{1}$ and $m_{2}$ interacting gravitationally orbit a common center of mass (0,0), we can determine their relative positions of the objects if their mass ratio

$mr = \frac{m_{1}}{m_{2}}$

is known.

Placing the center of mass (barycenter) at the (0,0) center of the coordinate system, the ratio or the distance from the center is inversely proportional to the object mass ratio

$\frac{m_{1}}{m_{2}} =\frac{r_{2}}{r_{1}}$

where $r = r_{1}+r_{2}$ is the separation.

In other words, if $m_{1}$  is twice as massive as $m_{2}$, then the two objects will be on opposite sides of the origin and $m_{1}$ will be half as far from the origin as $m_{2}$. This ratio relation is also observed when using a lever or seesaw to balance two masses.

 when $m_{1} = 1 , m_{2} = 1$ implies $\frac{r_{2} }{ r_{1}} = 1$

 when $m_{1} = 1 , m_{2} = 0.5$ implies $\frac{r_{2} }{ r_{1}} = 2$

 when $m_{1} = 1 , m_{2} = 0.25$ implies $\frac{r_{2} }{ r_{1}} = 4$

 when $m_{1} = 1 , m_{2} = 0.1$ implies $\frac{r_{2} }{ r_{1}} = 10$

The elliptical motion of two gravitationally attracting objects about their center of mass is a classical mechanics problem and was first solved by Newton. This two-body problem can be re-formulated as the motion of a single object (if you observe carefully, it is white color of the model) with a mass

$\mu = \frac{m_{1}m_{2}}{m_{1}+m_{2}}$

that is attracted toward the origin and obeys Newton's second law:

$F = \mu a = \frac{Gm_{1}m_{2}}{r^{2}}$

in x and y axis,

$F_{x} = \mu a_{x} = -x \frac{Gm_{1}m_{2}}{r^{3}}$

$F_{y} = \mu a_{y} = -y \frac{Gm_{1}m_{2}}{r^{3}}$

Substituting for $\mu$ gives the following differential equation for the separation vector $r$.

$a = \frac{G(m_{1}+m_{2})}{r^{2}}$

in x and y axis,
$a_{x} = -x \frac{G(m_{1}+m_{2})}{r^{3}}$

$a_{y} = -y \frac{G(m_{1}+m_{2})}{r^{3}}$

## Ordinary Differential Equations:

$\frac{dx}{dt} = v_{x}$

$\frac{dy}{dt} = v_{y}$

$\frac{dv_{x}}{dt} = a_{x} = -x \frac{G(m_{1}+m_{2})}{r^{3}}$

$\frac{dv_{y}}{dt} = a_{y} = -y \frac{G(m_{1}+m_{2})}{r^{3}}$

where

$totalMass = redMass+blueMass = m_{1} + m_{2}$

$GM = G = 4 \pi^{2}$

$rcubed = r^{3}$

The choice of units determines the numerical value of the gravitational constant G. In this simulation, we compute the orbit using time in Earth years and distance in Earth radii (astronomical units). Using these units, the value of

$G = 4 \pi^{2}$

rather than the MKS value of

$G = 6.67300 × 10^{-11} \frac{m^{3}}{\frac{kg}{s^{2}}}$.

## Motion of Mass 1 and 2

To get the motion of the 2 bodies, says call them body 1 and body 2  where

$x_{blue} = x_{2} = x \frac{mr}{1+mr}$

$y_{blue}= y_{2} = y \frac{mr}{1+mr}$

$x_{red} = x_{1} = -x \frac{1}{1+mr}$

$y_{red} = y_{1} = -y \frac{1}{1+mr}$

$v_{blue} = v_{x1} = v \frac{mr}{1+mr}$

$v_{blue}= v_{y1} = v \frac{mr}{1+mr}$

$v_{red} = v_{x2} = -v \frac{1}{1+mr}$

$v_{red} = v_{y2} = -v \frac{1}{1+mr}$

$a_{blue} = a_{x1} = a \frac{mr}{1+mr}$

$a_{blue} = a_{y1} = a \frac{mr}{1+mr}$

$a_{red} = a_{x2} = -a \frac{1}{1+mr}$

$a_{red} = a_{y2} = -a \frac{1}{1+mr}$

where

$mr = \frac{m_{1}}{m_{2}} = \frac{m_{red}}{m_{blue}}$

the velocities can be determined using the following

$v_{1} = \sqrt{v_{x1}^{2}+v_{y1}^{2}} = \sqrt{v_{x}^{2}+v_{y}^{2}}\frac{mr}{1+mr}$

$v_{2} = \sqrt{v_{x2}^{2}+v_{y2}^{2}} = \sqrt{v_{x}^{2}+v_{y}^{2}}\frac{1}{1+mr}$

similarly for the acceleration,

$a_{1} = \sqrt{a_{x1}^{2}+a_{y1}^{2}} = \sqrt{a_{x}^{2}+a_{y}^{2}}\frac{mr}{1+mr}$

$a_{2} = \sqrt{a_{x2}^{2}+a_{y2}^{2}} = \sqrt{a_{x}^{2}+a_{y}^{2}}\frac{1}{1+mr}$

similarly the forces,

$F_{1} = m_{1} a_{1}$

$F_{2} = m_{2} a_{2}$

## EJSS Two Body Circular Orbits Model by Wolfgang Christian

The Two-Body Orbits JavaScript Model shows the motion of two objects (e.g., binary star or moon-planet system) interacting via Newton's law of universal gravitation. It is designed to teach physics, Earth science, and environmental science topics by showing the spatial path of objects around their common center of mass (barycenter). Default units are chosen for Earth orbit about our Sun so that the distance unit is one astronomical unit and the time unit is one year.

## Credits:

The Two-Body Orbits JS Model was developed by Wolfgang Christian using the Easy Java Simulations version 5 (EJS 5) modeling tool. Although EJS is a Java program, EJS 5 can create stand alone JavaScript programs that run in almost any PC or tablet browser.

Information about EJS is available at: <http://www.um.es/fem/Ejs/> and in the OSP ComPADRE collection <http://www.compadre.org/OSP/>.

## Problem 1:

Example 1 (N84/P2/Q7) Binary Stars
Two stars of equal mass M move with constant speed v in a circular orbit of radius R about their common centre of mass. What is the net force on each star?
 (N84/P2/Q7) Binary Stars

A $\frac{GM^{2}}{4R^{2}}$

B $\frac{Mv^{2}}{2R }$

C  $zero$

D $\frac{2Mv^{2}}{R}$

E $\frac{GM^{2}}{R^{2}}$

## Simulation Equivalent:

 Example Simulation Equivalent (N84/P2/Q7) Binary Stars Two stars of equal mass M move with constant speed v in a circular orbit of radius R about their common centre of mass. What is the net force on each star? http://weelookang.blogspot.com/2014/05/ejss-two-body-circular-orbits-model.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_TwoBodyOrbitswee/TwoBodyOrbitswee_Simulation.xhtml source: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_src_TwoBodyOrbitswee.zip authors: Wolfgang Christian, this version by lookang author of EJS 5: Paco.

## Working

Using Newton's Gravitational Law in Circular Motion

$F = \frac{GM_{1}M_{2}}{ (R1 +R2)^{2}} = \frac{GMM}{ 4R^{2}}$

## Problem 2:

Example 2 (N09/I/16) Binary Stars
Two stars of mass M and 2M, a distance 3x apart rotate in circles about their common centre of mass O.
The gravitational force acting on the stars can be written as

$\frac{kGM^{2}}{x^2}$

 (N09/I/16) Binary Stars Two stars of mass M and 2M, a distance 3x apart rotate in circles about their common centre of mass O. The gravitational force acting on the stars can be written as $\frac{kGM^{2}}{x^2}$ What is the value of k ?
What is the value of k ?

A 0.22

B 0.50

C 0.67

D 2.0

## Simulation Equivalent:

 (N09/I/16) Binary Stars Two stars of mass M and 2M, a distance 3x apart rotate in circles about their common centre of mass O.The gravitational force acting on the stars can be written as $\frac{kGM^{2}}{x^2}$ What is the value of k ? http://weelookang.blogspot.com/2014/05/ejss-two-body-circular-orbits-model.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_TwoBodyOrbitswee/TwoBodyOrbitswee_Simulation.xhtml source: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_src_TwoBodyOrbitswee.zip authors: Wolfgang Christian, this version by lookang author of EJS 5: Paco.

## Working

Using Newton's Gravitational Law in Circular Motion

$F = \frac{GM_{1}M_{2}}{ (R1 +R2)^{2}} = \frac{G2MM}{ (3x)^{2}} = \frac{2}{9}\frac{GMM}{ (x)^{2}}$

## "M1=5.9726,M2=0.073242,Approximate_Earth_Moon"

 "M1=5.9726,M2=0.073242,Approximate_Earth_Moon" as suggested by soo kok http://weelookang.blogspot.com/2014/05/ejss-two-body-circular-orbits-model.html https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_TwoBodyOrbitswee/TwoBodyOrbitswee_Simulation.xhtml source: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_src_TwoBodyOrbitswee.zip authors: Wolfgang Christian, this version by lookang author of EJS 5: Paco.
using the M1 = 5.9726 , M2 =0.073242, the approximate earth moon system can be simulated but the values for the time is not correct. only the relative values are accurate!

## Changes made by lookang include

1. added the invisible mass for which the binary system's motion are derived from.
2. added the velocities v1x, v1y and v2x v2y
3. added velocities checkbox
4. added units labels clearly showing units a.u. and year
5. added combo drop-down list for ease of use
6. added numerical values for sense making such as F1, F2, a1, a2, R1 and R2 v1 and v2
7. made forces a bit longer to see more clearly