CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

rhoCentralFoam residuals

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 1 Post By TommyM
  • 7 Post By TommyM
  • 2 Post By TommyM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2019, 12:38
Default rhoCentralFoam residuals
  #1
Member
 
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7
TommyM is on a distinguished road
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.
Attached Images
File Type: png residuals.png (127.9 KB, 80 views)
Attached Files
File Type: gz rhoCentral_nozzle2D_smoothed.tar.gz (3.6 KB, 21 views)
vizvaz likes this.
TommyM is offline   Reply With Quote

Old   November 23, 2019, 09:49
Default
  #2
Member
 
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7
TommyM is on a distinguished road
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.
TommyM is offline   Reply With Quote

Old   January 8, 2020, 12:22
Default
  #3
Member
 
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7
TommyM is on a distinguished road
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.
emjay, hogsonik, u_yldz and 4 others like this.
TommyM is offline   Reply With Quote

Old   April 4, 2020, 01:33
Default
  #4
New Member
 
CHEUNG WING KI
Join Date: May 2017
Posts: 16
Rep Power: 8
as020002 is on a distinguished road
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
as020002 is offline   Reply With Quote

Old   April 4, 2020, 05:01
Default
  #5
Member
 
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 67
Rep Power: 7
TommyM is on a distinguished road
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
hogsonik and u_yldz like this.
TommyM is offline   Reply With Quote

Old   August 12, 2021, 09:33
Default
  #6
New Member
 
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 4
m_zanichelli is on a distinguished road
Quote:
Originally Posted by TommyM View Post
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.
Hello, I am having the same problem as I am simulating the inviscid flow around an airfoil in transonic conditions. From your answer I couldn't understand whether there is a way to "make the residuals appear" in this case by changing the solver.
m_zanichelli is offline   Reply With Quote

Old   August 12, 2021, 16:40
Default
  #7
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Tommy explains it in this sentence:

Quote:
Thus, if you are solving for an inviscid flow, then you will not have residuals since the calculation is all explicit.
What does he mean by explicit? He means, that in this case you can solve the equation explicitly, without iteration (like solving the equation 3x = 2 for x). That is why the solver reports zero iterations and zero values for the residuals. You'll see that in other solvers too, eg for the density/continuity equation.

So - to your question - can you "force the residuals to appear"? No, not in that solver, since there are no residuals to show.
Tobermory is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 03:56
motorBike Residuals for SST k-omega... and mine JR22 OpenFOAM Running, Solving & CFD 6 August 1, 2013 09:08
how to modify rhoCentralFoam to write continuity residuals? immortality OpenFOAM Programming & Development 0 May 1, 2013 12:44
judging convergence through residuals MachZero Main CFD Forum 7 December 25, 2012 12:18
Convergence - scaled vs unscaled residuals HS FLUENT 1 November 7, 2005 05:45


All times are GMT -4. The time now is 22:23.