Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Fluids How to get particle X,Y,Z position in every time step in Rocky? Reply To: How to get particle X,Y,Z position in every time step in Rocky?

Lucas Bertollo Baggio
Ansys Employee

Hello,

You can use prepost scripting to get an array with the coordinates of every particle in each timestep. For example:

project = app.GetProject()
study = project.GetStudy()
particles = study.GetParticles()
particles_coordinates_X = particles.GetGridFunction('Coordinate : X')
particles_X_timestep_1 = particles_coordinates_timestep_1.GetArray(time_step=1)



[bingo_chatbox]