Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Regarding error while interpreting udf file › Reply To: Regarding error while interpreting udf file
February 5, 2021 at 11:00 am
Rob
Forum Moderator
You've set the code to return vel[0], which means the x-direction in C language. [1] is y and [2] is z. Remember C starts at 0 when counting. Don't worry, nearly everyone either makes the mistake or asks why up is x[1]. n