Ideas for a physics based c program?

  • Context: High School 
  • Thread starter Thread starter bigfoot100
  • Start date Start date
  • Tags Tags
    Ideas Physics Program
Click For Summary
SUMMARY

The discussion centers on developing a physics-based program in C, specifically focusing on simulating the Earth's orbit around the Sun using Newton's inverse square law. Key parameters include the mass of the Earth and Sun, along with initial conditions such as location, speed, and direction. The goal is to achieve a stable orbit that returns to a similar position in space after 24*365+6 calculations, approximating real-world conditions. Additional project ideas include creating an optical table with mirrors and beam splitters or simulating the dynamics of circles or spheres settling in a box.

PREREQUISITES
  • Understanding of Newton's inverse square law
  • Proficiency in C programming
  • Basic knowledge of physics, particularly orbital mechanics
  • Familiarity with numerical simulation techniques
NEXT STEPS
  • Research "C programming for physics simulations"
  • Explore "numerical methods for solving differential equations"
  • Learn about "orbital mechanics and celestial dynamics"
  • Investigate "creating graphical representations in C using libraries like SDL"
USEFUL FOR

This discussion is beneficial for physics enthusiasts, C programmers, and developers interested in simulation projects, particularly those focusing on orbital mechanics and physical systems modeling.

bigfoot100
Messages
4
Reaction score
0
I want to write a physics based c program but can't decide what to do it on any ideas?
 
Physics news on Phys.org
How about accurately simulating/calculating the orbit of the Earth around the sun based on Newtons inverse square law, the mass of the Earth and sun, and a starting location/speed/direction for both the Earth and the sun. See if you can do a calculation once per hour and come back to about the same place in space (ie. a stable orbit to within one hour of the real one) after 24*365+6 calculations.

Sounds simple, contains a couple of hidden issues and opens up a lot of additional fun things to do.
 
Make an optical table with mirrors, beam splitters etc. guiding a laser beam or pulse.

Or have circle (or spheres if you want 3D) fall into a box. See if you can get them to settle without too many defects.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 52 ·
2
Replies
52
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K