CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Timesteps, values and variable colors

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2013, 05:17
Default Timesteps, values and variable colors
  #1
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 12
Omgaan is on a distinguished road
Hey,

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.
Omgaan is offline   Reply With Quote

Old   August 24, 2013, 14:15
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 24, 2013, 15:42
Default
  #3
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 12
Omgaan is on a distinguished road
Thank you Bruno for your time.

I think this is the key file.

http://postimg.org/image/kuh7z8bxf/

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
Omgaan is offline   Reply With Quote

Old   August 24, 2013, 18:31
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 is offline   Reply With Quote

Old   August 24, 2013, 19:49
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
Code:
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:
Code:
time0000.csv
time0001.csv
time0002.csv
time0003.csv

...
time0236.csv
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,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 25, 2013, 11:22
Default
  #6
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 12
Omgaan is on a distinguished road
Thank you

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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 read variable values on a surface Comi Fluent UDF and Scheme Programming 3 April 3, 2019 22:33
Mass Flow variable giving zero values Shomaz ul Haq CFX 8 June 19, 2017 20:18
3D equation, loading values for variable Cp from txt file with time-value columns AJAY BHANDARI OpenFOAM Programming & Development 11 January 1, 2016 06:16
Reference Values for Troughs @ variable Angle? hornig FLUENT 1 April 12, 2014 23:26
negative values of additional variable cosine CFX 0 November 15, 2011 05:42


All times are GMT -4. The time now is 04:27.