You are on page 1of 1

____________________________________________________________________________________

UDF: Calculate wall shear stress


Problem/Description:
How to calculate wall shear stress using a User-Defined Function (UDF)?

Solution:
The UDF attached to this solution shows a strategy to compute and use wall shear stresses. It loops over
all the faces of the wall boundary on which the wall shear stress has to be obtained. The wall shear stress
is stored inside a UDM at the cell next to the wall.
.
.

UDF details:
Before using the UDF make sure to define atleast 1 User-defined Memory (UDM). Also, change the value
of variable “Zone_ID”. The value should correspond to the ID of the wall on which you are interested to
calculate wall shear stress.

Change this ID to the ID of the wall on


which shear stress needs to be
calculated. The ID can be obtained
from the boundary condition panel

Attachments:
1. Calc_wall_shear_stress.c

You might also like