Recent content by madsmh

  1. M

    I Orbit simulations, tidal forces and planetary oblateness

    I've managed to find a way to correct for the obleateness, and the results are pretty remarkable with regards to to Gallian moons, The absolute error on Europa's position has been reduced to about 32000 km, a vast improvement. However I am at a loss what is causing the huge errors on Saturn...
  2. M

    I Orbit simulations, tidal forces and planetary oblateness

    Please do :) Do you have any idea on how to compensate the oblateness of the bodies?
  3. M

    I Orbit simulations, tidal forces and planetary oblateness

    Yes I've noticed Saturns error is very high which I can't explain. The numbers I posted are the largest deviations that occur in a 3 year period. Europa deviates by about 100 degrees while with Io, it's deviation is >180 degrees, it it remains it the same orbit as the reference. I get your...
  4. M

    I Orbit simulations, tidal forces and planetary oblateness

    I don't experience any significant changes in accuracy when changing using 15 steps/hour compared to 10 steps/hour. And as most bodies are simulated quite accurately, I don't expect it to be a issue with the integrator. I am using Velocity Verlet, Below is a exhaustive list of the bodies that...
  5. M

    I Orbit simulations, tidal forces and planetary oblateness

    Thanks, can you point me to some resources on how to do that? I am making a solar system simulator, and the errors I get when simulating the larger moons of jupiter are about the diameter of their orbits when simulating three years. I have made some animations and can see that they fall behind...
  6. M

    I Orbit simulations, tidal forces and planetary oblateness

    How does one correct for tidal forces when (classically) simulating the orbits of solar system bodies?
  7. M

    C/++/# Velocity Verlet C++ implementation

    Thank you, Mark44, for your reply. It was helpful in finding the bug. .. Mads
  8. M

    C/++/# Velocity Verlet C++ implementation

    I have been working on implementing a solar system system simulator in C++ - but am getting incorrect results on the order of 10^10 km, and it seems that the planets are moving directly away from the sun. I suspect that there is a mistake in the integrator (Velocity Verlet) that I have posted...
  9. M

    I Solar system simulation -- Significant deviation of some Jovian moons

    A smaller timestep fixed it, sorry for not looking before posting.
  10. M

    I Solar system simulation -- Significant deviation of some Jovian moons

    I am working on a simulation of the solar system, but I am having problems with the orbits with Europa and Io shown in the image below, the orbits of Jupiter, Ganymede and Callisto are consistent with NASA's simulations. For all bodies I have used identical parameters in generating the initial...
  11. M

    C/++/# Library that supports multidimensional Arrays

    Thank you all for your suggestions. @Mark44 Is correct that I am used to Python with only a passing familiarity with C++. The project I am working on is N-Body simulator for predicting Solar System orbits in Python, and I would like to speed up the computations without loosing the graphical...
  12. M

    C/++/# Library that supports multidimensional Arrays

    And that, like Mark44's post, does not answer my question.
  13. M

    C/++/# Library that supports multidimensional Arrays

    Perhaps I wasn't clear. What I'm looking for is a numpy-like library for C++.
  14. M

    C/++/# Library that supports multidimensional Arrays

    I have N x N 1x3 vectors that I need to be able to sum element-wise row-wise. I also need to do element-wise calculations on N x 3 arrays.
  15. M

    C/++/# Library that supports multidimensional Arrays

    I'm am looking for a C++ library that supports high-dimensional arrays ( 3=< ) and element-wise calculations. Is there such a thing?
Top