CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Calculating wall normal vector (https://www.cfd-online.com/Forums/cfx/225231-calculating-wall-normal-vector.html)

ArtSimulatingLife March 19, 2020 10:39

Calculating wall normal vector
 
Hello everyone,

I'm trying to calculate the wall normal vector in CFX to then use in a particle routine, I found an equation online that said: (Fluid.Wall Scale.Gradient X+Fluid.Wall Scale.Gradient Y+Fluid.Wall Scale.Gradient Z)/mag(Fluid.Wall Scale.Gradient)

But don't really understand what those values are, when you extract the wall scale gradient in a user function you get 9 numerical values out at each location as the format for gradients on a vector is (3,NLOC,3) and it says the first number is the number of gradient components and the second number is the number of tensor components, how do I use the values from CFX and manipulate them into the equation?

Opaque March 19, 2020 14:39

Have you tried using

Normal X,
Normal Y
Normal Z

variables instead?


All times are GMT -4. The time now is 01:28.