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/Cynox Feb 03 '21
FEniCS (and Firedrake) are high-level (equation) to low-level (C, C++, numba code) transpilers. You can use the generated code on your own, but most use it hooked into the MPI parallel mesh implementations in the software since this is super easy to use. You need to be able to express your problem on weak form and select any one of the bunch of different of FEM discretizations supported by the transpilers. https://fenicsproject.org/ https://www.firedrakeproject.org/