threshold#

shock.threshold(p0: Any) int#

Specify the threshold variable description by which to filter the segments of the selected shock part.

The default threshold for the Region shock part is “SHK_Threshold”. The default threshold for the Region shock part is “SHK_xxx”, where xxx is the name of the variable used as the shock creation variable.
Args:
p0:

‘variable_name’ name of the scalar variable by which to filter the vortex core segments

Examples:
ensight.part.select_begin(8)
ensight.part.modify_begin()
ensight.shock.threshold("Density")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error