Programming Orbit Dynamics in MATLAB w/o Mass

  • Context: MATLAB 
  • Thread starter Thread starter starbaj12
  • Start date Start date
  • Tags Tags
    Matlab Physics
Click For Summary
SUMMARY

This discussion focuses on programming orbit dynamics in MATLAB without explicitly using mass. The user seeks to calculate kinetic energy, potential energy, and total mechanical energy at various positions in an orbit using the equations for kinetic energy (0.5mv²), gravitational potential energy (-GMm/r), and total mechanical energy (E = k + p). A key solution proposed is to set mass to a unit value (1 unit) to simplify calculations while maintaining the integrity of the energy equations.

PREREQUISITES
  • Understanding of classical mechanics, specifically energy equations.
  • Familiarity with MATLAB programming language and its syntax.
  • Knowledge of gravitational forces and orbital mechanics.
  • Basic concepts of numerical simulations in programming.
NEXT STEPS
  • Explore MATLAB's built-in functions for numerical integration.
  • Learn about MATLAB's plotting capabilities to visualize energy changes over time.
  • Investigate the implications of setting mass to a unit value in orbital simulations.
  • Study advanced topics in orbital mechanics, such as perturbation theory.
USEFUL FOR

Students and professionals in physics, aerospace engineering, and computational modeling who are interested in simulating orbital dynamics without the complexity of mass variables.

starbaj12
Messages
48
Reaction score
0
How would I write a program to show the kinetic energy, potential energy and total mechanical energy at each position in a orbit. I'm not given mass within the program I have to modify

I wanted to just use .5mv^2 = k
-GMm/r = p
and
E = k + p

but can not due to no mass
 
Physics news on Phys.org
You can just set the mass to 1 unit.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 45 ·
2
Replies
45
Views
8K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
3K
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
5K