Simulations - Programming languages?

  • Context: Undergrad 
  • Thread starter Thread starter Shaybay92
  • Start date Start date
  • Tags Tags
    Programming Simulations
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
Shaybay92
Messages
122
Reaction score
0
I was wondering whether anyone has experience in astronomy simulations. If so, what language do you use and recommend? I've done Haskell and a very small bit of C++... I've been told Python is good, what are your thoughts?

Also are there any good websites that may get me started?

Thanks
 
Astronomy news on Phys.org
Shaybay92 said:
I was wondering whether anyone has experience in astronomy simulations. If so, what language do you use and recommend? I've done Haskell and a very small bit of C++... I've been told Python is good, what are your thoughts?

Also are there any good websites that may get me started?

Thanks
Great question! I would love to study the basic of Astronomy via computer programming.
 
Same here! Any leads?
 
I've seen simulations written in both FORTRAN and C. However, I have come across an N-body simulation written in CUDA, which is based on C. CUDA gives you the ability to program a new Nvidia graphics card, so you can run simulations using the graphics card's GPU to do calculations, instead of using the computer's CPU.
 
Funny, I was expecting a whole forum about simulation here.

I started working with Fortran last year, but since I'm a Windows user, I feel like I'm missing on a lot of things. Most graphics packages are for Linux, for example.

This year I'm thinking about changing my direction to Java. Does anyone knows of some kind of limitation for Java simulations? Is it safe to do simulations with it, with scientific purposes?