Saturne is not calculating
- CAVT
- Topic Author
- Offline
- Senior Member
-
- Posts: 59
- Thank you received: 1
In any of both cases, you're very likely to need more than 100 iterations, and it's recomended that you use lower than by default relaxation coefficients (0.5 or less). Give also logical initialization values to the speed and any other scalar you may have defined. Check also that your mesh is adequate for the case; it's harder to notice, but a good method is starting with coarse meshes and then refine as you see the solution converges.
Following these hints I was able to run very nice simulations, or at lest the colors are fancy

- Yvan Fournier
- Offline
- Senior Member
-
- Posts: 46
- Thank you received: 6
I'll just add that I have never needed (nor tried) relaxation coefficients under 0.7, but with some meshes (even purely hexahedral meshes with stretched/warped sections), using relaxation is the only way to obtain convergence (or at least avoid divergence). Other parameters, such as flux reconstruction at the boundaries, number of sweeps, linear solver precision, etc. are important, but in the case of a problem, I would recommend trying relaxation first.
Also, when running unsteady calculations, watch your CFL number. Code_Saturne uses a segregated solver, not a coupled solver, and CFL numbers above 5 should be avoided if possible (CFL values up to 20 in a small number of cells may be acceptable, but it is not recommended to have an average CFL above 5 (1 for LES calculations).
The CFL (Courant) number may be visualized in Code_Saturne's postprocessing output, which is the best way of checking it.
Note also that some of us from the Code_Saturne developpement team check this forum occasionally, but check the code-saturne.info forum more regularly (though registration requires sending an e-mail to saturne-support, as described on the site)
Best regards,
Yvan
- Claus
-
- Offline
- Moderator
-
- Posts: 670
- Thank you received: 34
Hello,
I'll just add that I have never needed (nor tried) relaxation coefficients under 0.7, but with some meshes (even purely hexahedral meshes with stretched/warped sections), using relaxation is the only way to obtain convergence (or at least avoid divergence). Other parameters, such as flux reconstruction at the boundaries, number of sweeps, linear solver precision, etc. are important, but in the case of a problem, I would recommend trying relaxation first.
Also, when running unsteady calculations, watch your CFL number. Code_Saturne uses a segregated solver, not a coupled solver, and CFL numbers above 5 should be avoided if possible (CFL values up to 20 in a small number of cells may be acceptable, but it is not recommended to have an average CFL above 5 (1 for LES calculations).
The CFL (Courant) number may be visualized in Code_Saturne's postprocessing output, which is the best way of checking it.
Note also that some of us from the Code_Saturne developpement team check this forum occasionally, but check the code-saturne.info forum more regularly (though registration requires sending an e-mail to saturne-support, as described on the site)
Best regards,
Yvan
Since you replied here, I'll continue the thread: What values should be set for 'initialization' for a given simulation.
Say for a flow in a pipe that has an inlet vel. of 1m/s or 10m/s etc.
Regards,
Claus
Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version
- CAVT
- Topic Author
- Offline
- Senior Member
-
- Posts: 59
- Thank you received: 1
I've made an unsteady simulation of an air extracting system with two inlets, one which injects and other extracting. I set the initial velocity matching the magnitude, direction and sense of the injection inlet, but rather opposite to the extracting inlet. The results were very nice even with a quite coarse mesh. I made the simulation as unsteady, laminar and 1000 steps of 0.01s... took only 12mins

Post edited by: CAVT, at: 2010/09/09 15:42<br /><br />Post edited by: CAVT, at: 2010/09/09 15:46