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

paraview ignores SPACING in STRUCTURED_POINTS vtk data?

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

Reply
 
LinkBack Thread Tools 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
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
Motobike tutorial U, P etc. data not loading to ParaView. Doug68 OpenFOAM Running, Solving & CFD 3 April 2, 2015 04:19
Animating unsteady data from Fluent in Paraview.. frodooon ParaView 10 May 9, 2014 10:39
From FLUENT data to Paraview bart weisser FLUENT 1 July 16, 2010 04:41
Rendering Fluent Data in Paraview burk FLUENT 4 July 7, 2008 03:32
Import Postprocessing VTK or Ensight Data Fab FLUENT 1 December 19, 2007 10:29


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