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
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Field | Field | The field containing data used to calculate gradient. |
| Output | Output Field | Field | A field containing the gradient data. |
| Output | OutputObject | Renderable | A renderable object displaying the gradient data. |
Properties
| Property | Type | Description |
|---|---|---|
| Z Compensation | Double | Scales 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 By | Choice: Nodal Data, Cell Data | Selects the type of data to use to calculate gradients. |
| Nodal Gradient Component | Choice | The 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 Component | Choice | The 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. |