184 questions
0
votes
1
answer
84
views
Why different files produce same GNSS plots in my Python code?
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. The goal is that the RINEX file can be ...
0
votes
0
answers
65
views
How to use the B star term present in a Two Line Element data for extracting Ballistic Coefficient of a spacecraft?
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 ...
1
vote
1
answer
72
views
How to integrate two objects of differing dimension alongside each other?
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 ...
1
vote
0
answers
104
views
Orbital motion predictor is only accurate when satellite starts on a specific side of the planet
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 ...
1
vote
1
answer
91
views
Problem Updating Angular Velocity and Angles in Binary Star Orbit Simulation (Python, Matplotlib)
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 ...
0
votes
0
answers
63
views
Manim: ValueTracker which dynamically updates itself with its current value
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 ...
1
vote
1
answer
108
views
Why does my planetary orbit simulation produce a straight line instead of an elliptical orbit?
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 ...
3
votes
0
answers
268
views
Plotting planet position as a function of time
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 ...
1
vote
2
answers
575
views
Integrations for Two Body Problem in python
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 ...
0
votes
0
answers
70
views
Issue with transitioning code for computing stellar orbit around a black hole to solve_ivp in Python
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 ...
0
votes
1
answer
70
views
How to efficiently determine if certain azimuth heading is crossed during satellite pass in SkyField
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 ...
2
votes
0
answers
103
views
Is there a range of launch velocities that would get my satellite as close to Mars as possible?
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 ...
1
vote
0
answers
63
views
How do I Decrease Orbit Size in My Python Code?
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 ...
0
votes
1
answer
82
views
How to convert 2D State Vector + Gravitational Parameter into Apoapsis, Periapsis, Argument of Periapsis and Time in Unity C#
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 ...
0
votes
1
answer
1k
views
Plotting ground Tracks with python only using trigonometry
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 ...