max_angle#
- ptrace.max_angle(p0: float) int #
Sets the maximum angle between successive particle trace line segments that will trigger a halving of the integration step.
When a particle trace starts curving, the integration step typically needs to be decreased. This attribute is one of the controls for such adaptation.- Args:
- p0:
‘value’ desired maximum angle (in degrees). If the angle between successive segments is greater than this, the integration step will be halved. The range is 1.0 to 90.0 degrees
- Examples:
# # Selecting the trace(s) # ensight.part.select_begin(7,8) # # Modifying attributes for the two selected trace parts # (max_angle is modified in here) # ensight.part.modify_begin() ensight.ptrace.min_steps(3) ensight.ptrace.min_angle(3.0000e+00) ensight.ptrace.max_angle(2.0000e+01) ensight.ptrace.rot_angle(3.2000e+01) # # Updates the traces with the modified attributes # ensight.part.modify_end()
- Returns:
zero on success, non-zero on error