Version:

salvus.fem.derivatives

salvus.fem.derivatives salvus fem derivatives
Functions to compute derivatives of nodal fields.

Functions

compute_gradient()

Compute the gradient of a field defined at the GLL points.
This function computes the derivatives of the N + 1 Lagrange polynomials (N being the polynomial order) to compute the derivative of a field that is defined at the GLL points.
SIGNATURE
def compute_gradient(
    nodes: _ElementNodes | npt.NDArray, nodal_fields: dict[str, npt.NDArray]
) -> dict[str, npt.NDArray]: ...
ARGUMENTS
Required
nodes
Type:_ElementNodes | npt.NDArray
Description:
Element nodes at which the gradient should be computed.
Required
nodal_fields
Type:dict[str, npt.NDArray]
Description:
The fields defined at the element nodes for which the gradient should be computed.
RETURNS
Return type: dict[str, npt.NDArray]
Dict containing the derivatives of the fields with respect to each dimension. Each derivative has the same shape as the input field.
PAGE CONTENTS