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

how to implement a Real gas law in fluent?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2013, 05:03
Post how to implement a Real gas law in fluent?
  #1
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 15
NAD is on a distinguished road
Hi.
I’m simulating two-phase flow with combustion inside a closed volume. In fluent the density of the compressible gas phase is calculated by using “ideal gas law”. I want to use ‘’real gas law’’, for example Nobel-Abel law. But I don’t know how to implement this new law into fluent via UDF.
Does anyone have an idea how I can do this? </SPAN>
Regards,
NAD is offline   Reply With Quote

Old   July 2, 2013, 08:30
Default
  #2
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
Go to Materials, then from Density tab select Real Gas but i don't think Nobel Abel Law is there. There are other options.
If you want to stick to Nobel Abel Law, then you will have to write a user defined function. (UDF)

Yash
yashganatra is offline   Reply With Quote

Old   July 4, 2013, 03:24
Default
  #3
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 15
NAD is on a distinguished road
Hi Yash,
thanks for your reply. Yes I want to use Nobel-Abel Law, and I can easily write an UDF for that. But the problem is in fluent if we use a Nobel-Abel Law instead of Ideal gas law, we should change a few other parameters such as the sound speed, the entropy and some Derivatives such as the partial derivative of density with respect to pressure at constant temperature.
So the density law and the sound speed will be incorporated through the material panel. But for the others parameters I didn't find a way to incorporate them into fluent!!!!

Regards,
NAD is offline   Reply With Quote

Old   July 4, 2013, 04:14
Default
  #4
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
Just go through Define Property Macro in FLUENT UDF and see if such changes can be incorporated through UDF
yashganatra is offline   Reply With Quote

Old   July 4, 2013, 04:16
Default
  #5
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 13
yashganatra is on a distinguished road
See DEFINE PROPERTY macro in UDF and check if such changes can be incorporated via a UDF. Could you kindly tell which problem are you working on?

Yash
yashganatra is offline   Reply With Quote

Old   November 13, 2015, 18:28
Default
  #6
Senior Member
 
navid
Join Date: Jan 2010
Posts: 110
Rep Power: 16
ndabir is on a distinguished road
Hi NAD,

Were you able to solve your problem? If so could you please tell me how did you implemented the real gas udf in Fluent?
ndabir is offline   Reply With Quote

Reply

Tags
compressiblity, ideal gas law, two-phase flow, udf


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
NOx UDF Abhishek Asthana FLUENT 5 October 12, 2016 08:24
view factor yoollooz Fluent UDF and Scheme Programming 0 March 1, 2013 01:44
UDF for Turbulent Viscosity Lourival Fluent UDF and Scheme Programming 3 October 13, 2012 04:09
0 or 0.0 in udf wlt_1985 FLUENT 5 June 29, 2011 17:27
Real Gas Mixture With Reactions Jake Cannon Main CFD Forum 0 January 16, 2007 12:46


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