# NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

## Information about this web site => Request for physics Simulations => Topic started by: wagfeliz on April 05, 2019, 09:10:10 pm

 Title: Simulation Request for two objects doing circular motion from each other. Post by: wagfeliz 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 Title: Re: Simulation Request for two objects doing circular motion from each other. Post by: Fu-Kwun Hwang on April 16, 2019, 06:29:50 pm 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 Title: Re: Simulation Request for two objects doing circular motion from each other. Post by: Jeylasis on September 17, 2019, 05:28:01 pm I came to know this topic to apply it to the problems I've encountered.