|
[Sponsors] |
CFX simulation of trans-critical CO2 does not converge |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 20, 2024, 03:59 |
CFX simulation of trans-critical CO2 does not converge
|
#1 |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Description of the problem: The physical model is a labyrinth seal, the inlet is supercritical state, and the outlet is two-phase state.
Numerical methods: Given the total temperature and total pressure at the inlet, given the static pressure at the outlet, RGP (real gas property) was used for CO2 physical properties, HBM (homogeneous binary mixture) model was used for two-phase simulation. Current problems: My current practice is to fix the inlet pressure and gradually reduce the outlet pressure. Once the outlet pressure is reduced a lot, especially near the critical point, the value begins to oscillate and not converge, and the import and export mass flow rate is not conserved. There are researchers who use CFX to do trans-critical CO2 numerical simulation work, please give some suggestions, whether in terms of physical properties, or pre-treatment Settings, grid ... Thank you very much. |
|
November 20, 2024, 05:59 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144 |
This is a very complex model and there are many, many things which could be causing your issues. You have not given enough detail for me to make specific suggestions, but definitely have a read of this FAQ: https://www.cfd-online.com/Wiki/Ansy...gence_criteria
As it discusses the general approach for convergence difficulties. But one specific suggestion I will make is: For a multiphase model with complex material properties the quality of the mesh will be vital. So any efforts you make in improving your mesh will help, even if you think your current mesh is "OK". This model is going to be more demanding on mesh quality than normal, so extra effort to get the mesh quality improved will help a lot.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 20, 2024, 10:00 |
|
#3 | |
Senior Member
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33 |
Quote:
How did that case converge? What adjustments out of the ordinary did you make?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
November 20, 2024, 10:22 |
reply
|
#4 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
My model comes from other people's references. It is a labyrinth seal, but it has only one tooth, so the geometry is relatively simple. The grid is divided into structured grids using ICEM software, the mesh quality is very high, and the near wall is encrypted. The current situation is as follows: for example, when the given inlet pressure is 10MPa(A), the calculation can be convergent when the outlet pressure is 9.2MPa(A). However, when the outlet pressure continues to decrease, such as to 8.5MPa(A), the calculation will not collapse, but the outlet mass flow rate starts to fluctuate, and the relative deviation of the inlet and outlet flow rate is nearly 10%. I suspect that this may be related to the physical properties of CO2, because the physical properties of CO2 change extremely violently near the critical point, and when the outlet gets closer and closer to the critical state point, the value is unstable. |
||
November 20, 2024, 10:36 |
reply
|
#5 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
I haven't done a simulation of the ideal gas yet. My model is derived from other people's references, and my aim is to cite his experiments to validate my numerical method. In the original article, a labyrinth seal was tested under several working conditions. The inlet pressure and temperature of each group were fixed, and only the outlet pressure was changed. I am currently calculating convergence in two conditions. The inlet pressure is 10MPa(A). When my outlet pressure drops to, for example, 8.5MPa(A), the calculation does not converge, and the residual level remains between 10e-2 and 10e-3. The relative deviation of the inlet and outlet flow is nearly 10%, and the outlet flow has been fluctuating. What I have done so far: 1. I have tried different resolution grids; 2. Adjusted the auto timescale from 0.0001 to 1; 3. The discrete accuracy (upwind/high resolution) of advection scheme and turbulence numerics is adjusted; 4. Tried the temperature and pressure range of different RGP(real gas property) tables, as well as the temperature and pressure interval; |
||
November 20, 2024, 10:54 |
|
#6 | |
Senior Member
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33 |
Quote:
Attempt to run the same model using ideal gas, and see what happens. If the instability stays there, perhaps softer, you know the problem is not real gas. If it goes away regardless how much you change the outlet pressure -> thermodynamic non-linearity impacting the convergence. Even if the problem is real gas, my next step would be "real gas ONLY". Remove the binary mixture, and use the "real gas model" for the gas phase ONLY, rinse and repeat.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
November 20, 2024, 11:08 |
reply
|
#7 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
For example, phase transition will occur only when the outlet pressure is lower than 7MPa, while no phase transition will occur when the inlet pressure is higher than 7MPa. Therefore, when I calculate the outlet pressure of 8.5MPa, I do not use the binary mixture model, but only give pure CO2 gas, and the situation of non-convergence is the same as that with the binary mixture. |
||
November 20, 2024, 14:36 |
|
#8 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
What Temperature range is this simulation?
The previous suggestions are great, I'd follow those first. Why Pressure IN and Pressure OUT conditions? Why not Mass Flow Inlet and Pressure Outlet, which is known to be much more stable. Even Pressure IN and MassFlow Out would be better than Pressure/Pressure, which can be a pain. Then you can tune your boundary conditions or create flow curves and you can get the same results as you wanted with your Pressure/Pressure conditions, just with better numerical stability. I know you said you studied table step size, but this would be one suggestion to make it very fine, even several hundred MB .rgp file is no big deal. What .rgp file writer are you using? ANSYS has a great one built in which uses python. I found it better than NISTtoRGP program I used previously. |
|
November 20, 2024, 15:29 |
|
#9 | |
Senior Member
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33 |
Quote:
Static Pressure inlet -> Static Pressure outlet setup is doomed to fail. It is an ill-conditioned setup.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
November 20, 2024, 20:36 |
reply
|
#10 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
About Temperature/pressure range: 10~3.4 MPa 318.98~272.28 K (covering all working conditions) As for boundary conditions: The pressure inlet/mass flow outlet was tried before, but unfortunately the situation that emerged was similar to the given pressure inlet/pressure outlet. About RGP: I currently use the code written by myself to generate the RGP table. I don't know much about NISTtoRGP you mentioned and the built-in code of ANSYS, please tell me where I can get these codes, thank you. |
||
November 20, 2024, 20:47 |
|
#11 | |
Senior Member
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33 |
Quote:
Are you familiar with all the nuisances of the equation of state within the dome, just below the critical point?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
November 20, 2024, 22:02 |
|
#12 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
I am using ANSYS CFX 20.1, 2018 and 2024 versions which I have tried. At present, even if the phase transition is not considered, when the outlet pressure is above the critical point, that is, they are all in a supercritical state, the calculation does not converge. Of course, the problem becomes more complicated when the calculation is within the dome. |
||
November 21, 2024, 03:55 |
|
#13 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144 |
Doesn't this mean that it is looking likely the simulation is transient and therefore will never converge steady state? You will find that discussed in the FAQ I posted way back in post #2.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 22, 2024, 04:03 |
reply
|
#14 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
I am currently considering and implementing transient computing, and this idea really comes from your posted FAQ. |
||
November 22, 2024, 04:06 |
|
#15 | |
New Member
Join Date: Nov 2024
Posts: 8
Rep Power: 2 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation results of cfx and fluent are different. | dhehdxhdaus | FLUENT | 1 | August 10, 2022 03:20 |
My multi-step combustion simulation in CFX doesnt work out for steady state | Xun | CFX | 10 | November 25, 2021 14:26 |
Verifying results for a wind turbine blade simulation in ANSYS CFX | Joystix | CFX | 3 | April 27, 2012 18:52 |
Boundary condition setting regarding turbine simulation using CFX | Lacerlacer | CFX | 11 | March 12, 2012 10:32 |
3-D Contaminant Dispersal Simulation | Apple L S Chan | Main CFD Forum | 1 | December 23, 1998 11:06 |