variable#

ptrace.variable(p0: Any) int#

Specifies the vector variable to use for the flow field for the particle trace.

Args:
p0:

‘name’ name of the vector variable

Examples:
#
# Selecting the parent part
#
ensight.part.select_begin(1)
#
# Setting some attributes before creation
# (the variable is being set here)
#
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.end()
#
# Creating trace from a point
#
ensight.ptrace.create_pt()
Returns:

zero on success, non-zero on error