r/CFD • • Feb 03 '21

[February] Programming languages for CFD

As per the discussion topic vote, February's monthly topic is "Programming languages for CFD"

User /u/SignificantCell2 asked for Rust experiences, but that sounded overly specific so i op'ed'd it into this.

Talk about your experiences and preferences with various programming languages in the context of CFD programming.

43 Upvotes

72 comments sorted by

View all comments

Show parent comment

15

u/Ferentzfever Feb 03 '21

Matlab: Still better than my professor's hand-me-down F77 code (from his professor) that had to be recompiled every time you changed the mesh-size. Oh, and it was parallelized - on GPUs. And I made a GUI interface for it. And I didn't have to write my own linspace routines. And no GOTO. And we could post-process the data in-situ rather than write out a bunch of ASCII text files to be later read into Matlab for post-processing. And we didn't have to write our own FFT implementation. And I didn't have to teach undergrads what Cygwin was and what a "terminal" was... I will forever love Matlab, solely because it saved me from F77.

0

u/[deleted] Feb 03 '21

[deleted] — view deleted comment

3

u/turbulent_dan Feb 03 '21

There is nothing wrong with using Matlab if it makes you happy :) Is it wrong to be happy?

2

u/Ferentzfever Feb 03 '21

Yeah... but we got the tightest ends on the block.