Where Can I Learn More About Physics Graphics Simulations?

Click For Summary
SUMMARY

This discussion focuses on resources for learning physics graphics simulations, particularly through programming languages like Python, C++, Mathematica, and MATLAB. Key concepts include Ordinary Differential Equations (ODEs), Hamiltonian Mechanics, and chaotic systems, which are essential for modeling simulations such as gravity, pendulums, and waves. The Open Source Physics website and Scilab are recommended tools for practical applications, along with specific projects available on GitHub that utilize C++ for implementation.

PREREQUISITES
  • Familiarity with programming languages: Python, C++, Mathematica, MATLAB
  • Understanding of Ordinary Differential Equations (ODEs)
  • Knowledge of Hamiltonian Mechanics
  • Basic concepts of chaotic systems in physics
NEXT STEPS
  • Research methods for solving Ordinary Differential Equations (ODEs)
  • Explore Hamiltonian Mechanics and its applications in simulations
  • Investigate the Open Source Physics website for Java-based simulations
  • Learn about CUDA and OpenCL for real-time 3D simulations
USEFUL FOR

Students and professionals in physics, computer science, and engineering, particularly those interested in developing simulations for educational or research purposes.

Frank Schroer
Messages
7
Reaction score
0
TL;DR
Physics Graphics Simulation
Summary: Physics Graphics Simulation

I am interested in modeling physics using graphics simulations. I took a python course with CS majors and one of the assignments was to simulate a planet orbiting a star. That being said, I was wondering if anyone knew of any good resources that I could learn how to do more of these type of programs. For example, gravity simulations, pendulum, waves, etc. I am familiar with python, c++, mathematica, matlab.
 
Technology news on Phys.org
IMO learning by doing is the best way to approach this, so I'll give you some search terms.

Most of these things involve systems of Ordinary Differential Equations (ODEs). Search for methods of solving them. Another related area is Hamiltonian Mechanics (also an ODE formulation), which is at the root of a lot of simulations (but it is quite "fundamental" and does not model bulk effects such as friction, air resistance). Chaotic systems are fairly interesting too.

There is a lot to learn, so I would suggest maybe going back to your orbiting planet and do it again using the Hamiltonian. While you are researching and doing this you will probably stumble across enough to keep you going for ever (especially if you get into Partial Differential Equations)!

[EDIT] Just a thought, Scilab has a few things that might be useful, wrapped up in a sort of IDE.
 
Last edited:
  • Like
Likes   Reactions: Frank Schroer and jedishrfu
There’s the Open Source Physics website that has an extensive collection of java based simulations that use the osp java framework. There’s also a book based on the osp framework showing how they are used in different scenarios.

Www.compadre.org/osp
 
  • Like
Likes   Reactions: Swamp Thing, Frank Schroer and m4r35n357
My blog has links to some resources: https://compphys.go.ro I have even a 'gravity simulator' with OpenGL graphics. There is also a molecular dynamics project with an 'event driven' simulation. The Lattice Boltzmann one could be also implemented for 3D (you would need cuda or OpenCL to do the calculations if you need 'real time'), what I have there is 2D only. One that is also with nice graphics is the ray tracing project which is basically geometrical optics. The associated projects are here: https://github.com/aromanro?tab=repositories The downsize is that the projects are implemented in C++.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
10
Views
5K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
13K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
13
Views
3K