Skip to main content

Code-Saturne

Code_Saturne is an open-source general-purpose Computational Fluid Dynamics (CFD) software developed by the French nuclear power group EDF, with wide applications in the energy sector, particularly in nuclear power.

By solving the Navier-Stokes equations, Code_Saturne can handle 2D/3D, steady/unsteady, laminar/turbulent (with various turbulence models), incompressible/weakly compressible, and isothermal/non-isothermal calculations. The software features good parallelism, supports general thermal, fluid, and environmental analysis, and includes multiple modules tailored for the energy industry.


1. Script Template

submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello.%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello.%j.err # Error log output (%j parameter value is jobId)

##############################################
# Software Envrironment #
##############################################
unset I_MPI_PMI_LIBRARY # Unset default MPI library, use Intel's built-in
export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
# load intel/2022 intelmpi/2022 # Load Intel environment

##############################################
# Run job
###############################################
export OMP_NUM_THREADS=1

code_saturne run --initialize --param case1.xml
./run_solver