massed_rebound_wallhits#

ptrace.massed_rebound_wallhits(p0: int) int#

If using massed particle restitution this sets a termination criteria. Only num_hits number of rebounds will be allowed at which time the particle trace will be terminated

There are other terminating particle trace criteria such as the time limit controlled by “ptrace: total_time” and the fraction of initial impact velocity controlled by “ptrace: mass_rebound_fraction”
Args:
p0:

‘num_hits’ the number of rebounds that will be computed

Examples:
ensight.ptrace.select_default()
ensight.ptrace.default_emit_pt()
ensight.view_transf.cursor(7.1,6,0.)
ensight.part.modify_begin()
ensight.ptrace.massed_particles("ON")
ensight.ptrace.massed_rebound("ON")
ensight.ptrace.massed_rebound_wallhits(4)
ensight.ptrace.massed_coef_restitution(0.8)
ensight.ptrace.massed_coef_friction(1.000000e-01)
ensight.part.modify_end()
ensight.part.select_all()
ensight.ptrace.create_pt()
Returns:

zero on success, non-zero on error