Reputation: 173
I found an interesting YouTube video about instant CFD visualization in Fortran language.
From the video, I can see updater writes and runs Fortran code in MS Visual Studio in Windows operating system. I wonder how the visualization part is made and if not in MS Windows, but in Mac or Linux, do we still have some alternative IDE to do this kind of instant visualization directly from Fortran language?
I know some instant visualization tools like Processing can also do this, but the Java, Python or JavaScript are not as fast as Fortran to simulate and visualize flow.
Upvotes: 1
Views: 392
Reputation: 175
but in Mac or Linux, do we still have some alternative IDE to do this kind of instant visualization directly from Fortran language?
Yes, you can do that with our gtk-fortran binding (GNU license): https://github.com/vmagnin/gtk-fortran/wiki
The widget GtkDrawingArea can be used to show a GdkPixbuf, which is a 1D array containing the RGB intensities of each pixel of the image. You can update this area from your computing procedure. By choosing the update rate, you can display you evolving data with very limited speed impediment.
You just need a Fortran compiler and GTK being multi-platform, you can use your program on Windows (via MSYS2), MacOS, Linux, FreeBSD...
Upvotes: 1