Ansys Learning Forum › Forums › Discuss Simulation › Fluids › udf for defining density › Reply To: udf for defining density
November 12, 2024 at 2:22 pm
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.