pysdic.Mesh.compute_jacobian_matrix#
- Mesh.compute_jacobian_matrix(integration_points, *, allow_unlocated_points=False, tolerance=0.0, default=nan)[source]#
Compute the Jacobian matrices \(\frac{\partial X}{\partial \Xi}\) of the mapping from the reference element to the mesh, at integration points.
Shortcut for
pysdic.fem.compute_jacobian_matrix()with the coordinates, connectivity and element type of the mesh.- Parameters:
integration_points (
pysdic.IntegrationPoints) – The integration points, consistent with the mesh (seevalidate_integration_points()).allow_unlocated_points (bool, optional (default:
False)) – If True, the unlocated points (element index-1) get the valuedefault. Otherwise, they raise an error.tolerance (Real, optional (default:
0.0)) – The tolerance to decide if a point is inside the reference element.default (Real, optional (default:
numpy.nan)) – The value of the unlocated points.
- Returns:
An array of shape \((N_p, E, K)\) with the Jacobian matrix of each point.
- Return type:
Examples
1from pysdic import Mesh, IntegrationPoints 2 3mesh = Mesh([[0, 0, 0], [2, 0, 0], [0, 3, 0]], [[0, 1, 2]], element_type="triangle_3") 4integration_points = IntegrationPoints.from_gauss_points("triangle_3", mesh.n_elements) 5 6print(mesh.compute_jacobian_matrix(integration_points)[0]) 7# [[2. 0.] 8# [0. 3.] 9# [0. 0.]]