[Paraview] how can I produce a line plot from this quasi-1D structured mesh data?
Noah Reddell
reddell at uw.edu
Wed May 21 13:34:17 EDT 2014
I was able to get an adequate solution to work simply by applying the PlotOverLine tool. The x-axis extents auto populated based on my structured 1D grid size. I did have to set the Resolution property higher to capture all of my data. In other words, the default resolution setting has nothing to do with the mesh resolution.
-Noah
On May 20, 2014, at 10:01 PM, Noah Reddell <reddell at uw.edu> wrote:
> Hi ParaView users.
>
> I’m creating a utility to convert my 1D, 2D, or 3D high-order finite element data into structured point data for ParaView. The script is written in Python and I am using the EVTK module’s high-level API, evtk.hl.gridToVTK().
>
> This EVTK interface requires providing structured x, y, and z coordinates. For 1D, and 2D data, I set the mesh and data extent in the upper dimension(s) to one node with coordinate zero. This makes a line or plane, but sort of described in 3D.
>
> This technique works for 2D. When I load the data set, ParaView switches to 2D camera view and displays my mesh and data.
> For my 1D data, nothing is displayed. The 3D camera view comes up. I think I can manipulate the view to show me the linear mesh extent, but I can’t display the data. I actually want to display the data in the ParaView Line Plot mode. How can I do that?
> (I’m using ParaView 4.1 on Mac.)
>
> The attached vts file is an example sinusoid versus x. You can see in the screenshot that the Tabular view shows the data correctly. So, I think my script and vtk file are reasonably correct. Of course, the pseudo-3D data representation is sort of a hack I’m trying.
>
> Thanks for your thoughts!
>
> -Noah
>
>
> <paraview_1D_evtk_grab.jpg>
> <structured_data_from_evtk_1D.vts>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140521/c9c5b765/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paraview_plot_over_line.jpg
Type: image/jpg
Size: 268730 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140521/c9c5b765/attachment-0001.jpg>
More information about the ParaView
mailing list