create_rake#

ptrace.create_rake(p0: int) int#

Create particle traces from the current location of the line tool.

The default attributes and/or any “ptrace:” attribute commands between “ptrace: begin” and “ptrace: end” commands are used for the trace creation. A parent part or parts (containing the flow field) must be selected prior to this command, and you need the line tool to be at the desired location.
Args:
p0:

‘num_points’ number of equally spaced points on the line to use as emitters

Examples:
#
# Getting the line tool to the desired location
#
ensight.view_transf.line(1,9.000000,6.000000,0.000000)
ensight.view_transf.line(2,30.000000,6.000000,0.000000)
#
# Selecting the parent part(s)
#
ensight.part.select_begin(1,3,4)
#
# Setting some attributes before creation
# (others are the current defaults)
#
ensight.ptrace.begin()
ensight.ptrace.variable("VITESSE")
ensight.ptrace.type("streamline")
ensight.ptrace.component(1.0000e+00,1.0000e+00,1.0000e+00)
ensight.ptrace.representation("line")
ensight.ptrace.emit_at_current_time("ON")
ensight.ptrace.end()
#
# Creating 10 traces from a line tool
#
ensight.ptrace.create_rake(10)
Returns:

zero on success, non-zero on error