com1DFA.particleTools.getTangenVectors¶
- getTangenVectors(nx, ny, nz, ux, uy, uz)[source]¶
Compute the tangent vector to the surface
If possible, e1 is in the velocity direction, if not possible, use the tangent vector in x direction for e1 (not that any other u vector could be provided, it does not need to be the velocity vector, it only needs to be in the tangent plane) :Parameters: * nx (float) – x component of the normal vector
ny (float) – y component of the normal vector
nz (float) – z component of the normal vector
ux (float) – x component of the velocity vector
uy (float) – y component of the velocity vector
uz (float) – z component of the velocity vector
- Returns
e1x (float) – x component of the first tangent vector
e1y (float) – y component of the first tangent vector
e1z (float) – z component of the first tangent vector
e2x (float) – x component of the second tangent vector
e2y (float) – y component of the second tangent vector
e2z (float) – z component of the second tangent vector