Ellipsoid particle motion

Dear All,
I am currently working on ellipsoid particle tracking using openFoam. I would like to visualize the ellipsoid particles motion in paraview using xyz coordinates, minor & major axis, and orientation. I have all these parameters in text files for each single particle. Is it possible to read them and visualize particle motion?
Best Regards,
Kazem

Did you try loading your files in ParaView ?

No. because i do not know if paraview has this capability to visualize an ellipsoid particle through a text file. I have not been working with paraview very much and not sure if it is a simple task.

please share your data

Thanks for your consideration. I attached a sample file. It contains the properties as follows:
time x y z minor diameter major diameter transformation matrix (it is a matrix expressed in terms of either Euler angles or Euler parameters (quaternions))
Sample.csv (14.2 KB)

Any idea how to draw an ellipse using a text file??

Your files is not of .csv format, it cant be opened easilly in ParaView.

i can send txt file. would it solve the problem??

You need to generate compatible data. Cant help you much more here.

what do you mean by compatible data? i really wanna know how Paraview deal with the data? because for a spherical particle there is a table to point filter. But how about other shapes such as ellipse??

ParaView will just show what you give to it if the data is compatible. Your data is not.

You may want to read the ParaView tutorial:
https://www.paraview.org/Wiki/images/1/17/ParaViewTutorial510.pdf

Thanks. So you do not have any suggestion but compatibility. I was wondering if Paraview has this capacity itself or i need to develop a customized filter to visualize an ellipse.

ParaView can show an ellipse of course, but you need to provide the data that contains the ellipse.

Good news. So i need to just build a compatible data file. Right? not developing any filter or stuff like that. Is there any guide how to build a file that contains the ellipse? I suppose to draw an ellipse we need the origin and three points. Right?

So you just want to generate an ellipse in ParaView ? Thats even more easy.

Source → Ellipse → Apply

It is a good suggestion but not for my case. I export ellipse coordinates from openfoam and need to read in Paraview. I can not visualize 2000 ellipse let say by hand.

Ok, well then just write .csv or .vtk file from OpenFOAM. It should contains the actual points of the ellipse.

Thanks. I will try your suggestion. Just need to find out how many points of ellipse shall i provide for Paraview

As much as you need to make your visualization as smooth as you need.

Hi Kazem,

an alternative route is to create a file containing the points and store the ellipsoid matrix of corresponding to each point as a tensor. ParaView will then be able to create an ellipsoid centered on each of your points. The tensor values will define orientation and the axes of the ellipsoid. This should solve the issue of visualizing many of them.

For example :

Attached is the corresponding file
ellipses.vtk (174 Bytes)

The expected format of the matrices is described here