Simple pipe simulation which diverge... after a while
Posted: Sat Sep 06, 2025 3:16 pm
Hello,
I am trying to learn code_saturne usage and I encounter an issue I cannot fix. Basically, I am trying to perform a simulation on a simple 3D pipe with water flow specified at the inlet with a reasonable velocity value to generate a turbulent flow. The idea is just to perform simulation starting from scratch, generate the mesh with salome, run the simulation with code_saturne and post-processing with paraview. I obtain a mesh which is not too bad from Salome (from my pov) see a picture just after :

The transition between the last layer of prisms and the middle cells is a bit high but from my point of view it should not be an issue for a such simple case. I mean, the solver should be able to handle this mesh...
I run the calculation and at the beginning everything is fine and after a while, the residuals starts to become crazy :

It seems that the pressure starts to be crazy and finally the simulation diverge... I have checked the calculation in Paraview and it seems that the issue is linked with the outlet even though the velocity profile is reasonable everywhere before starting to become crazy at the outlet. See just after the outlet when it diverges :

I have tried to keep the settings as default as possible to perform this "basic" simulation. I have tried to change the mesh, increase the length of the pipe, increase the water viscosity by a factor 2 and the same issue still to occurs. The inlet velocity is at 0.3 m/s, k-w SST turbulence model is used and I am using SIMPLEC with a constant time step option and 0.01 sec as reference time step. Of course, I thought about an issue about the outlet boundary condition but there is apparently nothing to specify regarding the oulet in code_saturne GUI...

Do you have any idea about the root cause for this issue ?
Thank you for your help !
Pierre
I am trying to learn code_saturne usage and I encounter an issue I cannot fix. Basically, I am trying to perform a simulation on a simple 3D pipe with water flow specified at the inlet with a reasonable velocity value to generate a turbulent flow. The idea is just to perform simulation starting from scratch, generate the mesh with salome, run the simulation with code_saturne and post-processing with paraview. I obtain a mesh which is not too bad from Salome (from my pov) see a picture just after :

The transition between the last layer of prisms and the middle cells is a bit high but from my point of view it should not be an issue for a such simple case. I mean, the solver should be able to handle this mesh...
I run the calculation and at the beginning everything is fine and after a while, the residuals starts to become crazy :

It seems that the pressure starts to be crazy and finally the simulation diverge... I have checked the calculation in Paraview and it seems that the issue is linked with the outlet even though the velocity profile is reasonable everywhere before starting to become crazy at the outlet. See just after the outlet when it diverges :

I have tried to keep the settings as default as possible to perform this "basic" simulation. I have tried to change the mesh, increase the length of the pipe, increase the water viscosity by a factor 2 and the same issue still to occurs. The inlet velocity is at 0.3 m/s, k-w SST turbulence model is used and I am using SIMPLEC with a constant time step option and 0.01 sec as reference time step. Of course, I thought about an issue about the outlet boundary condition but there is apparently nothing to specify regarding the oulet in code_saturne GUI...

Do you have any idea about the root cause for this issue ?
Thank you for your help !
Pierre