r/CFD • u/Overunderrated • 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
View all comments
Show parent comment
1
u/flying-tiger Feb 13 '21
Totally valid point re: complexity, but where I have found this to really shine is code coupling. We have stable, high physics legacy applications that no one wants to rewrite. In the past, when we did coupling, it would be orchestrated in the shell with files being written and passed around. It’s was awful. I found that putting a bit of effort into a Python wrapper with a decent API makes such loose couplings much more ergonomic and flexible. Very much worth the effort.