pysdic.IntegrationPoints.from_dict#
- classmethod IntegrationPoints.from_dict(data, *, load_properties=True)[source]#
Create integration points from a dictionary.
The dictionary must contain the keys
"natural_coordinates"(shape \((N_p, K)\)) and"element_indices"(shape \((N_p,)\)), and may contain the key"weights"(shape \((N_p,)\), all 1 if missing). The properties are read from the keys"_property/{property_name}".Note
The dictionary is flat (one level), as required by the NPZ format. See
pysdic.core.serialization.NpzSerializerMixin.- Parameters:
data (Dict[str, Any]) – The dictionary to read.
load_properties (bool, optional (default:
True)) – If False, the properties are ignored.
- Returns:
The new integration points.
- Return type: