com1DFA.DFAtools

Basic tools for getting grid normals, area and working with vectors.

Functions

crossProd

Compute cross product of vector u = (ux, uy, uz) and v = (vx, vy, vz).

getAreaMesh

Get area of grid cells.

norm

Compute the Euclidean norm of the vector (x, y, z).

norm2

Compute the square of the Euclidean norm of the vector (x, y, z).

normalize

Normalize vector (x, y, z) for the Euclidean norm.

scalProd

Compute scalar product of vector u = (ux, uy, uz) and v = (vx, vy, vz).