Ansys Learning Forum Forums Discuss Simulation Fluids Regarding error while interpreting udf file Reply To: Regarding error while interpreting udf file

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