Re: RSM SSG model + Least Squares + All vertexes does not work
Posted: Wed Oct 19, 2022 5:21 pm
Hello. I made calculation starting from "good" initial approximation and it was successful with real viscosity and SOLU discretisation with blending factor 0.75. Thanks for your help!
Here is an algorithm I used to solve this problem.
Stage 1
Fluid viscosity: 500 x Real (suitable for air).
Target CFL: 1.0.
Discretisation scheme: Upwind.
Limits/relaxation: none.
Flux reconstruction: all variables.
Iterations: ~100.
Stage 2
Fluid viscosity: Real.
Target CFL: 1.0 (same as before).
Discretisation scheme: Upwind.
Limits: Velocity components => +/-70 m/s, Pressure => +/-1500 Pa.
Relaxation==relaxv: Velocity => 0.1, Pressure => 0.1, Turbulence: 0.5
Flux reconstruction: all but turbulence.
Iterations: ~100.
Stage 3
Discretisation scheme: SOLU with blending factor 0.75.
Other: the same as before.
I think this algorithm may be simplified, maybe fitting in just 2 stages with SOLU scheme on second stage. Particular pressure and velocity limits can be adjusted for specific case, in my case there is an air-cooled heat exchanger with low pressure drop and low velocities. But it's rare that non-fully-coupled solver will reach convergence in just one stage even with k-epsilon model (in Fluent, we also use first order scheme for the first stage, although there is always relaxation for pressure, velocity and turbulence). So, with RSM, we need 2-stage approach to converge in non-fully-coupled solver. By the way, CFX with it's coupled solver diverges easily with RSM (the same is for Fluent), it's not a simple model to reach convergence with.
It would be nice if options for all variable limits and relaxation will appear in Saturne GUI. I used cs_user_parameters.c and cs_user_extra_operations.c to implement limiting and relaxation, but it would be simpler to adjust GUI settings.
Another thing I encountered with the fan model. It's not connected with common calculation stability. Fans need some relaxation too. I run another geometry now with the same other parameters. Calculation is stable even with SOLU (blending 0.75) from the beginning, that was never seen before (without relaxation and limiting). But fan pressures started to diverge when they was approaching their expected values. It's because with real fan curves I will not obtain fixed mass flow that I need. So I make fan curve hard (stiff) to force correct flows. It usually works but in this case fan pressures diverged incridibly. Example: 315 Pa, -879 Pa, 3042 Pa, -1.5E4 Pa, 1.7E4 Pa. Please, introduce a relaxation coefficient for fan pressure in fan model. Also, fixed fan flow would be useful (selection between fan curve or fixed mass flow - both options are needed in engineering practice).
Here is an algorithm I used to solve this problem.
Stage 1
Fluid viscosity: 500 x Real (suitable for air).
Target CFL: 1.0.
Discretisation scheme: Upwind.
Limits/relaxation: none.
Flux reconstruction: all variables.
Iterations: ~100.
Stage 2
Fluid viscosity: Real.
Target CFL: 1.0 (same as before).
Discretisation scheme: Upwind.
Limits: Velocity components => +/-70 m/s, Pressure => +/-1500 Pa.
Relaxation==relaxv: Velocity => 0.1, Pressure => 0.1, Turbulence: 0.5
Flux reconstruction: all but turbulence.
Iterations: ~100.
Stage 3
Discretisation scheme: SOLU with blending factor 0.75.
Other: the same as before.
I think this algorithm may be simplified, maybe fitting in just 2 stages with SOLU scheme on second stage. Particular pressure and velocity limits can be adjusted for specific case, in my case there is an air-cooled heat exchanger with low pressure drop and low velocities. But it's rare that non-fully-coupled solver will reach convergence in just one stage even with k-epsilon model (in Fluent, we also use first order scheme for the first stage, although there is always relaxation for pressure, velocity and turbulence). So, with RSM, we need 2-stage approach to converge in non-fully-coupled solver. By the way, CFX with it's coupled solver diverges easily with RSM (the same is for Fluent), it's not a simple model to reach convergence with.
It would be nice if options for all variable limits and relaxation will appear in Saturne GUI. I used cs_user_parameters.c and cs_user_extra_operations.c to implement limiting and relaxation, but it would be simpler to adjust GUI settings.
Another thing I encountered with the fan model. It's not connected with common calculation stability. Fans need some relaxation too. I run another geometry now with the same other parameters. Calculation is stable even with SOLU (blending 0.75) from the beginning, that was never seen before (without relaxation and limiting). But fan pressures started to diverge when they was approaching their expected values. It's because with real fan curves I will not obtain fixed mass flow that I need. So I make fan curve hard (stiff) to force correct flows. It usually works but in this case fan pressures diverged incridibly. Example: 315 Pa, -879 Pa, 3042 Pa, -1.5E4 Pa, 1.7E4 Pa. Please, introduce a relaxation coefficient for fan pressure in fan model. Also, fixed fan flow would be useful (selection between fan curve or fixed mass flow - both options are needed in engineering practice).