This module calculates the gradient of a three dimensional uniform scalar field. A centered difference algorithm is used to create the 3 component vector field:
grad(f(i,j,k)) = ((f(i+1,j ,k )-f(i-1,j ,k ))/delx,
(f(i ,j+1,k )-f(i ,j-1,k ))/dely,
(f(i ,j ,k+1)-f(i ,j ,k-1))/delz)
Port: Scalar Field
Type: Lattice
Constraints: 3-D
Constraints: 1-vector
Constraints: uniform
The input scalar lattice
Port: Gradient
Type: Lattice
Constraints: 3-D
Constraints: 3-vector
Constraints: uniform
A three component vector field