Gradient3D

DESCRIPTION

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)

INPUTS

Port: Scalar Field
Type: Lattice
Constraints: 3-D
Constraints: 1-vector
Constraints: uniform
The input scalar lattice

WIDGETS

OUTPUTS

Port: Gradient
Type: Lattice
Constraints: 3-D
Constraints: 3-vector
Constraints: uniform
A three component vector field

PROBLEMS

SEE ALSO


[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1999