pysdic.IntegrationPoints.validate#

IntegrationPoints.validate(*, recursive=True)[source]#

Validate the integrity of the integration points.

The following conditions are checked:

  • The natural coordinates are a numpy.float64 array of shape \((N_p, K)\) with \(K \geq 1\).

  • The element indices are a numpy.int64 array of shape \((N_p,)\) with values \(\geq -1\).

  • The weights are a numpy.float64 array of shape \((N_p,)\) with finite non-negative values.

  • The properties are a pysdic.core.property_container.PropertyContainer with \(N = N_p\).

Parameters:

recursive (bool, optional (default: True)) – If True, the property container is also validated (see pysdic.core.property_container.PropertyContainer.validate()).

Raises:
  • TypeError – If an attribute has a wrong type.

  • ValueError – If an attribute has a wrong shape or value.

Return type:

None