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

how to implement a Real gas law in fluent?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 2, 2013, 04:03
Post how to implement a Real gas law in fluent?
  #1
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 5
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, 07:30
Default
  #2
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 4
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 online now   Reply With Quote

Old   July 4, 2013, 02:24
Default
  #3
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 5
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, 03:14
Default
  #4
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 4
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 online now   Reply With Quote

Old   July 4, 2013, 03:16
Default
  #5
Member
 
Yash Ganatra
Join Date: Mar 2013
Posts: 67
Rep Power: 4
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 online now   Reply With Quote

Reply

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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
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 03:09
0 or 0.0 in udf wlt_1985 FLUENT 5 June 29, 2011 16:27
NOx UDF Abhishek Asthana FLUENT 3 June 11, 2007 05:08
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 21:25.