Code_Saturne is an open-source computational fluid dynamics (CFD) software developed by EDF (Électricité de France). It is designed to handle a wide range of fluid flow simulations, including laminar and turbulent flows, heat transfer, and multiphase flows. The software is robust, highly flexible, and can be used for industrial applications, research, and educational purposes.
- Multi-physics Capabilities: Supports simulations involving fluid dynamics, thermal transfers, and coupling with other physics such as electromagnetism and structure mechanics.
- Turbulence Modeling: Includes various turbulence models such as RANS (Reynolds-Averaged Navier-Stokes), LES (Large Eddy Simulation), and DNS (Direct Numerical Simulation).
- Multiphase Flows: Ability to simulate flows involving multiple fluid phases (liquid, gas, particles).
- Mesh Flexibility: Can handle structured and unstructured meshes, with support for various mesh formats.
- Parallel Computing: Efficient parallel computing capabilities to handle large-scale simulations on high-performance computing (HPC) systems.
- User Customization: Allows for user-defined functions and advanced customization of simulations.
- Operating System: Linux, macOS, Windows (via WSL)
- Compilers: GCC, Intel, or Clang
- Dependencies: CMake, MPI library (such as OpenMPI or MPICH), HDF5, MEDCoupling, and optionally ParMETIS, Scotch, and others for specific features.
-
Clone the Repository:
git clone https://github.com/code-saturne/code_saturne.git cd code_saturne -
Create a Build Directory:
mkdir build cd build -
Configure the Build:
cmake ..
-
Build the Software:
make
-
Install the Software:
sudo make install
-
Set Up Environment Variables: Add the installation path to your
PATHandLD_LIBRARY_PATHin your shell configuration file (e.g.,.bashrcor.zshrc):export PATH=/path/to/code_saturne/bin:$PATH export LD_LIBRARY_PATH=/path/to/code_saturne/lib:$LD_LIBRARY_PATH
-
Create a New Case:
code_saturne create --study my_study --case my_case cd my_study/my_case/DATA -
Configure the Simulation:
- Edit the configuration files (
.xmland.cfgfiles cs_user_module.f90 and cs_user_parameters.f90) to define the simulation parameters, such as mesh, physical properties, boundary conditions, and numerical settings.
- Edit the configuration files (
-
compile the code:
code_saturne compile
-
Run the Simulation:
code_saturne run --initialization
-
Post-process the Results:
- Use visualization tools like ParaView or post-processing scripts to analyze the simulation results.
- User Guide: Comprehensive user guide and tutorials available at the Code_Saturne Documentation
- Community Support: Join the Code_Saturne Forum for community support and discussions.
- Contributing: Contributions are welcome! Please read the contributing guidelines and follow the code of conduct.
Liyuan LIU has developed the SRC for reacting flow, focusing on the combustion models module development. The methodology can refer to:
- Assessment of Bray Moss Libby formulation for premixed flame-wall interaction within turbulent boundary layers: Influence of flow configuration
- Statistical Behaviour and Modelling of Variances of Reaction Progress Variable and Temperature During Flame‑Wall Interaction of Premixed Flames Within Turbulent Boundary Layers