|
[Sponsors] |
March 19, 2020, 11:39 |
Calculating wall normal vector
|
#1 |
New Member
John
Join Date: Jan 2020
Posts: 12
Rep Power: 6 |
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? |
|
March 19, 2020, 15:39 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Have you tried using
Normal X, Normal Y Normal Z variables instead?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." | lethu | OpenFOAM Meshing & Mesh Conversion | 1 | June 3, 2020 08:49 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Calculating pressure along curved wall (Normal Pressure) | hxaxtma | OpenFOAM Programming & Development | 1 | June 14, 2015 18:42 |
UDF to Access Wall Normal Concentration Gradient | Daniel Tanner | Fluent UDF and Scheme Programming | 4 | February 18, 2015 15:35 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |