CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Paraview's "read-values" capability (

VSass February 23, 2013 15:40

Paraview's "read-values" capability
Hey lads,

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

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???

wyldckat February 23, 2013 17:32

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:
In addition, it would help to know how you loaded the values into ParaView.

And have you tried the "spreadsheet view"? - this way you can confirm if ParaView has actually loaded those values you listed!

Best regards,

VSass February 23, 2013 20:36

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 February 24, 2013 14:27


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.

wyldckat February 24, 2013 16:02

Hi VSass,

Sorry, I thought you knew. You can use the "Calculator" filter:

Best regards,

wyldckat March 24, 2013 15:08

Quick update: there was an answer in the ParaView mailing list:

All times are GMT -4. The time now is 07:54.