Skip to content

Reply To: Extract velocity, pressure, and density data on lattices without interpolation

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Extract velocity, pressure, and density data on lattices without interpolation Reply To: Extract velocity, pressure, and density data on lattices without interpolation

#10305
danial
Participant

This might be a bit late to answer but what I found useful when trying to get the data in CSV format in the lattice points and not interpolated points, is to just let OpenLB dump the data into pvd/vtm/vti regularly, then use VTK library in python to read the vti data into numpy arrays. There will be some overlapping points from the MPI tiles and if you need to remove those overlapping points and just end up with unique lattice points that needs another step of processing. The method mentioned in this thread looks interesting though because it doesn’t need python & VTK and can be done within OpenLB c++ codes itself, I should give it a try.