add_emitter_points_to_particle_trace_part#

Parts.add_emitter_points_to_particle_trace_part(particle_trace_part: str | int | ENS_PART, points: List[List[float]]) ENS_PART_PARTICLE_TRACE#

Add point emitters to an existing particle trace. The function will return the updated ENS_PART object.

Parameters:
particle_trace_part:

The particle trace part to be added emitters to. Can be the name, the ID or the ENS_PART object

points: list

List of list containing the coordinates for the seed points.

Examples

>>> s = LocalLauncher().start()
>>> cas_file = s.download_pyansys_example("mixing_elbow.cas.h5","pyfluent/mixing_elbow")
>>> dat_file = s.download_pyansys_example("mixing_elbow.dat.h5","pyfluent/mixing_elbow")
>>> s.load_data(cas_file, result_file=dat_file)
>>> p = s.ensight.utils.parts.create_particle_trace_from_points("mytraces", "Velocity", points=[[-0.02, -0.123, 0.01576]], source_parts=parts.select_parts_by_dimension(3))
>>> p = s.ensight.utils.parts.add_emitter_points_to_particle_trace_part(p, points=[[0.109876, -0.123, 0.0123]])