Heya! I’m having an issues reading lagrangian data using vtkOpenFOAMReader via Python. I can’t even see any lagrangian arrays even tho particle files are present in each time-step directory (see code below). I used OpenFOAM-11 (dev) to output lagrangian data. Thanks in advance for your help!
import vtk
import pyvista as pv
reader = vtk.vtkOpenFOAMReader()
reader.SetFileName("./case.foam")
reader.EnableAllPointArrays()
reader.EnableAllLagrangianArrays()
reader.UpdateInformation()
reader.SetTimeValue(1)
reader.Update # SetTimeValue: good
fluidVars = reader.GetNumberOfCellArrays() # most: good (phi: ignored)
particleVars = reader.GetNumberOfLagrangianArrays()
print(particleVars) # shows 0 arrays