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

In summary, the conversation discusses using MATLAB to simulate a 2-D solution to the 3-body problem, with certain assumptions such as a stationary Earth and Moon and a constant spaceship mass. The individual is having trouble understanding and modifying a sample code they found and is seeking help and explanation. They also express gratitude for any assistance.
  • #1
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

  • orbit.m
    2 KB · Views: 604
  • orbitode.m
    2.7 KB · Views: 548
Physics news on Phys.org
  • #2

1. What is Matlab 2-D simulation for TLI?

Matlab 2-D simulation for TLI is a mathematical model used to simulate the trajectory of a spacecraft during a Trans Lunar Injection (TLI) maneuver. It uses the principles of basic orbital mechanics to calculate the position, velocity, and acceleration of the spacecraft as it travels from Earth's orbit to the Moon's orbit.

2. How does Matlab 2-D simulation for TLI work?

The simulation uses numerical integration to solve the equations of motion for the spacecraft during the TLI maneuver. It takes into account the gravitational forces of Earth, the Moon, and other celestial bodies, as well as the thrust and fuel consumption of the spacecraft.

3. What are the advantages of using Matlab for TLI simulation?

Matlab allows for efficient and accurate calculations of the spacecraft's trajectory, taking into account complex variables such as gravitational forces and thrust. It also allows for easy visualization of the simulation results, making it a valuable tool for analyzing and optimizing TLI maneuvers.

4. Is Matlab 2-D simulation for TLI accurate?

Yes, when the simulation is set up correctly and the input parameters are accurate, Matlab 2-D simulation for TLI can provide highly accurate results. However, it is important to note that it is still a mathematical model and may not account for all real-world factors that could affect the spacecraft's trajectory.

5. How can Matlab 2-D simulation for TLI be used in the aerospace industry?

Matlab 2-D simulation for TLI is commonly used in the aerospace industry for mission planning and trajectory analysis. It can help engineers design and optimize TLI maneuvers, as well as simulate and predict the trajectory of spacecraft during lunar missions. It is also used for educational purposes to teach students about basic orbital mechanics and spacecraft trajectories.

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

Replies
1
Views
569
Replies
1
Views
909
Replies
4
Views
1K
Replies
1
Views
1K
Replies
5
Views
2K
Replies
2
Views
2K
Replies
2
Views
1K
Back
Top