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

Incompressible Ideal Gas UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2022, 14:37
Default Incompressible Ideal Gas UDF
  #1
New Member
 
Join Date: Oct 2022
Posts: 4
Rep Power: 4
inscrutable is on a distinguished road
Hi all,


How do you define a different operating pressure for different outlets If an incompressible ideal gas law is used.

My geometry model contains 2 inlets and 2 outlets and each have different fluid.


I'd like to calculate the rho based on the local temperature. I can't use a fixed operating pressure.


Since rho= P_OP/(R/M)*T


I'd like to write a function/expression/UDF to describe:

IF fluid is Water then > the operating pressure is 1 bar

IF fluid is Air then> the operating pressure is 2 bar.

Is this possible?

Any help would be really appreciated!
inscrutable is offline   Reply With Quote

Old   October 24, 2022, 15:39
Default
  #2
New Member
 
Join Date: Oct 2022
Posts: 4
Rep Power: 4
inscrutable is on a distinguished road
Hi guys I made an expression as follows it seems to be right! but Im open to other methods.

(100 [Pa])/ (((R /28.996 [kg/kmol])) *StaticTemperature)


Best
inscrutable is offline   Reply With Quote

Old   October 26, 2022, 02:54
Default
  #3
New Member
 
Neel
Join Date: Nov 2018
Posts: 12
Rep Power: 8
neelcfd is on a distinguished road
There's a option of using Incompressible Ideal Gas equation in material property. Make sure you have energy equation on. The density of fluid with only vary with the temperature.
neelcfd 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
Natural Convection ! Boussinesq Vs Ideal Gas density cfd_user_pune ANSYS 4 September 15, 2020 09:46
Energy equation - Incompressible Ideal Gas? Wingman ANSYS 3 April 9, 2017 01:49
Density and compressiblity Mohsin FLUENT 7 June 7, 2015 23:23
Ideal gas problem Atze CFX 12 March 20, 2014 16:56
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 13:02


All times are GMT -4. The time now is 15:11.