Fluids

Fluids

What is the difference between the tracked_particle_struct and the particle_struct for DPM UDFs?

TAGGED: ,

    • jcastel
      Subscriber

      In a UDF I am using: " loop(I, Ilist) { loop(p, I->p) { " to loop over all the injections in my simulation and then the each particle in each injection I would then like to get the position of each particle "p" using the macro TP_POS(tp)[i].

      I appear to be getting a problem when i try to call the TP_POS(p)[i] because "p" is in the format of the "patricle_struct" but the macro is looking for "tp" in the "tracked_particle_struct" format.

    • Surya Deb
      Ansys Employee
      Hello,
      Please use the "tp" definition as it will be able to access the position and other related variables for tracked particles.
      For more details, please refer to the link below:
      Regards SD
    • Surya Deb
      Ansys Employee
Viewing 2 reply threads
  • You must be logged in to reply to this topic.