pysdic.IntegrationPoints.weights#

property IntegrationPoints.weights: ndarray#

[Get or Set] The weights of the integration points as a numpy ndarray with shape (\(N_p\),), where \(N_p\) is the number of integration points.

If weights are not provided, equal weights of 1 are assumed for all points.

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 (Optional[ArrayLike]) – The new weights of the integration points as a numpy ndarray with shape (\(N_p\),), or None to set equal weights of 1 for all points.

Returns:

The weights of the integration points. If not provided, returns an array of ones with shape (\(N_p\),).

Return type:

numpy.ndarray