hookeai.simulators.fetorch.element.derivatives.gradients.build_discrete_gradient

build_discrete_gradient(shape_fun_deriv, comp_order_nsym)[source]

Build discrete gradient operator.

Parameters:
  • shape_fun_deriv (torch.Tensor(2d)) – Shape functions derivatives evaluated at given local coordinates, sorted according with element nodes. Derivative of the i-th shape function with respect to the j-th local coordinate is stored in shape_fun_deriv[i, j].

  • comp_order_nsym (tuple) – Strain/Stress components nonsymmetric order.

Returns:

grad_operator – Discrete gradient operator evaluated at given local coordinates.

Return type:

torch.Tensor(2d)