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

How to set the properties of a real gas

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2013, 05:07
Default How to set the properties of a real gas
  #1
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
I'd like to define a real gas. However I can't be sure how to set the property such as the density and the specific heat with the expressions. So for a real gas, I should set the density as a function of T and P or just T? And the specific heat?
Thanks in advance!
kiwishall is offline   Reply With Quote

Old   June 19, 2013, 20:12
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have you read the documentation? Have a look at the real gas models in CFX. Also, your comments suggest you are looking for simply a variable density fluid (eg ideal gas), not a real gas.
ghorrocks is offline   Reply With Quote

Old   June 19, 2013, 22:35
Default
  #3
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
Thanks for your reply!
I have read the help documents. What I need is a material of which the properties vary with T and P,not only the density. The problem is that CFX doesn't work if everything is set as the function of T and P.
kiwishall is offline   Reply With Quote

Old   June 20, 2013, 07:30
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Which properties do you want to have as a function of T and P? And what function do you want to use?
ghorrocks is offline   Reply With Quote

Old   June 20, 2013, 08:14
Default
  #5
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
I set the specific heat as the function of P and T. But when I set the density as the function of P or both P and T, error occurs. So I want to know others how to set the properties of dynamic and thermodynamic and how to get a better simulation of the actual property value.
kiwishall is offline   Reply With Quote

Old   June 20, 2013, 19:46
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Setting the density as a function of P and T leads to some very complex terms in the Navier Stokes equations. For gases like ideal gas, and the real gas models these have been taken care of, but if you arbitrarily make up a new constitutive equation they are not accounted for - which is why CFX does not let you do it.

What function are you trying to apply for density?
ghorrocks is offline   Reply With Quote

Old   June 20, 2013, 22:54
Default
  #7
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
I want to set it as a function of T by expressions. And I have gotten a result which is obvious wrong. I don't know why. How do you define a mixture property? Regarding it as a pure substance or mix two pure substance in CFX?
kiwishall is offline   Reply With Quote

Old   June 21, 2013, 04:43
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CFX already has models to work out the properties of mixtures. If you are modelling a mixture then best define it as its constitutive gases and use a mixture model to work out the properties.
ghorrocks is offline   Reply With Quote

Old   June 21, 2013, 07:07
Default
  #9
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
Is there any other mixture model except the ideal mixture model?
kiwishall is offline   Reply With Quote

Old   June 21, 2013, 08:57
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Not that I know of, but if you talk to CFX support there may be others.

Do you have a model where the ideal mixture model is not adequate?
ghorrocks is offline   Reply With Quote

Old   June 21, 2013, 09:14
Default
  #11
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
I don't know. But when I mix the substance with rgp files, the solve suggests that Newtons method failed to converge in100 iterations. Even increase the number, the suggestions still occurs. Besides, if only taking one substance into account, one material is gas while the other one is liquid at the working condition. But if I regard the mixture as a pure substance and get the properties in NIST REFPRO, I found the mixture is at the state of gas. So if I only define the material at the liquid state, is it right? And how should I do ?
kiwishall is offline   Reply With Quote

Old   June 21, 2013, 09:38
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you please tell us what materials are in your mixture?
ghorrocks is offline   Reply With Quote

Old   June 21, 2013, 09:42
Default
  #13
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
Methane and ethane. T is about from 200K to 240K. P is from 3MPa to 6MPa.
kiwishall is offline   Reply With Quote

Old   June 21, 2013, 10:23
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Are they both gasses at this T/P ranges? If they are both gasses then this should be easy with the multicomponent mixture model. If they start to change phase things are a lot more complex, but a multicomponent mixture of a real gas model of each of methane and ethane look like they would work.
ghorrocks is offline   Reply With Quote

Old   June 21, 2013, 10:27
Default
  #15
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
NO...Ethane is at state of liquid. That is why I ask for help.
kiwishall is offline   Reply With Quote

Old   June 21, 2013, 10:34
Default
  #16
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The Peng Robinson real gas model looks like it should be able to cover both vapour and liquid phases - can you use this real gas model to cover it? Which real gas model did you use before?

Note I am saying to use one Peng Robinson real gas model for methane and another one for ethane and combine them together in a multicomponent fluid.
ghorrocks is offline   Reply With Quote

Old   June 21, 2013, 11:01
Default
  #17
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
I didn't use the real gas model for I get the details from the NIST REFPRO. And I define the material with values but not real gas model.
For the real gas model, is there any easy way to get the parameters such as the zero pressure coefficients?
kiwishall is offline   Reply With Quote

Old   June 23, 2013, 07:36
Default
  #18
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I have not looked for this sort of data before for methane and ethane but they are pretty standard engineering gases so should be available. A hunt around and you should find it.
ghorrocks is offline   Reply With Quote

Old   June 23, 2013, 12:50
Default
  #19
New Member
 
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14
kiwishall is on a distinguished road
Okay! Thauk you for your help in the recent days!
kiwishall is offline   Reply With Quote

Reply

Tags
material, properties of fluid


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
Problems in air flow udf - divergence PJT Fluent UDF and Scheme Programming 0 May 28, 2013 11:01
Using real gas models in Fluent neville FLUENT 1 June 5, 2012 06:54
how to hook this udf shanu FLUENT 1 August 26, 2011 11:48
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23


All times are GMT -4. The time now is 12:17.