The HotSpot class

class pylife.mesh.HotSpot(pandas_obj)[source]
calc(value_key, limit_frac=0.9, artefact_threshold=None)[source]

Calculates hotspots on a FE mesh

Parameters:
  • value_key (string) – Column name of the field variable, on which the Hot Spot calculation is done.

  • limit_frac (float, optional) – Fraction of the max field variable. Example: If you set limit_frac = 0.9, the function finds all nodes and regions which are >= 90% of the maximum value of the field variable. default: 0.9

  • artefact_threshold (float, optional) – If set all the values above the artefact_threshold limit are not taken into account for the calculation of the maximum value. This is meant to be used for numerical artefacts which would take the threshold value for hotspot determined by limit_frac to such a high level, that all the relevant hotspots would “hide” underneath it.

Returns:

hotspots – A Series of integers with the same index of the accessed mesh object indicating which mesh point belongs to which hotspot. A value 0 means below the limit_frac.

Return type:

pandas.Series

Notes

A loop is defined in the following way:
  • Select the node with the maximum stress value

  • Find all elements > limit_frac belonging to this node

  • Select all nodes > limit_frac belonging to these elements

  • Start loop again until all nodes > limit_frac are assigned to a hotspot

Attention: All stress values are node based, not integration point based