|
[Sponsors] |
June 19, 2013, 05:07 |
How to set the properties of a real gas
|
#1 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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! |
|
June 19, 2013, 20:12 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
June 19, 2013, 22:35 |
|
#3 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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. |
|
June 20, 2013, 07:30 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Which properties do you want to have as a function of T and P? And what function do you want to use?
|
|
June 20, 2013, 08:14 |
|
#5 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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.
|
|
June 20, 2013, 19:46 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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? |
|
June 20, 2013, 22:54 |
|
#7 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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?
|
|
June 21, 2013, 04:43 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
June 21, 2013, 07:07 |
|
#9 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
Is there any other mixture model except the ideal mixture model?
|
|
June 21, 2013, 08:57 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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? |
|
June 21, 2013, 09:14 |
|
#11 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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 ?
|
|
June 21, 2013, 09:38 |
|
#12 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Can you please tell us what materials are in your mixture?
|
|
June 21, 2013, 09:42 |
|
#13 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
Methane and ethane. T is about from 200K to 240K. P is from 3MPa to 6MPa.
|
|
June 21, 2013, 10:23 |
|
#14 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
June 21, 2013, 10:27 |
|
#15 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
NO...Ethane is at state of liquid. That is why I ask for help.
|
|
June 21, 2013, 10:34 |
|
#16 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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. |
|
June 21, 2013, 11:01 |
|
#17 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
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? |
|
June 23, 2013, 07:36 |
|
#18 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
June 23, 2013, 12:50 |
|
#19 |
New Member
Lee
Join Date: Oct 2012
Posts: 26
Rep Power: 14 |
Okay! Thauk you for your help in the recent days!
|
|
Tags |
material, properties of fluid |
|
|
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 |