Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Fluids How to do a UDF to simulate the opening and closing of compressor valves? Reply To: How to do a UDF to simulate the opening and closing of compressor valves?

Rob
Forum Moderator
Have a look at the macro in the UDF manual, it'll explain where to hook it up. You then need a separate section of code to do whatever you want it to once the Adjust function is called, that's hooked into it's own part of the code (again the manual will generally say where it goes). For porous values it'll be either the Porous Jump boundary or porous media cell zone.
[bingo_chatbox]