Ansys Learning Forum Forums Discuss Simulation Fluids udf for defining density Reply To: udf for defining density

sjohn
Subscriber

Hi Rob, 
I would also like to implement density change based on temperature but use ideal gas law which requires pressure and temperature. How would I retrieve pressure of phase 2 in the above code? I am not at all familiar with UDF but had learnt the C programming language decades ago. 
Thanks.