massed_particles#
- ptrace.massed_particles(p0: str) int #
Enable or disable massed-particle trace calculation.
The default value is OFF. The “ptrace: massed_particles” command does not have to be ON in order to specify the other massed-particle commands.- Args:
- p0:
‘toggle’
ON
OFF
- Examples:
# # Create a massless point trace # ensight.part.select_all() ensight.ptrace.select_default() ensight.part.modify_begin() ensight.ptrace.variable("velocity") ensight.part.modify_end() ensight.part.select_all() ensight.ptrace.create_pt() ensight.part.select_begin(2) # # Change part to massed trace using current settings # ensight.part.modify_begin() ensight.ptrace.massed_particles("ON") ensight.part.modify_end()
- Returns:
zero on success, non-zero on error