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

Compressible flow problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2018, 12:28
Question Compressible flow problem
  #1
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Hi everyone.

Currently I am working on the compressible flow with CFX. Following up the CFX HELP DOCUMENT, a unsteady calculation was established. But I got some problems during running. After checking some previous thread, no relevant suggestions were found. So, I come here for help.

As shown in Fig, 20 iterations were calculated within each time step, though RMS has already dropped below 10-4, which confused me a lot. It should be noted that the incompressible calculation ran successfully. Also, mesh was much refined, Y+ is around 1. Total energy was turned on. SST model was employed. Fluid density is the function of pressure. A reasonable initial result was obtained with steady compressible flow. Besides, adaptive time step was tried but failed.

Any comments will be appreciated. Thanks in advance.
Attached Images
File Type: png convergence control.png (76.1 KB, 28 views)
File Type: jpg 20 iterations.jpg (134.3 KB, 46 views)
File Type: jpg 10-4.jpg (53.8 KB, 36 views)
Tingyun YIN is offline   Reply With Quote

Old   April 25, 2018, 13:23
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
H-Energy has not converged yet.
Opaque is offline   Reply With Quote

Old   April 25, 2018, 16:05
Default
  #3
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Quote:
Originally Posted by Opaque View Post
H-Energy has not converged yet.
Thanks for your reply.

Now that H-Energy is still higher than 10-4, are there any effective methods to drop it?
Tingyun YIN is offline   Reply With Quote

Old   April 25, 2018, 16:27
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Do not stop the run, let it converge until it reaches the appropriate residuals.

There are guidelines to improve convergence in the documentation.
Opaque is offline   Reply With Quote

Old   April 25, 2018, 16:32
Default
  #5
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Do not stop the run, let it converge until it reaches the appropriate residuals.

There are guidelines to improve convergence in the documentation.
See. That's also the reason why compressible has more convergence problems than incompressible flow..
Tingyun YIN is offline   Reply With Quote

Old   April 25, 2018, 17:35
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
In your case, what is your setting for the Maximum Number of Coefficient Loops ? I can only guess it is 20, increase it and see if the energy equation converges.

I can also see from you diagnostic output you are solving a transient homogeneous multiphase compressible flow. There may be all kind of non-linearities and w/o understanding the details of the physics you are modeling and there is no one answer that makes all compressible flow to converge.
Opaque is offline   Reply With Quote

Old   April 25, 2018, 17:55
Default
  #7
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Quote:
Originally Posted by Opaque View Post
In your case, what is your setting for the Maximum Number of Coefficient Loops ? I can only guess it is 20, increase it and see if the energy equation converges.

I can also see from you diagnostic output you are solving a transient homogeneous multiphase compressible flow. There may be all kind of non-linearities and w/o understanding the details of the physics you are modeling and there is no one answer that makes all compressible flow to converge.
Yes, you are right. For my case, cavitation is simulated with homo-mutiph-compre-transient method. Following your suggestions, maximum number of coefficient loops are increased till 100, convergence problem of H-Energy still can not be avoided, which is a big problem.
Tingyun YIN is offline   Reply With Quote

Old   April 25, 2018, 19:09
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
It is a bit weird that all equations are converged, except Energy. Given the rate of 1.00, I don't expect that even 100 coefficient loops will have any effect. Looks like it is stalled. First advice would be: decrease the timestep. Usually that is more efficient than more coefficient loops.

To nail down the problem you have to look deeper. A few suggestions:
1) What you could do is write out the residuals (Pre>Output Control>Output Equation Residuals) and look in Post where the residuals are high. It can be that it is just a single element that screws up the convergence. Then don't mind, as long as it is in a region that is less relevant.

2) There are 2 options to write out the residuals and monitoring data: 1) the values only at the end of the timestep (=default) but also 2) each iteration within the timestep (Pre>Output Control>Monitor>Monitor Coefficient Loop Convergence). Did you try this? This gives you graphical information on how the convergence evolves within the timestep. This can give more insight, sometimes. Given the rate of 1.00, Energy will be a flatliner I guess. Can you confirm?

3) This option also allows you to monitor the evolution of temperatures (and u,v,w,p,tke,ted, and massfracs) in multiple monitoring points. What do these tell you? Do you see flatliners for T after 5 coefficient loops? Then your solution is not so bad, provided the monitoring points are in a critical region.

If you are lucky, you have placed one of your monitoring point at a position where Energy does not converges very well. Then you might see the temperature is changing continuously (flip-flop). Then, again I would advise to decrease the timestep. Usually that is more efficient than more coefficient loops.

5) Do you monitor mass and energy balances? Do they tell you anything? Is energy far of zero?

6) Other options to investigate are:
- perform a calculation where you not only couple u,v,w&p but also the massfractions.
- use expert parameter volfrc sumapp
The latter two have effect on the calculation of the massfraction, which might help.

7) Don't bother about the residuals. Maybe it is only a problem in the first 10 timesteps.
Tingyun YIN likes this.
Gert-Jan is offline   Reply With Quote

Old   April 26, 2018, 05:03
Default
  #9
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
It is a bit weird that all equations are converged, except Energy. Given the rate of 1.00, I don't expect that even 100 coefficient loops will have any effect. Looks like it is stalled. First advice would be: decrease the timestep. Usually that is more efficient than more coefficient loops.

To nail down the problem you have to look deeper. A few suggestions:
1) What you could do is write out the residuals (Pre>Output Control>Output Equation Residuals) and look in Post where the residuals are high. It can be that it is just a single element that screws up the convergence. Then don't mind, as long as it is in a region that is less relevant.

2) There are 2 options to write out the residuals and monitoring data: 1) the values only at the end of the timestep (=default) but also 2) each iteration within the timestep (Pre>Output Control>Monitor>Monitor Coefficient Loop Convergence). Did you try this? This gives you graphical information on how the convergence evolves within the timestep. This can give more insight, sometimes. Given the rate of 1.00, Energy will be a flatliner I guess. Can you confirm?

3) This option also allows you to monitor the evolution of temperatures (and u,v,w,p,tke,ted, and massfracs) in multiple monitoring points. What do these tell you? Do you see flatliners for T after 5 coefficient loops? Then your solution is not so bad, provided the monitoring points are in a critical region.

If you are lucky, you have placed one of your monitoring point at a position where Energy does not converges very well. Then you might see the temperature is changing continuously (flip-flop). Then, again I would advise to decrease the timestep. Usually that is more efficient than more coefficient loops.

5) Do you monitor mass and energy balances? Do they tell you anything? Is energy far of zero?

6) Other options to investigate are:
- perform a calculation where you not only couple u,v,w&p but also the massfractions.
- use expert parameter volfrc sumapp
The latter two have effect on the calculation of the massfraction, which might help.

7) Don't bother about the residuals. Maybe it is only a problem in the first 10 timesteps.
Thanks a lot.

Follow your suggestions, residual and monitors were set to check the calculation. Something different were found. As shown in Fig, Imbalance of Fluid 1 is quite strange, which seems to be the main problem. It should be noted that Fluid 1 is water, of which density is the function of pressure and other properties are constant.
Tingyun YIN is offline   Reply With Quote

Old   April 26, 2018, 05:06
Default
  #10
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Here are residual results.
Attached Images
File Type: jpg imbalance.jpg (61.5 KB, 23 views)
File Type: jpg iteration.jpg (54.7 KB, 18 views)
Tingyun YIN is offline   Reply With Quote

Old   April 26, 2018, 05:23
Default
  #11
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
The flip-fliop of the energy balance might be based on inaccuracy of the energy equation. Suggestion: Go to double precision. Enthalpy has quite large numbers . Then small variations might be missed in the accuracy.

The imbalances are calculated based on what comes in your domain (I think). If this flow is small, flip-flip behaviour might also occur. So, further advice is difficult to give without knowing your case.

Do you use the built-in cavitation model? Do you really need total energy? Are you studying the thermal effects around collapse of cavitation bubbles?
Gert-Jan is offline   Reply With Quote

Old   April 26, 2018, 05:37
Default
  #12
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
The flip-fliop of the energy balance might be based on inaccuracy of the energy equation. Suggestion: Go to double precision. Enthalpy has quite large numbers . Then small variations might be missed in the accuracy.

The imbalances are calculated based on what comes in your domain (I think). If this flow is small, flip-flip behaviour might also occur. So, further advice is difficult to give without knowing your case.

Do you used the built-in cavitation model? Do you really need total energy? Are you studying the thermal effects around collapse of cavitation bubbles?
Yes! The default cav model was used.

I going to capture the shock wave due to the bubble collapse. Therefore, compressibility has to be calculated.

Fluid 2 is vapor, and Ideal Gas Law was employed. Actually, I am thinking Isothermal Compressibility might also be suitable for current work?
Tingyun YIN is offline   Reply With Quote

Old   April 26, 2018, 06:07
Default
  #13
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
This is a very difficult task. I doubt if the built in cavitation model is capable of this. CFX uses the simplified Rayleigh-Plesset model. It omitts the second order terms.......
You also need to include surface tension effedcts, which required a superb mesh. Are you aware of these implications?
Gert-Jan is offline   Reply With Quote

Old   April 26, 2018, 06:12
Default
  #14
Member
 
Tingyun YIN
Join Date: Apr 2017
Posts: 31
Rep Power: 9
Tingyun YIN is on a distinguished road
It's different.

Not the abrupt shock wave, it is just the condensation shock, which is the mechanism responsible for cavity shedding.
Tingyun YIN is offline   Reply With Quote

Reply

Tags
compressible flow problem


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
Having Problem solving 2D supersonic flow around a plug nozzle chrislloyd FLUENT 7 July 22, 2015 14:09
Problem, adding passive scalar transport for turbulent, compressible flow cryple OpenFOAM Programming & Development 2 March 25, 2013 12:00
Boundary condition for compressible flow ( cavity lid problem) pike@91 Main CFD Forum 2 June 2, 2012 18:04
Negative density problem. compressible flow Karl Siemens 2 July 10, 2008 17:41
Problem on boundry of two phase flow youngan CFX 0 June 30, 2003 03:32


All times are GMT -4. The time now is 20:04.