gradient

gradient

gradient calculates the vector gradient field of a scalar data component at every node in a mesh. Input must contain a mesh of any type and at least one scalar data component. The module uses a finite-difference method based on central differencing to calculate the gradient on structured (rectilinear) meshes, and shape functions with their derivatives for unstructured meshes. Either nodal or cell data components can be used as the gradient source.

Note that the gradient of (pressure) head points in the direction of increasing head, not the direction that groundwater would flow. See seepage velocity if you wish to compute groundwater flow.

Ports

DirectionNameTypeDescription
InputInput FieldFieldThe field containing data used to calculate gradient.
OutputOutput FieldFieldA field containing the gradient data.
OutputOutputObjectRenderableA renderable object displaying the gradient data.

Properties

PropertyTypeDescription
Z CompensationDoubleScales the vertical component of the gradient computation, for anisotropic media whose effective vertical response differs from the horizontal. 1.0 (the default) computes the true geometric gradient.
Gradient ByChoice: Nodal Data, Cell DataSelects the type of data to use to calculate gradients.
Nodal Gradient ComponentChoiceThe scalar nodal data component to be used by gradient, chosen from the input field’s nodal data. The data component selected must be scalar or an error will occur. Only enabled when Gradient By is set to Nodal Data.
Cell Gradient ComponentChoiceThe scalar cell data component to be used by gradient, chosen from the input field’s cell data. The data component selected must be scalar or an error will occur. Only enabled when Gradient By is set to Cell Data.