Click here to download a zipped file containing the User Defined Function (UDF) used in this tutorial.
Watch the following video for demonstrations:
Summary for the video:
- UDF: Define → User Defined → Functions → Interpreted.
- Boundary Conditions → Inlet → Velocity Inlet → Edit → Velocity Magnitude → Change "Constant" to "udf inlet_velocity".
- Outlet1 → Pressure Outlet → Edit → Gauge Pressure 13332.
- Outlet2 same as outlet1.
For ANSYS 19.2, follow the steps below
- User Defined →Functions →Interpreted
- Add UDF file vinlet_udf.c → Build →Read
- Boundary Conditions → Inlet → Velocity Inlet → Edit → Velocity Magnitude → Change "Constant" to "udf inlet_velocity".
- Outlet1 → Pressure Outlet → Edit → Gauge Pressure 13332
- Outlet2 same as outlet1