Code Saturne is an open source software for Computational Fluid Dynamics (CFD) simulations developed by EDF. Running your Code Saturne simulation on Qarnot is as easy as uploading your case and launching a script. Here’s a walk-through of the steps.
The test case uses Code Saturne 6.2.1.
If you are interested in another version, please send us an email at email@example.com.
Please ensure that you have created a Qarnot account here.
This test case is based on the shear driven cavity flow tutorial simulation. You can find more information about the test case here. You can download the case folder here, which contains the mesh and case setup files. You should put it at the same folder level as the script to launch the calculation. Please note that it needs to be unzipped before it can be used on Qarnot.
Launching the case
Before starting a calculation with the Python SDK, a few steps are required:
Be sure you have copied your authentication token in the script (instead of
<<<MY_SECRET_TOKEN>>>) to be able to launch the task on Qarnot.
To launch this script, simply copy the following code in a Python script, put at the same level as the cavity folder and execute
python3 code_saturne.py & in your terminal.
At any given time, you can monitor the status of your task on the general general web interface Console. The following figure shows a successful Code Saturne demo simulation on Qarnot’s console.
You should also now have a result folder in the output bucket and on your computer containing all the numerical results. You can open the RESULTS_FLUID_DOMAIN.case file (in the codesaturne_results/test/RESU/date-and-time/post processing folder) in Paraview or any other viewer. You can also use our Paraview Web payload to view the results online if needed.
That’s it! If you have any questions, please contact firstname.lastname@example.org and we will help you with pleasure!