pysdic.IntegrationPoints.natural_coordinates#

property IntegrationPoints.natural_coordinates: ndarray#

[Get or Set] The natural coordinates of the integration points as a numpy ndarray with shape (\(N_p\), \(K\)), where \(N_p\) is the number of integration points and \(K\) is the topological dimension of the element.

If a point is not included in any element, its natural coordinates should be set to NaN.

Note

The property is copied-on-write (cow) into numpy.ndarray of type numpy.float64. Accessing it will return an unwritable view to prevent accidental modifications.

Parameters:

value (ArrayLike) – An array-like of shape \((N_p, K)\) representing the natural coordinates of the integration points. If 1D array is provided, it will be reshaped to \((N_p, 1)\).

Returns:

A unwritable NumPy array of shape \((N_p, K)\) containing the natural coordinates of the integration points.

Return type:

numpy.ndarray

Raises:
  • TypeError – If the input points is not a NumPy array.

  • ValueError – If the input array does not have the correct shape \((N_p, K)\).