massed_particle_density#

ptrace.massed_particle_density(p0: float) int#

Specify the density 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 densities are on the order of 1.0e+3, and air partilce densities are on the order of 1.0.
Args:
p0:

‘density’ the density 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 density of all the massed particles
#
ensight.part.modify_begin()
ensight.ptrace.massed_particle_density(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