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

Modeling methane phase change from liquid to supercritical vapor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2020, 09:19
Default Modeling methane phase change from liquid to supercritical vapor
  #1
New Member
 
Join Date: Aug 2019
Posts: 11
Rep Power: 6
R4z0rX is on a distinguished road
Hey guys,

I am having a problem modeling a phase change from liquid methane to supercritical methane vapor.
The liquid methane enters a channel at 100K and given mass flow rate as inlet conditions and gets heated up by the heated walls of the channel thus changing to supercritical vapor with 50 bar static pressure at the outlet.

I set up a homogenous binary mixture using an RGP-file containing the tables for the liquid and vapor phases and saturation tables.
The vapor phase is set to equilibrium constraint and the liquid phase to equlibrium fraction in the domain definition. I set the equilibrium fraction to 1 at the inlet and the domain initialization. Morphology set to continuous fluid.

After a couple iterations the solver crashes due to a fatal overflow in the linear solver and until that, I am getting a lot of clipping and extrapolation warnings for exceeding the upper bound of the RGP-tables for the liquid phase.

I think this is caused by problems of the phase changing from liquid state to vapor phase.

Do you have any suggestions how to model this phase change properly?

Thank you and best regards!
R4z0rX is offline   Reply With Quote

Old   September 2, 2020, 14:24
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
You do not have "liquid" methane in your case, and no phase change occurs, as you never cross the saturation curve. So material properties will have a smooth transition, defined completely by the temperature and pressure.
Luckily, you are above the critical pressure (46 bar) in your entire simulation, therefore you have single phase supercritical fluid (gas) the entire time, so model it as such.

Supercritical fluid is when the Temperature OR Pressure is above the critical values.
I had a similar case once, but unfortunately I was below the critical pressure to start (Liquid Helium in closed piping system). Adding heat energy would cause the pressure to rise and the liquid to transition from "liquid" (one RGP file) to "supercritical fluid" (a different RGP file) without ever crossing the saturation curve. So I had a terminology change, and table change, without ever having an actual phase change, and I could not figure out how to model that. Pressure would just increase until it reached the critical pressure and reach the end of the liquids rgp table, but never transition to gas as it didn't cross the saturation curve. Luckily it was for a transient relief case, where I could just change my initial conditions by adding heat energy until my pressure was above the critical pressure, and start my simulation with all supercritical fluid. This made it a much simpler single phase case, just like your case.

If anyone knows how my case would possibly be performed let me know.
A custom .rgp file with the liquid and gas tables combined to represent both fluids and the smooth transition is all I can think of.
evcelica is offline   Reply With Quote

Old   September 3, 2020, 05:15
Default
  #3
New Member
 
Join Date: Aug 2019
Posts: 11
Rep Power: 6
R4z0rX is on a distinguished road
Thank you for your help but as far as I'm concerned I do have liquid methane at the beginning. I'm expecting the methane to have a pressure of about 95 bar at the inlet and a temperature of 100K. At the outlet, I am expecting the methane to have a pressure of about 55 bar and a temperature of 615K.

Wikipedia states: "A supercritical fluid (SCF[1]) is any substance at a temperature and pressure above its critical point [...]"

So I found a phase diagram for methane and extrapolated it so it shows the temperature range I need. The blue line represents the line between the two states I am expecting. It is above the critical point so you're right, I don't have a real phase change but a smooth transition as you said is occuring.

Because I am starting in the liquid region I thought it would be best practise to model it as homogenous binary mixture.

Maybe I am missing something.
Attached Images
File Type: png phasediagram_methane.png (34.3 KB, 45 views)
R4z0rX is offline   Reply With Quote

Old   September 3, 2020, 12:04
Default
  #4
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
What Wikipedia states about the definition of supercritical fluid is not representative of how CFX organizes fluid property tables. Understand "supercritical fluid" is simply terminology, and this is different between CFX and the Wikipedia definition. You need to use the property table that includes data at the (T,P) range you are simulating. Look through your rgp file(s) for data at your inlet conditions, tell me which phase it is, liquid or Vap? Obviously not liquid, the program even told you that itself with all the clipping/out-of-range messages for your liquid phase.

I suggest you read through the CFX documentation. Research "Table Interpolation and Saturation Curve Clipping" in the CFX-Solver_Modeling_Guide: Section 12.2, specifically see Figure 12.5. In the future, please listen when a CFX expert tries to help you, and research/test their advice, especially when they have experience with your exact case! You should explore the avenues they give you before stating they are wrong, because it isn't their job to have to convince you properly model your case.
evcelica is offline   Reply With Quote

Old   September 3, 2020, 12:31
Default
  #5
New Member
 
Join Date: Aug 2019
Posts: 11
Rep Power: 6
R4z0rX is on a distinguished road
I am sorry if you thought I wanted to lecture you, I was confused by the different terminology and was trying to have an objective discussion about it. I did not say you were wrong, I just stated the definition of a supercritical fluid as I know it and if you thought that was the case, I am sorry, that wasn't my intent. Besides that, it's hard to tell on an online forum who is an expert and who is not.

Anyways, you proved me wrong and I really appreciate your help! I will try to model it as you suggested. Thank you very much!
R4z0rX is offline   Reply With Quote

Old   August 9, 2022, 16:26
Default
  #6
New Member
 
ahmet kaya
Join Date: Aug 2020
Location: İzmir
Posts: 27
Rep Power: 5
blacksatellite is on a distinguished road
Quote:
Originally Posted by evcelica View Post
What Wikipedia states about the definition of supercritical fluid is not representative of how CFX organizes fluid property tables. Understand "supercritical fluid" is simply terminology, and this is different between CFX and the Wikipedia definition. You need to use the property table that includes data at the (T,P) range you are simulating. Look through your rgp file(s) for data at your inlet conditions, tell me which phase it is, liquid or Vap? Obviously not liquid, the program even told you that itself with all the clipping/out-of-range messages for your liquid phase.

I suggest you read through the CFX documentation. Research "Table Interpolation and Saturation Curve Clipping" in the CFX-Solver_Modeling_Guide: Section 12.2, specifically see Figure 12.5. In the future, please listen when a CFX expert tries to help you, and research/test their advice, especially when they have experience with your exact case! You should explore the avenues they give you before stating they are wrong, because it isn't their job to have to convince you properly model your case.
Hi Sir,

İ try to modelling in CFX the same problem, but i couldn't solve,
İnlet temp 110K
Pressure outlet 50 bar
blacksatellite 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
Access phase fraction field in a phase change model hend OpenFOAM Programming & Development 0 October 17, 2019 05:03
Phase Change Modeling (PCM) NightWing ANSYS 0 July 12, 2016 02:35
Phase change from liquid to vapor in a nozzle SebastianSchuster CFX 6 September 28, 2015 22:02
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Refrigerant R134a Phase Change Mahesh Bondhu FLUENT 4 May 4, 2013 08:13


All times are GMT -4. The time now is 00:27.