paraview streamline length
Hi,
does anybody know how to compute the length of a streamline in paraview?I need to compute tortuosity. Thank you in advance. |
Greetings Alessandro and welcome to the forum!If you only have a single streamline and you want to calculate the total length, then:
Bruno |
Thanks a bunch Bruno! :) Finally I've succeded to compute tortuosity strting directly from the velocity field, without the aid of paraview. Anyway it will be useful in future!
Best regards Alessandro |
Quote:
Could you tell me how to calculate tortuosity by paraview step by step? I only know how to draw the streamlines. Thank you! Best, Rosa Quote:
If I got a bunch of streamlines, how to get the length of each one? Best regards, Rosa |
1 Attachment(s)
Greetings Rosa,
Quote:
The quickest solution I could figure out will only allow the calculation of each individual line length within ParaView:
As for doing this automatically for all lines, you will have to export the data from the streamtracer (menu File -> Save Data) to a CSV file and do the calculations with some other application, such as LibreOffice Calc. Best regards, Bruno |
Quote:
Thank you Bruno ^_^ |
Quote:
Quote:
|
Streamline Length
2 Attachment(s)
Hello Bruno,
I found this discussion about streamline length. However, I do not manage to get it. Here is my problem. I imported a .vtk file of a streamline from star ccm+. I applied the Integrate Variables Filter to it. On the spreadsheet you mentionned, I changed the option "Attribute" to "Cell Data". Yet, I do not have the "Length" Column. Do you know the reason ? Than you in advance Best regards, Zango Ps : pdf files are actually screenshots of paraview |
Quick question: Can you share an example VTK file with which this can be reproduced?
Because the problem seems to be that you applied the "Integrate Variables" filter to something that is not a polygonal line and is instead a mesh. Perhaps you exported a tube-shaped streamline? |
1 Attachment(s)
Thank you for your quick answer.
I enclosed the vtk file for which I wanted to apply the "Integrate Variables" filter to. I do not know whether it is a tube shaped streamline or a polygonal line. |
1 Attachment(s)
Quote:
You will need to change the way you created the streamlines. If you cannot, then I'm not even sure how we can extract only one of the long edges of the surface... :( |
Ok thank you for your answer :)
|
Hi Foamers,
Choose in "Threshold" to use the scalar "SeedIds" and the values minimum and maximum, for example between 1 to 10 to calculate total length of these 10 streamlines and then divide those by the straight lines (10*L) to measure tortuosity of your domain. Rasoul |
All times are GMT -4. The time now is 13:21. |