pysdic.Mesh.compute_integration_points_coordinates#
- Mesh.compute_integration_points_coordinates(integration_points, *, allow_unlocated_points=False, tolerance=0.0, propagate_properties=True)[source]#
Compute the global coordinates of integration points.
The coordinates of the vertices are interpolated at the integration points (see
compute_property_interpolation()):\[X = \sum_{i=1}^{N_{vpe}} N_i(\Xi) X_i\]- 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) getnumpy.nancoordinates. Otherwise, they raise an error.tolerance (Real, optional (default:
0.0)) – The tolerance to decide if a point is inside the reference element.propagate_properties (bool, optional (default:
True)) – If True, the properties of the integration points are copied to the point cloud.
- Returns:
A point cloud of shape \((N_p, E)\), with the points in the same order as
integration_points.- Return type:
Examples
1from pysdic import Mesh, IntegrationPoints 2 3mesh = Mesh([[0, 0, 0], [3, 0, 0], [0, 3, 0]], [[0, 1, 2]], element_type="triangle_3") 4integration_points = IntegrationPoints.from_gauss_points("triangle_3", mesh.n_elements) 5 6point_cloud = mesh.compute_integration_points_coordinates(integration_points) 7print(point_cloud.coordinates) # [[1. 1. 0.]]