We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Particle Properties Gone Missing in PyRocky

    • oroma
      Subscriber

      Hey, I am new to Ansys Rocky, I have been working on some simulations with just solid particles in 2024R2 locally. However, then I moved to a remote cluster to make use of more computational power, and there only 2025R1.1 was installed, so I ran with that.

      My issue comes in postprocessing, I bring the simulation results back to my machine and work locally. I originally tried to process the results from the cluster's 2025R1.1 with my local 2024R2, but noticed one variable I was interested in ("Particle Solid Volume") was missing, I then fixed that by installing 2025R1.0 locally (note: I cannot find 2025R1.1) and loading my results there, now I can see "Particle Solid Volume" in my local machine. However, now I am trying to process these results using PyRocky, and I have the same issue of not finding "Particle Solid Volume" despite using 2025R1. Below is a simple bit of code I am running to get this:

      rocky = pyrocky.launch_rocky(rocky_exe="C:\\Program Files\\ANSYS Inc\\v251\\rocky\\bin\\Rocky.exe")

      project = rocky.api.OpenProject(filename)
      processes = project.GetUserProcessCollection()
      study = project.GetStudy()
      particles = study.GetParticles()
      Vs = particles.GetGridFunction("Particle Solid Volume")
      Where the last line hits me with a ValueError being unable to find the property I ask for (even though I can see it when loading the same results in Rocky via GUI.
      Has anyone experienced a similar issue? Or have ideas of how to get around this?

      Edit: I am also sure the naming is correct, and that the variable should exist. I know, because I ran the same python script on a simplified version of the case which I fully simulated locally and "Particle Solid Volume" was succesfully retrieved.

    • CFD_Friend
      Ansys Employee

      Hi oroma,

      PyAnsys project is developed and supported through GitHub. You can post issues and request new featured on the the Issues page for each package, or contact PyAnsys support. For more details, please refer to PyAnsys GitHub page: https://github.com/pyansys

    • oroma
      Subscriber

      I finally managed to sort out the issue. It did turn out to be a compatibility problem. I found how to install 2025R1.1, and when launching this version with pyrocky the property was found.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.