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.