Computational Physics Simulations

Click For Summary
SUMMARY

The discussion centers on the best programming language for computational physics simulations, specifically in fluid mechanics and vector fields. The user, having completed an undergraduate degree in physics, is exploring Python and C++ for this purpose. While Python is noted for its efficiency in numerical computations and has modules for 3D simulations, C++ is preferred for more complex 3D modeling and simulations. The user seeks guidance on starting with parallel computing and understanding its benefits, as well as recommendations for resources like the book "An Introduction to Computer Simulation Methods" by Gould, Tobochnik, and Christian.

PREREQUISITES
  • Basic understanding of Python and C++ programming languages
  • Familiarity with fluid mechanics concepts, particularly Stokes' Law
  • Knowledge of computational physics principles
  • Introduction to parallel computing concepts
NEXT STEPS
  • Research C++ libraries for 3D simulations, such as OpenGL or DirectX
  • Explore Python libraries for numerical computations, including NumPy and SciPy
  • Learn about parallel computing frameworks like OpenMP or MPI
  • Read "An Introduction to Computer Simulation Methods" by Gould, Tobochnik, and Christian for practical examples
USEFUL FOR

This discussion is beneficial for physics students, computational physicists, and software developers interested in simulation techniques, particularly in fluid mechanics and parallel computing.

Taylor_1989
Messages
400
Reaction score
14
TL;DR
Advice on programing languages for computational physics
I am currently learning python and c++ and interested in the near distant future on exploring some computational physics simulations. But have seem to hit a road block. I have just finished my undergrad in physics and have some time to explore physics concepts that were never really cleared up during my undergrad. My issue is what language is best for simulations.

The areas in which I am most interested in exploring is Fluid mechanics specially flow of fluids around objects and vector fields and in generally learning more about stokes law and other aspects of fluid mechanics through simulations.

My other interests are Lagrange and Hamiltonian mechanics and eventually moving into quantum mechanics.

From what I have read from the internet, python is slightly more efficient for numerical computations tho there are modules that will allow for 3d simulations in python, C++ seem to be preferred.

Looking more into 3d simulations and building fluid models C++ seem to be best but there a lot of stuff that I can't seem to follow, as there 2D and 3D engines, parallel computing, different graphics libraries and I can't seem to get a handle where to start?Could anyone lend some advice on how someone new to computational physics simulations, how to go about learning a building these simulations.
Is python worth exploring for 3D simulations or is C++ way to go and maybe could some please explain what parallel computing is in laymends terms beacuse my internet search on this seem to give different examples which confuse me, and what is the benfits to parallel computing.
 
Technology news on Phys.org
Well there's a book by Gould, Tobochnik and Christian called An Introduction to Computer Simulation Methods.

The examples are in Java and the they provide the source code for them at:

www.compadre.org/osp
 
  • Like
Likes   Reactions: Taylor_1989

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
10
Views
5K
Replies
48
Views
5K
  • · Replies 17 ·
Replies
17
Views
5K
Replies
1
Views
2K
  • · Replies 102 ·
4
Replies
102
Views
3K