I’m currently trying to track particle using the solver icoUncoupledKinematicParcelFoam of OpenFoam 7 .
My simulation runs well but the only positions for the particles that I get are barycentric coordinates. And I didn’t find on Internet an easy method to switch barycentric coordinates to cartesian 's ones…
So I tried to do it using Paraview by using this method:
run the simulation
type paraFoam on the terminal
add the filter extrudeBlocks and chose lagrangian data
open a new layout and select spreedsheet view
export date into . csv file
I was really happy with this method when I figured out there was a problem. Indeed, if, for exemple, in the file time1.csv, at the line 3 there is the coordinate of the particle 3 then in the file time2.csv , at the line 3 it’s not the coordinate of the particle 3 anymore but of another one…
It’s really a problem for me because I need to follow the trajectory of the particles…
I was wondering if there is a way in Paraview to print the trajectory of particles?
Thanks to all in advance, hope someone know how to do that…
Using the method that I described, I got one csv file for each time step. In each file, each line represent the coordinate x, y, and z of one particle.
The problem is that in the file of the time 1, at the line 3, I got the coordinate of the particle number 3 but in the file of the time 2, at the line 3, I got the coordinate of the particle number 5 (so it’s not the same particle).
However, for my internship project, I need to know the exact trajectory of each particle. Which I can’t do using those csv file because when I have a lot of particle, I can’t know in which line are the coordinates of the particle 3 in the file of the time 2 (to follow my example)
Hi all,
I am trying to get the positions of particles in Paraview, I see the file of positions in each time step, but I dont see the position field in paraview, I tried foamToVTK and foamToEnsight, but both of them dont show the field positions in the lagrangian part.
thanks for your time