Matlab 2-D Simulation for TLI (Trans Lunar Injection) Basic Orbital Mechanics

Click For Summary
SUMMARY

The discussion focuses on programming a 2-D simulation of the Trans Lunar Injection (TLI) using MATLAB, specifically addressing the 3-body problem with the Earth and Moon as stationary bodies. The user encountered errors related to the 'orbit.m' file, particularly a 'no default parameters set' message when calling 'orbitode.m', a standard MATLAB example script. The user seeks assistance in resolving these errors to successfully run the simulation and gain a better understanding of MATLAB's functionality in this context.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of basic orbital mechanics concepts
  • Knowledge of the 3-body problem in physics
  • Experience with MATLAB script debugging techniques
NEXT STEPS
  • Research MATLAB's error handling and debugging features
  • Explore the implementation of the 3-body problem in MATLAB
  • Learn about MATLAB's ODE (Ordinary Differential Equations) solvers
  • Study the principles of orbital mechanics relevant to TLI simulations
USEFUL FOR

This discussion is beneficial for students and developers working on aerospace simulations, MATLAB programmers seeking to understand orbital mechanics, and anyone interested in solving the 3-body problem using computational methods.

thundergod
Messages
1
Reaction score
0
Matlab 2-D Simulation for TLI (Trans Lunar Injection) "Basic Orbital Mechanics"

Hi Everyone,

I have been assigned a project in which I am to program in MATLAB the solution to the 3-body problem, but in 2-D with a couple assumptions.

1) Earth and Moon are stationary.
2) Mass of spaceship is constant
3) Spaceship initially in circular orbit 20km above earth

Here is my problem, the school does not offer a class in MATLAB programming. So I looked all over for some sample codes I could modify.

I found one that seems to be a great start but I do not fully understand it. I was hoping someone on here could help.

I file 'orbit.m' call upon 'orbitode.m' which I believe is a standard example script for matlab. However I keep getting the error 'no default parameters set' as well as two others. Can someone please please help me figure this out.

If I could just get the file 'orbit.m' working I think I can get the rest. Also if anyone would like to briefly explain what is going on i.e. how MATLAB is working or what exactly it is doing that would be great!

Thanks in advance for all your help.
 

Attachments

Physics news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
13K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K