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

[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2012, 10:36
Question paraview ignores SPACING in STRUCTURED_POINTS vtk data?
  #1
New Member
 
Stefan
Join Date: Nov 2012
Posts: 1
Rep Power: 0
jaffar is on a distinguished road
Hello everyone,

I got this unexpected problem with 1d plots in paraview (ver. 3.14.1, 64bit under debian) which just drives me nuts and I hoped someone would be able to help me with it. To my surprise Paraview is capable of so many highly sophisticated stuff and yet most of the time when I encounter difficulties it is with the most basic functionality. Well maybe I just didnt do enough RTFM, I dont know.

So here is what I do:
I am running simulations in 1 and 2 dimensions, the output of which are files in vtk legacy(?) format using STRUCTURED_POINTS datasets to visualize the time evolution of an order parameter field (so i output a file every once in a while, give it a name indicating the timestep and then, using paraview can view the time evolution, which works just nice).

The discretization (distance between gridpoints) that I use does not change during the runtime of one simulation, however I need to be able to visually compare results from simulations carried out with different discretization. To this end, I need Paraview to take into account the spacing between datapoints to plot the data against real space coordinates rather than grid coordinates.

Luckily, the STRUCTURED_POINTS dataset format allows to specify a SPACING which I set to the discretization that I used for simulation. Now, in 2d plots that just works flawlessly but in 1d plots, paraview just seems to ignore it and uses a spacing of 1 instead.

So here is the vtk file header of my data I use.
# vtk DataFile Version 2.0

ASCII

DATASET STRUCTURED_POINTS
DIMENSIONS 44 1 1
ORIGIN 0 0 0
SPACING 0.500000 1 1

POINT_DATA 44
SCALARS segment_density double 1
LOOKUP_TABLE default
+0.000000
+0.000000
+0.031564
-0.013016
+0.025856
.....

The output I would expect is an x-range of 0..22 where each datapoint is 0.5 points apart, however what I get is a range of 0..44 with a spacing of 1.0 points... (see the attached file rescale_ignored.jpg)

Interestingly, if i just "made it" a 2d plot by hand, setting
DIMENSIONS 44 2 1
POINT_DATA 88
and then doubling the point data by copy and pasting, it will show me a 2d plot with the approprate rescaling. (see the attached file rescale_just_fine.jpg)
Actually if I then used the plot over line feature of Paraview it would be a workaround to my problem but this just should not be the solution to this, right?

Any attempt to help will be appreciated, I googled a lot but 1d does not seem to concern too many users of paraview.
If I should provide additional information on the problem, please let me know.

Thanks,

Stefan
Attached Images
File Type: jpg rescale_ignored.jpg (28.4 KB, 4 views)
File Type: jpg rescale_just_fine.jpg (25.3 KB, 4 views)
jaffar is offline   Reply With Quote

Reply

Tags
structured_points spacing

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
[General] Paraview time series data with a single mesh file Artur ParaView 0 October 19, 2018 18:20
[General] Paraview data modification from vtkmultiblockdataset andidi ParaView 0 January 10, 2017 00:34
[General] Creating VTK image compatible to Paraview Visualizer het ParaView 0 January 7, 2016 09:20
[General] Extract Paraview data (vtkUnstructured Grid) using pvpython lu_siyah ParaView 1 November 3, 2013 07:10
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23


All times are GMT -4. The time now is 19:17.