|
[Sponsors] |
October 24, 2022, 14:37 |
Incompressible Ideal Gas UDF
|
#1 |
New Member
Join Date: Oct 2022
Posts: 4
Rep Power: 4 |
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! |
|
October 24, 2022, 15:39 |
|
#2 |
New Member
Join Date: Oct 2022
Posts: 4
Rep Power: 4 |
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 |
|
October 26, 2022, 02:54 |
|
#3 |
New Member
Neel
Join Date: Nov 2018
Posts: 12
Rep Power: 8 |
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.
|
|
|
|
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 |