massed_particle_diameter#

ptrace.massed_particle_diameter(p0: float) int#

Specify the diameter of all the massed-particles.

The default value is 1.0e-03. 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. Water particle diameters are on the order of 1.0e-3, and air partilce diameters are on the order of 1.0e-6.
Args:
p0:

‘diameter’ the diameter value of all the particles

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)
#
# Specify diameter of the massed particle
#
ensight.part.modify_begin()
ensight.ptrace.massed_particle_diameter(1.0000e-03)
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