create_net#
- ptrace.create_net(p0: int, p1: int) int #
Create particle traces from the plane 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. You need the plane tool to be at the desired location.The number of emitter points will be the product of num_in_x * num_in_y.- Args:
- p0:
‘num_in_x ‘ number of equally spaced points in the x direction of the plane tool
- p1:
‘num_in_y ‘ number of equally spaced points in the y direction of the plane tool
- Examples:
# # Getting the plane tool to the desired location # ensight.view_transf.plane(1,1.750000,2.700000,0.000000) ensight.view_transf.plane(2,13.000000,2.700000,0.000000) ensight.view_transf.plane(3,13.000000,9.500000,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 35 traces from the plane tool # ensight.ptrace.create_net(5,7)
- Returns:
zero on success, non-zero on error