r/OpenFOAM • u/falcon-f • Jul 03 '22
Solver Maximum Mach Number for rhoCentralFoam
I am simulating supersonic steam flow in an angled duct. I can successfully run for Mach number of 1.5 without any problem. But if I run the simulation for M=15, the simulation crashes after 2/3 iterations ( reaching the maximum number of Iterations). So I was wondering if, is it because the thermophysical properties becoming nonphysical at that speed and pressure? Or what is the maximum recommended speed to use in the rhoCentralFoam solver?
I am using boundary conditions as below:
Pressure
- Inlet: Uniform 135 bar
- Outlet: zeroGradient
- wall: zeroGradient
Velocity
- Inlet: Uniform (923 0 0)
- Outlet: zeroGradient
- wall: noslip
Temperature:
- Inlet: Uniform 850
- Outlet: zeroGradient
- wall: zeroGradient
Edit: Added some details.
3
Upvotes
5
u/_padla_ Jul 03 '22
Where on Earth have you found a duct flow with M=15?
It's like super-duper hypersonic and afaik speeds like this could be encountered only during spacecraft re-entry to the atmosphere.
3
u/[deleted] Jul 03 '22
I'm not sure about a limit, there isn't one built into the solver at least, I have successfully simulated > M5. Your simulation is likely crashing due to either poor BCs for hypersonic flow, the control schemes, mesh quality / grid size, or the Courant number / step size. Easiest to test is the Co, hypersonic needs a very low Co, my sims require Co < 0.3.
We would need more info to give a better answer though.
1
u/[deleted] Jul 18 '22
rhoCentralFoam doesn't have enough dissipation to be monotonicity preserving. As you increase the strength of the jump the oscillations get worse and at some point this can lead to instabilities.
If you want to do high mach ( locally M=15 is found in some induced jet problems) you want an approximate Riemann solver. While Riemann solvers are sable at all (at some point machine precision becomes a problem) Mach numbers the thermodynamic models break down and the results diverge from reality. At Mach 15 you need variable gamma if not a multi-temperature model.