Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

I wrote a piece of Python code to read different GPS observation files (.24o) and navigation files (.24p), and generate polar plots of satellite trajectories. It is hoped that the RINEX file can be ...
Aria's user avatar
  • 1
0 votes
0 answers
65 views

I'm writing a Python script to calculate the effect of atmospheric drag on a spacecraft in LEO by evaluating the change in the square root of the semi-major axis over time. The governing equation I'm ...
Aastha Upadhyay's user avatar
1 vote
1 answer
72 views

I am trying to integrate orbits in Python, and when considering only the 6x1 state vector x (3 spatial dimensions + 3 velocities), this is fairly easy and even easier when passing it to something like ...
Albannach5446's user avatar
1 vote
0 answers
104 views

I created a script that simulates gravity between satellites and a planet and predicts the orbit of the satellite based on the orbital elements calculated by the satellite's velocity and position ...
Privvet's user avatar
  • 21
1 vote
1 answer
90 views

I'm creating a simulation for a binary star system in python using matplotlib. I want it to change based on the users inputs through sliders I've provided. When I first created this without any real ...
Nelly's user avatar
  • 35
0 votes
0 answers
61 views

I am trying to animate 2D mechanics problem (ball going into a vertical loop) the equation of motion in my case is v=sqrt{v_i^2+2gR(cos theta - cos theta_i)} and theta increases by value v* dt/R I ...
AbdElrahman Waleed's user avatar
1 vote
1 answer
107 views

I'm trying to simulate the orbit of a planet using the compute_orbit method, but when I plot the resulting positions, I get a straight line instead of an expected elliptical orbit. Below are the ...
hassam rajpoot's user avatar
3 votes
0 answers
265 views

I've been trying to make a simulation of planets and asteroids moving around the sun, and I found this link: How do I plot a planet's orbit as a function of time on an already plotted ellipse? I ...
Swayam Sahoo's user avatar
1 vote
2 answers
573 views

I am trying to create as the first stage of a larger project goal a two body Sim in python with pygame to display on screen the objects. My main problem at the moment is that the orbiting satellite is ...
Nzjeux's user avatar
  • 33
0 votes
0 answers
68 views

I've been working on a Python code to compute the orbit of a star around a black hole at the center of our Galaxy. The code includes an implementation of a gaseous disc with hydrodynamical drag force ...
Kristýna Janoušková's user avatar
0 votes
1 answer
67 views

I am trying to determine if an upcoming satellite pass in SkyField will cross a certain azimuth heading, say 0.0 deg north. Right now I iterate in 1 sec steps "manually" over the entire pass ...
Nils's user avatar
  • 107
2 votes
0 answers
102 views

Introduction Hi, I am trying to send a satellite which has a mass of 1062kg from Earth to Mars. My aim is to get it as close as possible to Mars but not orbit it. I am looking for a range of possible ...
Anay Chadha's user avatar
1 vote
0 answers
63 views

I'm working on a project where my end goal is for the two orbiting stars to collide; I have some code from my class that I've been utilizing, and while I was successful in getting two objects to orbit ...
Woobzieer's user avatar
0 votes
1 answer
82 views

I have asked a question similar to this before but have not been able to find an answer so im going to provide a bit more detail and hope that someone knows what im talking about. I have a series of ...
Ethan's user avatar
  • 23
0 votes
1 answer
1k views

I'm trying to plot a ground track in Python from a TLE file without using explicit astropy or other packages. I've encountered a problem with the code that I can't figure out. The issue pertains to ...
ed190's user avatar
  • 35
1 vote
1 answer
254 views

Im building a game where i simulate planetary orbits in Unity 2D C#. I previously used newtons laws of gravitation but quickly discovered that rounding errors in floats can lead to massive orbital ...
Ethan's user avatar
  • 23
-2 votes
2 answers
980 views

I am currently trying to implement station keeping maneuvers for a geosynchronous satellite in orbit around Earth using the General Mission Analysis Tool (GMAT) but I am not managing. I know there are ...
Torus403's user avatar
0 votes
1 answer
357 views

I'm here once again because I can't figure this out. I'm building an orbit simulator and currently working on placing the ship on a hyperbolic trajectory upon entering the SoI of a body. (I'm using ...
Joshua Harvey's user avatar
1 vote
1 answer
160 views

I'm creating an orbit simulator using Java. I have elliptical orbits working great, and now I'm trying to do hyperbolic orbits. The problem I'm having is that when the ship enters the orbit at ...
Joshua Harvey's user avatar
-2 votes
1 answer
161 views

I want to make a plot of an orbit and it's energy with respect to time. I want to have the program output a 3D figure of the orbit, and a 2D figure of the total energy against time. I have been trying ...
user91167's user avatar
2 votes
0 answers
106 views

Im trying to make small 2d solar system orbit simulator as hobby project and im having some issues with finding orbital info. (a, e, time to apo, time to peri, T). I have readen some infos, articles, ...
Z1nK's user avatar
  • 21
0 votes
4 answers
161 views

I am trying to use a Runge Kutta method to simulate the motion of the Earth around the Sun in C, I cannot see why but my code does not update the values for position or velocity and just keeps the ...
user avatar
0 votes
1 answer
86 views

I'm trying to write a function that calculates the force vectors acting on a body from N bodies using F = GMm/r^2 (given the masses and initial positions in .txt files), and stores the values in a ...
user avatar
-1 votes
1 answer
378 views

I am trying to simulate a planet going around the sun with the RK4 algorithm. This is my code that i tried: import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt def calcvec(x1,...
chwu's user avatar
  • 1
1 vote
1 answer
106 views

So I went online to find out how you can calculate the temperature of a planetary body based on the size and temperature of its star, and the body's distance from its star. That brought about this ...
William A. Bohn's user avatar
-1 votes
1 answer
161 views

This is not a duplicate of this question because I need a way to speed up my world without changing deltaTime and have everything happen faster. Why can't I use deltaTime or change it? I'm using the ...
eisa.exe's user avatar
2 votes
1 answer
811 views

I am making a game involving orbital physics. I was successfully able to implement this with a slightly modified version of Brackeys gravity tutorial https://youtu.be/Ouu3D_VHx9o, this is the code: ...
Jack Freeman's user avatar
1 vote
2 answers
886 views

I want to implement a gravity system in shadertoy without using any storage/buffer. So I can't save any variable and my animations must be a function of time. Is it possible to make a function of time ...
Mehran's user avatar
  • 76
1 vote
0 answers
361 views

I am attempting to use the 4th order Yoshida integration technique to model the orbit of satellites in circular orbits around the Earth. However, the orbits I achieve spiral away quite quickly. The ...
Tyr's user avatar
  • 53
1 vote
1 answer
822 views

I'm trying to have a black hole like physics that will attract any object that will go close to it, then put it into the black hole orbit and like a vortex make it go to then center and disappear. I ...
mirkojpn's user avatar
1 vote
1 answer
255 views

The documentation for this function surprisingly doesn't mention the coordinate frame. Does anyone know which it is? Thanks! https://pyorbital.readthedocs.io/en/latest/#pyorbital.orbital.Orbital....
Travers Sorenson's user avatar
0 votes
0 answers
83 views

I am working in a RK4 orbital propagator, and I have followed the basic structure of: k1​=dt×f(tn​,yn​) k2​=dt×f(tn​+dt/2​,yn​+k1/2​​) k3​=dt×f(tn​+dt/2​,yn​+k2/2​​) k4​=dt×f(tn​+dt,yn​+k3​)​ yn+1=yn+...
dfernr's user avatar
  • 1
0 votes
1 answer
224 views

I wish to set-up an initially circular (e=0) system of planetary rings which I can later perturb over time and see how the eccentricity changes. However, my calculation of the eccentricity vector ...
Tyr's user avatar
  • 53
0 votes
1 answer
1k views

I am currently working on a project (for fun) for simulating Newtonian gravity and want to be able to visualize the future path of an object orbiting around a single attractor. At any given simulation ...
Zivodor's user avatar
2 votes
1 answer
171 views

I am trying to solve a low thrust optimal control problem for Earth orbits, i.e. going from one orbit to another. The formulation of the problem includes six states (r_1, r_2, r_3, v_1, v_2, v_3) and ...
jerryvarghese's user avatar
0 votes
1 answer
98 views

Following this excellent tutorial on making a procedural solar system, and so far it's coming along nicely. My only problem with it is that the orbit speeds aren't as accurate as I'd like. I want the ...
Titanic's user avatar
2 votes
2 answers
3k views

Im trying to create a 3D scene in JS/React where I can plot the orbit of the ISS around earth, I've currently forked this repo https://github.com/dsuarezv/satellite-tracker Ive noticed that this only ...
MacaScull's user avatar
  • 191
2 votes
0 answers
1k views

I am currently implementing a n-body-simulation (gravity/3D) for big n (depending on how things go > 1Mio. particles) and am wondering, what integration-method to use. I guess it should have ...
Paul Aner's user avatar
  • 543
0 votes
0 answers
119 views

I need to perform an exercise with Fortran90 that has as its objective what is written in the title. I have a starting system formed by second degree equations with certain boundary conditions. I ...
Bartim's user avatar
  • 1
0 votes
1 answer
282 views

Trying to plot the position of body in elliptical motion by solving Kepler's laws. I have a function for r (distance between focal point and body) and Theta (Angle between line connecting focal and ...
BHavIt's user avatar
  • 1
0 votes
1 answer
293 views

As I understand it, 6 numbers are needed to completely specify elliptical motion of satellites. This is so that we can constrain the exact shape and position of the object moving in this elliptical ...
James's user avatar
  • 153
2 votes
2 answers
198 views

I'm dealing with a question for class that is asking me to mimic the movements of planets/moons/asteroids within a solar system in a 3D space. We started early the semester with vectors, masses, and ...
NULL's user avatar
  • 53
2 votes
2 answers
610 views

I’m trying to solve a n-Body problem using hamilton equations of motion; here is what I’v done: 1.) First I define random initial values for momentums and the vectors positions: import numpy as np ...
Cast fj's user avatar
  • 21
2 votes
0 answers
184 views

I'm having trouble understanding how inserting into a Barnes-Hut quadtree works. If the root represents the center of mass and all of nodes within the quadtree, what happens if you insert something ...
rkuang25's user avatar
  • 141
1 vote
0 answers
212 views

I have plotted an orbit, but I need it as an animation, not a static plot import poliastro from poliastro.bodies import Earth from poliastro.twobody import Orbit r = [-8045, -3490, 2500] * u.km v = [-...
Mohd. Farhan Hassan's user avatar
1 vote
0 answers
137 views

I'm trying to implement the Barnes-Hut algorithm. My current pseudocode for inserting is: if node is empty, place an object into it (object being a particle/planet) if node is a leaf, swap it with a ...
rkuang25's user avatar
  • 141
1 vote
2 answers
93 views

the goal with this code is to simulate numerically the movement of three bodies in three dimensions. All of the bodies have a constant masses. We are going to determinate the evolution of the position ...
Tompan's user avatar
  • 27
1 vote
1 answer
306 views

I've tried to visualise the orbits of the solar system and then include an exoplanet orbit using the vpython library. It works well but at the start of the program and occasionally the orbits will ...
Mine's user avatar
  • 11
1 vote
1 answer
2k views

In my code below I have vectors r and v, r = [r1, 0, 0] v = [0, sqrt(mu/r1), 0] which define the initial position and velocity of the spacecraft. I want to use ode45 on r(double dot)=-(mu)*r/rmag^3 ...
SpaceGuy's user avatar
0 votes
1 answer
55 views

I'm relatively new to python so forgive me for any nonsense in my code. I am trying to program a circular orbit of a planet (I just used the mass of Uranus and the Sun) in python using equations from ...
Victor Ramirez's user avatar