Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:articles:software:orbital_calculator

Orbital Calculator

Orbital Calculator v2.0 displays results in many different equivalences

I needed to calculate orbital characteristics for any orbit around any gravitational mass (because I write sci-fi stories), so I wrote this program because I'm a programmer and I'm too lazy to do it by hand all the time. The program has expanded over the last few years, sometimes from suggestions by other writers. I make it freely available and as simple to use as possible. It now has a list of functions as long as your arm (assuming you're not a tentacle user), and the number of downloads is now in triple quadruple digits (1,223 at the time of this edit).

I wrote Orbital Calculator to handle just about any proposition. You can add new gravitational masses (the things you want to orbit) for easy and consistent recall. You can add satellites too, so you can recall their orbital data at any time. You can create temporary calculations (not stored for later recall), and you can edit orbital parameters without changing the stored data, so you can play “what if…”.

Even better yet, you can export any data for satellites or gravitational masses – choosing exactly which ones to export – and share the files with other users, who can import them into their own databases.

It runs on Windows & Linux (32-bit and 64-bit versions available for both platforms), and there is an armv7l version too (can you say Raspberry Pi?).

Note: you can click on any of the images to display them full size

Release Notes & Download

For the latest release notes, go to the Release Notes page.

If you want to jump straight to the download, there are links to it in the top-bar menu and at the bottom of this article, else you can jump to the Downloads page here.

Two Types of Orbital Calculation

Two-body calculationUsers of the first versions of this program will be aware that the basic computation the program makes is for a satellite with an insignificant mass (vs the host gravitational mass). Simply select a mass and enter an orbital distance by typing in apogee and perigee (or just one for a circular orbit), then hit the calculate button. This is great for satellites and other types of spacecraft.

You can now also perform two-body calculations by selecting two gravitational masses and the distance between them. This will try and take into consideration a whole star-system full of planets by using the Solar system as a blueprint. It then compares this to the Newtonian/Kepplerian equation results and determines which is likely to be most accurate. This increases the precision in most cases.

Additional Enhancements

Version 2 of the software makes many minor adjustments 'under the hood' to eliminate or reduce rounding errors and increase precision. This convenience is carried forward into the user-interface. Wherever it makes sense, for example, the Calculate button has been removed allowing the program to calculate (and recalculate) as you type. A Copy to Clipboard button has been added on most result screens for improved convenience.

There is now an embedded context-sensitive help system, with many of its pages filled with additional information. For example, there is an explanation of gravitic time-dilation - did you realise you are not experiencing time at 'full speed'? Gravity dilates time, and not just around super-massive black holes.

Gravitation and Motion has been enhanced

Speaking of gravitic time-dilation, the program can now calculate time-dilation for objects in orbit, taking into consideration both the gravitic and acceleration dilations (one is positive, the other negative). Using the ISS as an example, you can now calculate the dilation crew members are subject to, to within 0.0037 seconds per year accuracy.

The Gravitation and Motion screen now calculates gravity, gravitational acceleration and escape velocity at the elevation you specify, as well as at the surface.

Wherever it is appropriate, you can now select AU (astronomical units) and meters as the unit of measure for both input and results.

The layout of all the screens have been redesigned to be easier to read and consistent. This makes using the program a much more pleasant experience.

Lagrange Points

Lagrange Points can now be copied to the clipboard

Calculating Lagrange points epitomises one of the simple yet effective enhancements littered throughout the program - the Copy to Clipboard button.

The clipboard data has been tidied too, so it now uses spaces instead of tabs to align the data, making it much more compatible with writing programs and note-keeping software.

The Lagrange points are usually calculated as the distance from the center of each of the two gravitational masses. In the real world though, you often want the distance from the surfaces of these bodies. For example, if you want to place a satellite at the Earth-Moon L4 Lagrange point, it is much more useful to know the location is 395,958 km from Earth and 400,597 km from the Moon. This also allows you to calculate the communications delay from the surface of one of these bodies and the satellite.

Database Maintenance

Enhanced, easier to use database maintenance

The database maintenance screens have been enhanced for much easier use. You no longer have to select which objects to display before entering the maintenance screen. Simply enter the screen and use the real-time filters to select which objects to display. Hovering over data in the 'Mass' and 'Surface Gravity' columns will reveal values in greater precision.

Wherever a value is less than (but not equal to) 0.00, youll see a ~ beside it to indicate this. Hovering over the value will, as stated above, reveal greater precision. For example, you can see the surface gravity of Betelgeuse is ~0.00. Hovering over it will display 0.0003.

New Features

An additional 11 new features have been added to the program, almost doubling its previous list of functions. Some of them are subtly embedded in pre-existing functions, so don't expect them all to have menu options of their own, but they all add up to make the software much more useful and easier to use.

One of these functions is the ability to enlarge the window contents by zooming in or out (without resizing the window). This is handy if you have issues reading the text at its natural resolution.

You are now able to control how frequently the program checks for updates - from every time the program is launched to no more than once per month. You can even disable update checking if you wish. This can be controlled on the new Preferences Screen, where you can also instruct the program to restore window sizes and positions and the zoom level.

New Database Format

Version 2 includes a new database format which brings several advantages. For example, 'repeat last calculation' now works even if you have deleted both the host mass and the satellite from the database.

This makes the version 1 database files incompatible with the new format. Never fear though, Version 2 can recognise and import from version 1 databases (so all your lovely data isn't lost), and you can even import from version 1 export files. Unfortunately you can't do it the other way around, but honestly, why would you want to?

Feature List

  • N-Body Centre of Gravity calculate centre of gravity for any number of gravitational masses
  • Constant Acceleration - all 5 components of teh constant acceleration equations can be deduced and converted
  • Free-Fall distance and final velocity for increasing rate of acceleration over any gravitational mass for any duration
  • Distance/Speed/Time calculations and conversions
  • Schwartzschild and Photon Sphere radii calculated as a factor of mass
  • Synodic Periods calculated from orbital distances (and central mass)
  • Synodic Periods calculated from orbital periods
  • New Objects added to database - six stars and one more asteroid
  • Automatic Calculation wherever it makes sense, so you don't have to hit a 'calculate' button
  • Copy to Clipboard on most result screens
  • Database Stats now provides totals
  • Repeat Last Calculation now works even if you've removed both the host mass and satellite mass from the database
  • Import Data recognises v1.x import files and databases (so you can import directly from an old database)
  • Export Data to prune a database, separate project data or to share with friends
  • Preferences to control update checking, restoring window sizes and positions
  • Gravitation and Motion to calculate gravity, escape velocity and gravitational acceleration at the surface and at an elevation
  • Lagrange Points calculated as distance from the surfaces of the host and satellite mass
  • Two-Body Orbits taking into consideration the masses of both host and satellite
  • Hohmann Transfer Orbits for low-energy migration
  • Distance Between Two Stars using star-chart coordinates
  • Apparent Magnitude of a star from another star
  • Distance from Period when all you know is the host mass and and the orbital period
  • Satellite Footprint from Altitude
    • Visible Surface of host mass as %
    • Latitude spread of the footprint across the surface
    • Diameter of footprint
    • Radius of footprint
    • Surface Area of footprint in square kilometres
    • Maximum Period of Visibility of satellite from the ground
  • Visibility over Horizon How far from an object (e.g. mountain) can you be and still see it?
  • Age from Orbit calculate someone's apparent age from local years
  • Age and Weight on Solar System Planets
  • Calculate Habitable Zone (a.k.a. Goldilocks Zone) around a star
  • Time Dilation from Velocity where velocity is a factor of the speed of light
  • Time Dilation from Orbit factoring both gravitational time dilation and acceleration time dilation
  • Context-sensitive Help
  • Zoom-in, Zoom-out if things are a little hard to read
  • Password Generator to generate very strong passwords for those pesky internet logins
  • Multi-Platform it runs on Windows, Mac and Linux
  • 64-bit versions available for all platforms
  • 32-bit versions available for Windows and Linux
  • Portable means it doesn't have to be installed - just unzip and run. Can be run from a USB stick.

Download

You can download the latest versions from the Downloads page (there's also a link to the page in the top-bar menu).

N.B. Windows and Linux versions are now available in both 32-bit and 64-bit flavours. I'll add a Mac version as soon as I can find someone to test it for me (feel free to volunteer!).


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies

Discussion

Enter your comment:
A L B N S
 
blog/articles/software/orbital_calculator.txt · Last modified: 2022/08/28 11:30 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki