hookeai.simulators.fetorch.element.integrations.internal_forces.eval_shapefun_deriv¶
- eval_shapefun_deriv(element_type, nodes_coords, local_coords)[source]¶
Evaluate shape functions derivates at given coordinates.
- Parameters:
element_type (Element) – FETorch finite element.
nodes_coords (torch.Tensor(2d)) – Nodes coordinates stored as torch.Tensor(2d) of shape (n_node, n_dof_node).
local_coords (torch.Tensor(1d)) – Local coordinates of point where Jacobian is evaluated.
- Returns:
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].
jacobian (torch.Tensor(2d)) – Element Jacobian.
jacobian_det (float) – Determinant of element jacobian.