- Joined
- Mar 21, 2008
- Messages
- 2,431
- Reaction score
- 1,006
- Points
- 128
- Location
- Biddeford ME
- Website
- mwhume.space
- Preferred Pronouns
- he/him
I've been playing around with the idea of implementing an improved gravity model for orbiter. Currently Orbiter calculates non-spherical gravity perturbations using only the J2-J4 terms. This results in a non-spherical gravitational potential field that varies only with latitude, and not with longitude, and is relatively simple. I have written an implementation of Pines Algorithm in C++, based on matlab code found in this document: https://ntrs.nasa.gov/api/citations/20160011252/downloads/20160011252.pdf
I have a very simple application that demonstrates the functions here: https://github.com/n7275/PinesnormOrbiter
And an attempt to shoehorn it into Orbiter here: https://github.com/n7275/orbiter/tree/tesseralGravity
I think this is a necessary feature. Earth isn't too bad with its dominating J2 term, but lunar gravity in Orbiter is very inaccurate.

Before I spend a whole lot more time on it, I wanted to open it up to discussion. So, please, do your worst, haha.
I have a very simple application that demonstrates the functions here: https://github.com/n7275/PinesnormOrbiter
And an attempt to shoehorn it into Orbiter here: https://github.com/n7275/orbiter/tree/tesseralGravity
I think this is a necessary feature. Earth isn't too bad with its dominating J2 term, but lunar gravity in Orbiter is very inaccurate.

Before I spend a whole lot more time on it, I wanted to open it up to discussion. So, please, do your worst, haha.