NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
November 29, 2020, 12:47:50 pm

"In theory, theory and practice are the same. In practice, they are not." ..."Albert Einstein (1879~1955, Mathematical physicist, Nobel Prize 1921-Physics)"

 Pages: [1]   Go Down
 Author Topic: Simulation Request for two objects doing circular motion from each other.  (Read 797 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
wagfeliz
Newbie

Offline

Posts: 1

 « Embed this message on: April 05, 2019, 09:10:10 pm »

Hi, I have a need to understand the calculations and build an more complex simulation of two objects (or more) doing circular motion on each other ( constant changing the motion based on the target position ). So :

1) The two objects start in random positions/speed/direction in space ( no gravity or any force in this universe ).
2) The user can then input an behavior in the object A in order for it to do an circular motion into object B ( orbit at x meters for exemple ). And also vice-versa on B, for it to orbit A on an determined distance.

I am not sure if its clear, I imagine an simulation with two points in 3d or 2d space going in random direction/speed, and then this object can apply forces to itself in order to try to keep an orbit to object B, like it was ships in space.

I would be very impressed to see it ! And would love to see the equations !

Regards,
wagfeliz

 Logged
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3086

 « Embed this message Reply #1 on: April 16, 2019, 06:29:50 pm » posted from:,,Satellite Provider

Do you mean that A and B are both doing circular motion around the center of the system (center of mass of A and B)?

The position of A and B can be random.
If the position of A and B are xa and xb, then the center of mass of the system is xc=(ma*xa+mb*xb)/(ma+mb);
You can get similar equation for ya and yb.
i.e. yc=(ma*ya+mb*yb)/(ma+mb);
For the particle to be in circular motion, the velocity need to be perpendicular to the radial direction.

And ma*va+mb*vb=0; to prevent drift motion

the centripetal force f=m*v^2/r

You have all the equations you need now.

You are welcomed to check out http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2184.0
 Logged
Jeylasis
Newbie

Offline

Posts: 2

 « Embed this message Reply #2 on: September 17, 2019, 05:28:01 pm »

I came to know this topic to apply it to the problems I've encountered.
 Logged
 Pages: [1]   Go Up
"In theory, theory and practice are the same. In practice, they are not." ..."Albert Einstein (1879~1955, Mathematical physicist, Nobel Prize 1921-Physics)"