{"id":597,"date":"2021-05-05T09:23:10","date_gmt":"2021-05-05T08:23:10","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf4\/?page_id=597"},"modified":"2026-03-06T17:21:17","modified_gmt":"2026-03-06T17:21:17","slug":"code_saturne","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/code_saturne\/","title":{"rendered":"Code_Saturne"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/www.code-saturne.org\/cms\/\">Code_Saturne<\/a> is the free, open-source software developed and released by EDF to solve computational fluid dynamics (CFD) applications. It solves the Navier-Stokes equations for 2D, 2D-axisymmetric and 3D flows, steady or unsteady, laminar or turbulent, incompressible or weakly dilatable, isothermal or not, with scalars transport if required. Several turbulence models are available, from Reynolds-Averaged models to Large-Eddy Simulation models.<\/p>\n<p>In addition, a number of specific physical models are also available as modules: gas, coal and heavy-fuel oil combustion, semi-transparent radiative transfer, particle-tracking with Lagrangian modeling, Joule effect, electrics arcs, weakly compressible flows, atmospheric flows, rotor\/stator interaction for hydraulic machines.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on accessing Code Saturne on the CSF. It is release under the <a href=\"https:\/\/github.com\/code-saturne\/code_saturne\/blob\/master\/COPYING\">GPL v2 license<\/a> and all usage must adhere to that license.<\/p>\n<h2>Set up procedure<\/h2>\n<p>To begin using Code_Saturne on CSF4, load one of the following environment modules:<\/p>\n<pre>\r\nmodule load code_saturne\/9.1.0-iomkl-2020.02-python-3.8.2\r\nmodule load code_saturne\/9.0.0-iomkl-2020.02-python-3.8.2\r\nmodule load code_saturne\/7.0.2-iomkl-2020.02-python-3.8.2\r\nmodule load code_saturne\/6.0.6-iomkl-2020.02-Python-3.8.2\r\nmodule load code_saturne\/5.0.13-iomkl-2020.02-Python-3.8.2\r\n<\/pre>\n<p>This will in turn load the modules used for the installation of the code (openmpi\/compilers\/python etc)<\/p>\n<p>Please do not run Code Saturn simulations on the login node. Jobs should be submitted to the compute nodes via batch.<\/p>\n<p>Please follow the <a href=\"https:\/\/www.code-saturne.org\/cms\/web\/Documentation\">instructions<\/a> in the documentation to create your case and study<\/a>.<\/p>\n<h2>Submitting Jobs<\/h2>\n<p>One method of submitting Code Saturne jobs to the batch system is to create a file named <code>run.cfg<\/code> in your <code>DATA<\/code> directory containing a <code>[slurm:job_header]<\/code> section. This allows you to specify the Slurm <code>#SBATCH<\/code> options that will be added to the jobscript that Code Saturn generates:<\/p>\n<pre>\r\ncd ~\/scratch\/my_case\/DATA\r\ngedit run.cfg\r\n... other code saturn config sections here ...\r\n\r\n<strong>[slurm:job_header]<\/strong>\r\n#SBATCH -p multicore           # A single node (multicore) job. Use multinode for larger\r\n#SBATCH -n 20                  # Up to 40 permitted in multicore, 80 or more in multinode\r\n#SBATCH -o job_%j.out.log\r\n#SBATCH -e job_%j.err.log\r\n#SBATCH -Jcode_saturne:my_case\r\n<\/pre>\n<p>Save the file, then submit the job using the following on the login node:<\/p>\n<pre>\r\nmodule load code_saturne\/9.1.0-iomkl-2020.02-python-3.8.2\r\ncode_saturn submit\r\n<\/pre>\n<p>This command will read your <code>run.cfg<\/code> file, create a jobscript with the <code>#SBATCH<\/code> lines given by the <code>[slurm:job_header]<\/code> section, and submit it to the batch system.<\/p>\n<h2>Further Documentation<\/h2>\n<p>The specific version documentation listed below gives full details of how to run Code_Saturne. <\/p>\n<h3>v5.0.13<\/h3>\n<p>Please see the <a href=\"\/csf4\/software\/applications\/code_saturne\/code_saturne-v5-0-9\/\">Code_Saturne v5.0.13 CSF4 documentation<\/a>.<\/p>\n<h3>v6.0.6<\/h3>\n<p>Please see the <a href=\"\/csf4\/software\/applications\/code_saturne\/code_saturne-v6-0-6\/\">Code_Saturne v6.0.6 CSF4 documentation<\/a>.<\/p>\n<h3>v7.0.2<\/h3>\n<p>Please see the <a href=\"\/csf4\/software\/applications\/code_saturne\/code_saturne-v7-0-2\/\">Code_Saturne v7.0.2 CSF4 documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Code_Saturne is the free, open-source software developed and released by EDF to solve computational fluid dynamics (CFD) applications. It solves the Navier-Stokes equations for 2D, 2D-axisymmetric and 3D flows, steady or unsteady, laminar or turbulent, incompressible or weakly dilatable, isothermal or not, with scalars transport if required. Several turbulence models are available, from Reynolds-Averaged models to Large-Eddy Simulation models. In addition, a number of specific physical models are also available as modules: gas, coal.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/code_saturne\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-597","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":20,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/597\/revisions"}],"predecessor-version":[{"id":1520,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/597\/revisions\/1520"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/media?parent=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}