div

div(func, shift=None, order=None)

Divergence of the input Function.

Parameters

Name Type Description Default
func Function or TensorFunction Function to take the divergence of required
shift Shift for the center point of the derivative in number of gridpoints None
order Discretization order for the finite differences. Uses func.space_order when not specified None
Back to top