We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
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.

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