CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Timesteps, values and variable colors

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 23, 2013, 04:17
Default Timesteps, values and variable colors
  #1
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 4
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, 13:15
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 14:42
Default
  #3
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 4
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, 17:31
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 18:49
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 10:22
Default
  #6
New Member
 
Join Date: Aug 2013
Posts: 3
Rep Power: 4
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference Values for Troughs @ variable Angle? hornig FLUENT 1 April 12, 2014 22:26
Setting cell variable values in a fluid zone using UDF eromon84 Fluent UDF and Scheme Programming 5 October 15, 2013 05:16
how to read values of variable viscosity camoesas OpenFOAM Post-Processing 1 April 20, 2012 06:30
negative values of additional variable cosine CFX 0 November 15, 2011 05:42
How to monitor variable values of point at t=0 sec yunhee CFX 3 February 13, 2008 13:45


All times are GMT -4. The time now is 02:01.