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

Paraview's "read-values" capability

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2013, 15:40
Default Paraview's "read-values" capability
  #1
Member
 
Vasileios Sassanis
Join Date: Nov 2012
Posts: 76
Rep Power: 4
VSass is on a distinguished road
Hey lads,

i have these values in one of my results files for p :

83333.29727559452
83333.29727116377
83333.29728432324
83333.29726004707
83333.29726903667
83333.29726512189
83333.2972572857
83333.29729613037
83333.29731830103
83333.29732028065 and many more for all the points in the grid.

As you can see, the difference starts from the fourth significant digit and there is a difference in the values, but paraview plots only two values, 83333.306514 for max and 83333.290024 for min, and not the intermediate values. It just show two colours, blue for the min and red for the max.

Why it doesn't plot the other values???
VSass is offline   Reply With Quote

Old   February 23, 2013, 17:32
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,947
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings VSass,

Actually, it's not the 4th significant digit, it's the 9th!

ParaView has some issues with precision, which AFAIK is due to hard-coded limits in the source code.
If you do need to see the results with more precision, you will have to rescale values. Some possible options:
  • Subtract the reference value "83333" to the "p" field. This way you increase colour resolution, as long as the rest of the field has similar values.
  • You can also try increasing the colour mapping... and label ranges and so on... but I'm not sure if this is what you need.
  • Last but not least, you can modify ParaView's source code and rebuild from source. If you do need to do this, I suggest you try asking in ParaView's mailing list: http://www.paraview.org/mailman/listinfo/paraview
In addition, it would help to know how you loaded the values into ParaView.

And have you tried the "spreadsheet view"? http://www.paraview.org/Wiki/ParaVie...readsheet_View - this way you can confirm if ParaView has actually loaded those values you listed!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 23, 2013, 20:36
Default
  #3
Member
 
Vasileios Sassanis
Join Date: Nov 2012
Posts: 76
Rep Power: 4
VSass is on a distinguished road
Thanks Bruno,

i'm working on setting the reference value for p right now, and see if this works.
I've checked the spreadsheet view, values are loaded with exact precision on each point, that's why i was so concerned for the colour mapping.

Thanks a lot!
VSass is offline   Reply With Quote

Old   February 24, 2013, 14:27
Default
  #4
Member
 
Vasileios Sassanis
Join Date: Nov 2012
Posts: 76
Rep Power: 4
VSass is on a distinguished road
Bruno,

i didn't exactly caught your advise of how to subtract the reference value 83333.3. You meant rescaling from the colour map?

Anyway,this is the last step before entering to the source code, 'cause nothing else seems capable of solving the matter.
VSass is offline   Reply With Quote

Old   February 24, 2013, 16:02
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,947
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi VSass,

Sorry, I thought you knew. You can use the "Calculator" filter: http://www.paraview.org/Wiki/ParaVie...ide/Calculator

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 24, 2013, 15:08
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,947
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quick update: there was an answer in the ParaView mailing list: http://markmail.org/message/pwhpq2p6kdsdvayy
wyldckat is offline   Reply With Quote

Reply

Tags
accuracy, colours, paraview, plot, values

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



All times are GMT -4. The time now is 16:53.