hookeai.material_model_finder.model.material_discovery.vbuild_discrete_gradient

vbuild_discrete_gradient(shape_fun_deriv, comp_order_nsym)[source]

Build discrete gradient operator.

Compatible with vectorized mapping.

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)