massed_initial_use_fluid#
- ptrace.massed_initial_use_fluid(p0: str) int #
Specify whether to use the velocity of the fluid at the particle emitter location as the initial velocity of the massed-particle.
The default value is ON. The “ptrace: massed_particles” command does not have to be ON in order to specify this command. This parameter is figured in all terms of the massed-particle momentum balance equation. If the value of this command is OFF, then the massed-particle emitter will use the velocity specified via the “ptrace: massed_initial_velocity” command.- 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) # # Do not use the field velocity as the initial particle velocity # Specify the initial velocity value for all the massed-particles # ensight.part.modify_begin() ensight.ptrace.massed_initial_use_fluid("OFF") ensight.ptrace.massed_initial_velocity(1.0000e+00,1.0000e+00,1.0000e+00) ensight.part.modify_end() # # 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