CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

particleTracks to Matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2015, 12:13
Default particleTracks to Matlab
  #1
Member
 
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 10
Gerrit is on a distinguished road
Hi

I need to put the particle tracks to put to Matlab or Scilab. My only problem is, that the particleTracks.vtk is basically only a list of all particle positions.

The beginning is something like this:
Code:
# vtk DataFile Version 2.0
particleTracks
ASCII
DATASET POLYDATA
POINTS 10442 float
-2.24536432e-08 0.986388977 0.00383200466
-5.19153517e-08 0.982761592 0.00767320536
-8.83598122e-08 0.97915399 0.0114858042
...


the end a list of lines:
Code:
LINES 55 10497
168 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33....
Paraview can somehow see, when a new particle starts. How does that work, only knowing these data? I have to put that in Malab or Scilab.
My particles are following in y-direction, so it would be easy to say something like:
if y(i)>y(i-1) than make new vector for a new particle. But for the case a particle makes a step backwards (turbulences) this idea is non-sense...

I am open for all suggestions
Gerrit is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Fluent with Matlab?? Jay Hu FLUENT 8 November 9, 2022 06:30
Export/Import data contour plots with Matlab meangreen FLUENT 11 October 28, 2020 10:06
ARPACK example driver gives different results from Matlab jollage Main CFD Forum 0 December 3, 2014 18:00
Linking with Matlab?? LostinSpace Phoenics 0 March 25, 2013 05:39
Live connection Matlab VS OF levka OpenFOAM Running, Solving & CFD 0 July 10, 2012 04:15


All times are GMT -4. The time now is 15:23.