total_time#
- ptrace.total_time(p0: float) int #
Sets the maximum length of time that the particle trace is allowed to continue.
A particle trace may terminate earlier than this for other reasons, but this limit avoids infinite calculations in recirculation zones.- Args:
- p0:
‘limit’ total time limit
- Examples:
# # Selecting the trace(s) # ensight.part.select_begin(7,8) # # Modifying attributes for the two selected trace parts # (total_time is modified in here) # ensight.part.modify_begin() ensight.ptrace.total_time(2.0000e+02) ensight.ptrace.trace_direction("+/-") # # Updates the traces with the modified attributes # ensight.part.modify_end()
- Returns:
zero on success, non-zero on error