Friday, May 21, 2010

What is a good programming language for fluid dynamics and beginners?

I only know of a few like MATLAB, C++, PASCAL, and maybe Maple. I am quite the beginner having only a semester of PASCAL and MATLAB, but its been so long.

What is a good programming language for fluid dynamics and beginners?
The language really does not matter at all. They're all basically the same. That said, the industry uses Matlab for just about everything because it's easy, and C++ because there are optimizations you can do (optimizing floating point usage, memory, prefetching) just by writing your program a little different. So, for beginners, learn Matlab, since that's really what's used, and after enough use it's just transparent. Focus on the math, the language should be the least of your worries.
Reply:"know of" not "knows".





Hmmm, C++ is very powerful, lots of programs are written in C++/C. PHP is a great/powerful and easy to learn scripting language (not very good for object-oriented though). Java is getting better at OO, and is a fun language to learn. Visual Basic can be a lot of fun. PASCAL and MATLAB are older I from what I remember and are still good, but I'd go with C++ or Java, those are both pretty powerful and fun to learn, there are a lot of great things you can do with those!





Of course, any language that is object oriented will probably be in the neighborhood of what you are looking for.





Good luck!
Reply:You know quite a few? Then how can you call yourself a beginner? Unless you didn't bother learning those languages properly.





If you know C++, you definitely aren't a beginner. Perhaps you should go back to one of those languages you think you know, and spend more time with them.





You'll find that language in the end won't really matter. It's your ability to go from a model to algorithms to code that represents those algorithms. It's not about programming language, but about computer science. And you're fine with just about any mainstream language.


No comments:

Post a Comment