|
[Sponsors] |
November 22, 2019, 13:38 |
rhoCentralFoam residuals
|
#1 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 8 |
Hi All,
I am trying to simulate supersonic flow in a nozzle (rhoCentralFoam) and I don't know why residuals are always zero. Anyway, simulation proceeds and looking at the flowfield by Paraview the results seem to be good. I really don't know how it is possible. Does anyone know what is the problem? Files are attached. Thanks in advance. |
|
November 23, 2019, 10:49 |
|
#2 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 8 |
I noticed that this happens for inviscid simulation but not for viscous ones.
I know that my question could be trivial but I have very little knowledge in density-based solvers. |
|
January 8, 2020, 13:22 |
|
#3 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 8 |
I have found the solution to my problem. It is a trivial problem but I post here the solution so that it could be useful for someone new to OpenFOAM, just like me.
RhoCentralFoam solves explicitly the inviscid part of governing equations, and then correct them implicitly when it comes to viscosity. Thus, if you are solving for an inviscid flow, then you will not have residuals since the calculation is all explicit. You can also try to change this in fvSolution, but rhoCentralFoam will continue to use diagonal solver (explicit) for the (inviscid) variables. Hope that all is correct. |
|
April 4, 2020, 02:33 |
|
#4 |
New Member
CHEUNG WING KI
Join Date: May 2017
Posts: 16
Rep Power: 9 |
Hi Tommy,
Thanks for the info, I recently implemented a reacting rhoCentralFoam solver to address problems with reacting flow. I also found out that the solver itself is not quite stable (not easy to converge) when solving cases from initial time, especially in supersonic flow. I always have to use pressure-based(e.g. sonicFoam, reactingFoam, rhoReactingFoam) to obtain a decent initial solution then go to the density-based. In addition, when using different -based solver, they manifest quite different result(e.g. max temperature, flow pattern). Does anyone have an idea to give me a inspiration why it happens like that? Thanks, Rick |
|
April 4, 2020, 06:01 |
|
#5 |
Member
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 8 |
Hi Rick,
I don't know the physics of your case but, as far as I know, rhoCentralFoam is the right solver if you have a supersonic flow, especially when strong shockwaves are present. I tried to use rhoPimpleFoam and reactingFoam (in their 'transonic' forms) to solve internal supersonic flows and they worked, but this did not happen for external flows with complex waves interaction (e.g. Mach diamond structure) or for internal flows with strong changes in geometry (e.g. nozzles with sharp edges), where the pressure-based solvers gave me unphysical results. About rhoCentralFoam, it is highly unstable and the only way to overcome this issue (to my knowledge) is to reduce the Courant number. In my opinion, first you should find which of these two solvers produces the correct solution and: - if it is rhoCentralFoam, then pressure-based solvers could be not appropriate for your case. - if it is rhoPimpleFoam, then your implementation of reacting rhoCentralFoam or the settings of your simulations could have some errors. I hope this comment could help you, but I am not an expert so I might be wrong in something. Tommy |
|
August 12, 2021, 10:33 |
|
#6 | |
New Member
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Quote:
|
||
August 12, 2021, 17:40 |
|
#7 | |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 745
Rep Power: 14 |
Tommy explains it in this sentence:
Quote:
So - to your question - can you "force the residuals to appear"? No, not in that solver, since there are no residuals to show. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to make rhoCentralFoam to write continuity residuals? | immortality | OpenFOAM Running, Solving & CFD | 6 | April 18, 2018 04:56 |
motorBike Residuals for SST k-omega... and mine | JR22 | OpenFOAM Running, Solving & CFD | 6 | August 1, 2013 10:08 |
how to modify rhoCentralFoam to write continuity residuals? | immortality | OpenFOAM Programming & Development | 0 | May 1, 2013 13:44 |
judging convergence through residuals | MachZero | Main CFD Forum | 7 | December 25, 2012 13:18 |
Convergence - scaled vs unscaled residuals | HS | FLUENT | 1 | November 7, 2005 06:45 |