Skip to content

ADD: J2 gravitational effect, atmospheric density - #49

Open
declanwhchan wants to merge 6 commits into
environmentfrom
dev/environment-calc
Open

ADD: J2 gravitational effect, atmospheric density#49
declanwhchan wants to merge 6 commits into
environmentfrom
dev/environment-calc

Conversation

@declanwhchan

Copy link
Copy Markdown
Collaborator

ADD: J2 gravitational effect, atmospheric density

  • Calculate the J2 perturbative acceleration
  • Calculate atmospheric density based on orbital state

@declanwhchan declanwhchan changed the title ADD: J2 gravitational effect ADD: J2 gravitational effect, atmospheric density Jun 23, 2026
@declanwhchan
declanwhchan marked this pull request as ready for review June 30, 2026 18:45
@declanwhchan
declanwhchan requested a review from wlodaralex as a code owner June 30, 2026 18:45
@declanwhchan declanwhchan added enhancement New feature or request and removed enhancement New feature or request labels Jul 2, 2026
Comment thread environment.py Outdated
Comment thread environment.py Outdated
Comment thread environment.py Outdated
Comment thread environment.py Outdated
Comment thread environment.py Outdated
@declanwhchan
declanwhchan requested a review from wlodaralex July 16, 2026 15:24
@declanwhchan

declanwhchan commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

I'm switched to using this model now instead: https://www.grc.nasa.gov/www/k-12/VirtualAero/BottleRocket/airplane/atmosmet.html. But it only measures atmospheric density in the lower altitudes i.e. stratosphere and troposphere. So I set a cutoff to neglected atmospheric effects when altitude > 50000m

@wlodaralex

Copy link
Copy Markdown
Collaborator

If it just reports 0 when >50km that's useless to us. We're interested primarily in 100-600 km, where density is on the order of 10^-6 to 10^-14 kg/m3. I know that might seem pointless to model but it's a constant energy dissipation so over long periods we need to account for it. Check out NRLMSIS or USSA76. Both should have packages already made in Python so you don't have to hand-code the whole model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENVIRONMENT - aerodynamic model ENVIRONMENT - add J2 gravitational effect

2 participants