pysdic.Mesh.compute_property_derivative#

Mesh.compute_property_derivative(values, integration_points, *, allow_unlocated_points=False, tolerance=0.0, default=nan)[source]#

Compute the derivatives of a property defined at the vertices of the mesh with respect to the global coordinates, at integration points.

Shortcut for pysdic.fem.compute_property_derivative() with the coordinates, connectivity and element type of the mesh (see this function for the shape of the output and the treatment of degenerated elements).

Parameters:
  • values (Union[str, ArrayLike]) – The property at the vertices: the name of a vertex property (see mesh.vertices) or an array of shape \((N_v, \dots)\).

  • integration_points (pysdic.IntegrationPoints) – The integration points, consistent with the mesh (see validate_integration_points()).

  • allow_unlocated_points (bool, optional (default: False)) – If True, the unlocated points (element index -1) get the value default. 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:

The derivatives of the property at the integration points (see pysdic.fem.compute_property_derivative()).

Return type:

numpy.ndarray