salvus.fem.derivatives
Functions to compute derivatives of nodal fields.
Functions
compute_gradient()
compute_gradient()def compute_gradient(
nodes: types,
nodal_fields: Dict[str, numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]],
) -> Dict[str, numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]]: ...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.
Parameters
nodestypes — Element nodes at which the gradient should be computed.nodal_fieldsDict[str, numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]] — The fields defined at the element nodes for which the gradient should be computed.
Returns Dict[str, numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]] — Dict containing the the derivatives of the fields with respect to each dimension. Each derivative has the same shape as the input field.