Ulysees
- 515
- 0
May I ask, for a given accuracy of 10^-5 say, and for a given orbit lasting 1 year, which integration method is the fastest?
tony873004 said:You should start with Euler's method because it is simple and you understand it. Then if you like, you can upgrade your method later.
lzkelley said:...I've been using Cartesian coordinates for all of my work so far, and for the actual calculations i plan to continue - but i need to be able to use keplerian orbital elements instead of state vectors for initial conditions. I was wondering if anyone out there had experience or direction on how to convert between orbital elements and state vectors besides drowning myself in geometry. Thanks!
No, they don't. Moreover, if your orbit simulator maintains the Moon's semimajor axis, then you are not using the basic Euler method. You are most likely using the Euler-Cromer method instead. The two methods:tony873004 said:In the real universe, there are lots of other forces besides Newtonian gravity from point-mass sources: radiation pressure, relativity, non-spherical objects, etc. I'm guessing that errors caused by ignoring these overwhelm the errors caused by Euler's method.
That is always a problem with the basic Euler method. It is not so much a problem with the Euler-Cromer method, which like RK4, exhibits conditionally stable (but the stability region is considerably smaller with Euler-Cromer than RK4). The simple act of updating the position with the already-updated velocity makes Euler-Cromer conditionally stable and symplectic. RK4 is considerably more stable and considerably more accurate than Euler-Cromer, but it is not symplectic.Ulysees said:I should add the more important problem with Euler variants is not accuracy. It is stability. For example a mass attached to a spring without any damping should oscillate forever (that's the analytical solution), but with Euler it oscillates with an increasing amplitude. No matter how small you make the integration step, the amplitude of oscillation is increasing.
Ulysees said:And what's the benefit of symplectic-ness?
tony873004 said:Your replies to my posts and Ulysees posts are very facinating. Do you have any links describing Forest-Ruth, Verlet or Chin?
Something I wanted to work on this summer was a higher order integrator for Gravity Simulator. I thought I wanted to do RK4, but you may have discouraged me from that.
Why would anybody want to use Euler's method for anything, being that if you just solve for v before you solve for x, it becomes much nicer? Didn't Euler realize this?
Fair enough. I'll cut his some slack! Thanks for the links.D H said:Euler died 225 years ago. Give him a break.
The formation of the solar system is too complicated to simulate with point-mass n-body code. When the primordial particles are small, gravity does not play a roll. Once they're large enough for gravity to play a role, certain collisions cause them to stick together, while others break them apart. And there's millions of them. My simulator does not do very well with even hundreds of particles.Ulysees said:Have you done any long-term simulations like the formation of a solar system? I was looking for a simulator suitable for testing Titius-Bode law.
I've heard things like Earth's presence supresses a long-term resonance between Venus and Jupiter, and without Earth, Venus would not be stable. Maybe that's what you're referring to? I'm not sure how accurate that statement is. When I heard it, the first thing I tried to do was simulate the solar system without Earth. Venus stayed put, although I only simulated for a few million years. It's possible that it takes longer than this for Venus to get ejected, and its also possible that my time step was high enough that numerical errors dominated, and I won't get an ejection no matter how long I simulate. It takes a pretty big time step to get millions of years into the future.Ulysees said:Also, there are some who say that if a planet is hit by a large enough object or otherwise explodes, the entire solar system will collapse eventually. Any thoughts on this?
That would have to be modeled too.
A lack of interest in Titus-Bode prevents me from trying to verify it through simulations. But if it interests you, that doesn't need to stop you. Anyone with a Windows computer can run my simulator.Ulysees said:And what's stopping you...
Ulysees said:...I only want to test Titius Bode as a mathematical property that should originate from the inverse square law in any scale, atomic or galactic...
D H said:...I assume Tony's simulator treats the planets as point masses...These little particles collide (point masses don't collide),..
D H said:I assume Tony's simulator treats the planets as point masses. This is a good assumption for a stabilized system with only a small number of orbiting objects. It is not a good assumption for modeling planet growth.
Modeling protoplanetary systems requires a lot of coupled, high powered computers because one needs to model millions of tiny particles.
Wrong. It is an trivial matter to compute the gravitational influence of a non-point mass body that has spherical shape and a uniform density on some object. An ellipsoidal body is not too much harder. We use complex mathematical models such spherical harmonics to describe real body such as the Earth. Some spherical harmonics models of the Earth's gravity field include http://cddis.nasa.gov/926/egm96/egm96.html" and more recent ones based on Lunar Prospector data. JPL has developed spherical harmonics models for Venus, Mars, and even some asteroids.Ulysees said:Well don't forget Newton's law of gravity only makes sense for point masses.
One of the cornerstones of the scientific method is the concept of falsification. Neptune falsifies the Titus-Bode law. Most astronomers view the Titus-Bode law as mere numerology. I suggest you post your concepts on this law in the scepticism and debunking forum at PF.Regarding Titius-Bode that I am interested in testing, there is no reason to assume it applies exclusively to the scale of our solar system.
D H said:I never said ellipsoidal shapes are equivalent to point masses.
Well don't forget Newton's law of gravity only makes sense for point masses.
Wrong.