Computational Physics Simulations

  • #1
402
14

Summary:

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 cant seem to follow, as there 2D and 3D engines, parallel computing, different graphics libraries and I cant 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 differnt examples which confuse me, and what is the benfits to parallel computing.
 

Answers and Replies

  • #2
12,222
5,923
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 Taylor_1989

Related Threads on Computational Physics Simulations

Replies
2
Views
3K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
5
Views
5K
  • Last Post
Replies
3
Views
668
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
7K
Replies
9
Views
747
Replies
3
Views
2K
Top