CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ParaView (
-   -   Timesteps, values and variable colors (

Omgaan August 23, 2013 04:17

Timesteps, values and variable colors

i'm new to Paraview and have a lot of problems to deal with.

First i'll tell you about my project.

I got 2 .csv files. The first one contains information about positions of probes.
The second one about the temperature. Each row is another timestep.
What i need is the probes shown up with temperature and color matching to the temperature. To this there should be a way to go through the timesteps.
What i did is: Filtered the first .csv with the "tabletopoints" filter. So i got my points shown up, but i can't find a way to add the values to each point, get the points colored right and at least how to use the timesteps.
May you can help me with these problems.

Thank you so far.


...and sorry for my bad english.

wyldckat August 24, 2013 13:15

Greetings Omgaan and welcome to the forum!

Can you provide a small sample/example of the two files?
Because without example files, I'm only able to suggest that you try the "Append *" filters or the "Warp By *" filters.

Best regards,

Omgaan August 24, 2013 14:42

Thank you Bruno for your time.

I think this is the key file.

You can see there in the first column the timesteps.
Each further column is temperature data of a probe.

The other file just contains the x,y,z-coordinates of each probe (25 to be exactly)

What i try to get is:
Each probe at its place -> tabletopoints filter should do this.
Next step is to link each of this points to 1 column of the other file to show the temperature data at each timestep.
In the last step i want to color each probe point related to the temperature.

If this project is running any day the first file is useless because the temperature data will be retrived from an sql table.

Best regards

wyldckat August 24, 2013 17:31

Can you please attach a couple of example files, so that I can test it myself?

Otherwise I'll only be able to give suggestions that will unlikely work.

Nonetheless, a few ideas do come to mind:
  • If you want to be able to represent the time snapshots, it would be advisable to convert the time to seconds, which I don't think ParaView is able to do right off the bat, unless you use ParaView's Python scripting.
  • The "Temperature" CSV file should be transposed of the one in the image. I say this because otherwise it might be more complicated to process the data.

wyldckat August 24, 2013 18:49

Hi Omgaan,

I've taken a look into the files you sent me and it's not possible to process these two specific files without the help of Python scripting. You can use the "Programmable Source" (which is coded in Python) from the "Source" menu, by using code based on the following code snippets as reference:

If you do not want to rely on Python for handling this data, then the only other solution that I can think of requires you to pre-process the two CSV files into one CSV file per time snapshot, where each time snapshots would be something like:

sensor, x, y, z, Temperature
1, 0.0, 0.1, 0.2, 230
2, 1.0, 0.5, 0.3, 250
30, 10.0, 11.1, 13.0, 245

Each CSV file would have to be named something like this:



As for the exact time identification, you would have to rely on using a fixed time period between each snapshot... which in your case, seems to be 12 minutes. This period would be defined in the "Animation View", accessible from the "View" menu.

Best regards,

Omgaan August 25, 2013 10:22

Thank you

I will try it with a c++ script because in the final version the data is retrieved by sql requests.

All times are GMT -4. The time now is 05:14.