type#
- ptrace.type(p0: str) int #
Sets the type of particle trace that will be created.
Pathline is only available for transient data cases.- Args:
- p0:
‘option’
streamline
pathline
nodetrack
variablemintrack
variablemaxtrack
- Examples:
# # Setting default particle trace variable # ensight.ptrace.select_default() ensight.part.modify_begin() ensight.ptrace.variable("VITESSE") ensight.part.modify_end() # # Selecting the parent part # ensight.part.select_begin(1) # # Setting some attributes before creation # (the type is being set here) # ensight.ptrace.begin() 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