File Exchange

image thumbnail

Star - planet - satellite system animation

version 4.1 (1.84 KB) by Nicosahedron
A function to create an animation to model the orbitography and the gravitational field of a star - planet - satellite system.

2 Downloads

Updated 31 Dec 2020

From GitHub

View Version History

View license on GitHub

For pedagogic / scientific diffusion purpose (gravity shape spacetime).

F5 in Star_planet_satellite_animation.m or Star_planet_satellite_animation in console to run the main program and create the animation file named 'Star_planet_satellite_system.gif' that will appear in the same directory as you registered this .m file.

Parameters -like the ones for the display- may be tuned in the file header.
For instance set sat_path_on / planet_path_on to false/true to disable/enable the satellite/planet path.

To benefit from the file documentation attached, be sure to download the file, not to just copy and paste it.

Cite As

Nicosahedron (2021). Star - planet - satellite system animation (https://github.com/NicolasDouillet/star_planet_satellite_animation/releases/tag/v4.1), GitHub. Retrieved .

Comments and Ratings (5)

Nicosahedron

However, following the radius of influence of the planet field and its weight, the rendering result may be a little different. The boundary of the gravity field appears or not.

Nicosahedron

Hi Pink_panther, and thank you for comment and rating. Only the coefficient values (masses) are slightly different. The function used to compute the fields remain the same (a radial basis function with compact support)

Pink_panther

I see V4 and V2 are different, is V4 gravity field more accurate?

Nicosahedron

New version (3.0) actually coming versy soon.

Sun Yanxiao

Boy, one terrific animation it is!

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!