CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Diverging solution from Pressure-based to Density-based

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By LuckyTran
  • 1 Post By killian153
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2020, 06:44
Default Diverging solution from Pressure-based to Density-based
  #1
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Hello everyone,

I try to simulate a convergent-divergent nozzle flow based on this subject https://ntrs.nasa.gov/search.jsp?R=19820006179
Following the method used by these people: https://tfaws.nasa.gov/TFAWS11/Proce...aXHURRLa3gRX1E

The methods used are:

- Pressure Based Coupled Solver (PBCS) with 1/ 2nd order for all equations OR 2/ PRESTO for Pressure and QUICK for other equations

- Density Based Solver (DBNS) with 2nd order for all equations

Input parameters:

Material: Air (ideal-gas)

Model: SST k-omega (2 equ.)

Boundary conditions: 1 pressure inlet (2.5 atm), 1 pressure outlet (1 atm)

Solution method: ROE-FDS - Least square - 2nd order

Initialization method: Hybrid or Standard

I successfully represented the model with the Pressure-based solver both for 2nd order and PRESTO/QUICK (as you can see on images attached).

But as soon as I move to the Density based solver, I get a diverging solution, even if I change the Hybrid initialization to the Standard initialization. It always starts pretty well but diverges after around 250 iterations, when the mach disk appears. You can see it on the other pictures attached (I stopped the simulation right before the divergence).

I tried to change settings such as turbulent model (going from k-omega to k-epsilon etc.) and also inlet pressure, pseudo transient on/off... but it always diverges. I have the same problem on other projects but here, I don't understand why I have good results with Pressure based solver and not with Density based solver.

At first, I thought it was related to Mesh quality but I tried on an other project (with good results on density based solver) to move from a good mesh (with a converged solution) to coarse mesh, and the solution still converges. I think the problem is related to the shocks, but I can't verify it.

Have you any thoughts about from where does the problem comes from?

Best regards,

Killian
killian153 is offline   Reply With Quote

Old   April 20, 2020, 06:58
Default Objective
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
If you are getting good results with PBNS, why do you want to use DBNS? Are you interested in comparing the results for both solvers?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 20, 2020, 06:59
Default
  #3
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
If you are getting good results with PBNS, why do you want to use DBNS? Are you interested in comparing the results for both solvers?
Sure! I would like to compare both solvers, as done in the paper linked above.

https://tfaws.nasa.gov/TFAWS11/Proce...aXHURRLa3gRX1E
killian153 is offline   Reply With Quote

Old   April 20, 2020, 07:13
Default Numerics
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Assuming the physical setup is as per the document you are referring, did you try AUSM+ instead of Roe FDS. Since you mentioned the problem appears as soon as Mach disk appears, AUSM+ might be able to handle that better.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 20, 2020, 08:01
Default
  #5
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Assuming the physical setup is as per the document you are referring, did you try AUSM+ instead of Roe FDS. Since you mentioned the problem appears as soon as Mach disk appears, AUSM+ might be able to handle that better.
I also tried AUSM+, as it's well suited for shocks. But the problem is still the same..

Yesterday, I tried to move from Implicit formulation to Explicit formulation and the solution is converging pretty well (residuals are quite stable) but it took approximately 6500 iterations to get the same result than a classical 300 iterations Implicit formulation, so I'm not really satisfied with this.
killian153 is offline   Reply With Quote

Old   April 20, 2020, 09:44
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You can probably get it to work eventually if you just play with the solver settings.


6500 iterations is not a lot and I would never trust results with only 300 iterations in them.
LuckyTran is offline   Reply With Quote

Old   April 20, 2020, 11:27
Default
  #7
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
You can probably get it to work eventually if you just play with the solver settings.


6500 iterations is not a lot and I would never trust results with only 300 iterations in them.
I tried to play with the solver settings (select/unselect pseudo-transient, changing boundary conditions etc.) but nothing worked.

My sentence was more like "To get to the point where I am after 300 iterations with PBCS, I need to do 6500 iterations with DBNS and I need to use Explicit formulation". I don't assume that the 300 iterations made with PBCS are enough, but simply that it's a quite stabilized solution You can clearly see it with the pictures attached.

I have no problem with the use of Explicit formulation, but I don't understand why the solution doesn't work with Implicit formulation, as soon as the shock is appearing.
killian153 is offline   Reply With Quote

Old   April 20, 2020, 11:44
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
By playing, I don't mean changing schemes. Keep all models the same and play with only the initialization & the solution controls. E.g. with a low enough Courant number, it should converge, maybe in 10,000 iterations.


There are a ton of accelerators under the hood used to speed up convergence (so that it doesn't take 6000 iterations) and the cost of accelerating the solution is that it become less stable. This stuff happens all the time. The DBNS is a coupled solver which is naturally faster (and less stable) than PBNS.
aero_head likes this.
LuckyTran is offline   Reply With Quote

Old   April 20, 2020, 19:53
Default
  #9
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
By playing, I don't mean changing schemes. Keep all models the same and play with only the initialization & the solution controls. E.g. with a low enough Courant number, it should converge, maybe in 10,000 iterations.


There are a ton of accelerators under the hood used to speed up convergence (so that it doesn't take 6000 iterations) and the cost of accelerating the solution is that it become less stable. This stuff happens all the time. The DBNS is a coupled solver which is naturally faster (and less stable) than PBNS.

Ok so I know what the problem was: Fluent automatically changed the CFL number to 5 when I switched from PBCS to DBNS, and I didn't noticed that since it was initially set to 1. Now I understand why I got this fast divergence..


Here's what I get with a CFL = 1, DBNS, AUSM and 10 000 iterations (far better) :


93803212_1506443509525076_2617933053976117248_n.png 94569242_250987429370051_8343956278745235456_n.png

But do you know why I have this kind of curves compared to their ones? Is it related to my mesh?

94123569_637110510176368_3397079605104869376_n.jpg

As you can see, the the curves are steeper.
aero_head likes this.
killian153 is offline   Reply With Quote

Old   April 21, 2020, 03:35
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
That's par for the course. Numerically trying to resolve discontinuities and get really nice steep-fronted solutions is tough without specialized schemes. Probably you are predicting the location of the shocks pretty well (but not their thickness).

Actually if you compare your numerical results to their numerical results on slide 18, they're very similar.
aero_head likes this.
LuckyTran is offline   Reply With Quote

Old   April 21, 2020, 07:44
Default
  #11
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
That's par for the course. Numerically trying to resolve discontinuities and get really nice steep-fronted solutions is tough without specialized schemes. Probably you are predicting the location of the shocks pretty well (but not their thickness).

Actually if you compare your numerical results to their numerical results on slide 18, they're very similar.
Sure, I understand. Do you think the better curvature they get is related to the mesh quality (slide 18)? They better represent the experimental data, with the same boundary conditions and methods so I guess this is related to the mesh.
killian153 is offline   Reply With Quote

Old   April 21, 2020, 14:57
Default
  #12
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I have no comments on the mesh because I have no idea what it looks like.
LuckyTran is offline   Reply With Quote

Old   April 21, 2020, 18:19
Default
  #13
New Member
 
Killian
Join Date: Nov 2017
Posts: 26
Rep Power: 8
killian153 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I have no comments on the mesh because I have no idea what it looks like.

Here's my mesh near the wall (I know it's not a very fine mesh):


mesh.jpg
killian153 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
Pressure fields in FOAM, p field, total pressure, etc. Tobi OpenFOAM Post-Processing 9 March 25, 2022 01:33
Compressible Flow on Pressure Based Daryun FLUENT 2 July 5, 2019 10:44
Pressure and density based solver JOKER FLUENT 0 February 18, 2011 09:58
Pressure gradient in UDF for density based solver matzb FLUENT 0 February 22, 2010 06:34
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


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