<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hey <span style="color:rgb(0,0,0)"><span class="">Torquil Sørensen,<br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0)"><span class="">You will get the desired solution once you change "POINT_DATA 9" to "CELL_DATA 4".<br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0)"><span class="">And then similarly specifying the data in each of the cell. In this case I suppose the .vtk file for you should be- <br><br><br># vtk DataFile Version 2.0<br>Exported by getfem++<br>ASCII<br>DATASET UNSTRUCTURED_GRID<br>POINTS 9 float<br> 0 0 0<br> 0.5 0 0<br> 0 0.5 0<br> 0.5 0.5 0<br> 1 0 0<br> 1 0.5 0<br> 0 1 0<br> 0.5 1 0<br> 1 1 0<br><br>CELLS 4 20<br> 4 0 1 3 2<br> 4 1 4 5 3<br> 4 2 3 7 6<br> 4 3 5 8 7<br><br>CELL_TYPES 4<br> 9<br> 9<br> 9<br> 9<br><br>CELL_DATA 4<br><br><br>SCALARS scalarField float 1<br>LOOKUP_TABLE default<br> 0 0 0 1<br><br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0)"><span class="">Cheers,<br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0)"><span class="">Kaushik<br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0)"><span class=""><br><br></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 7:56 PM, Torquil Macdonald Sørensen <span dir="ltr"><<a href="mailto:torquil@gmail.com" target="_blank">torquil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I have defined a 2d quadrangle mesh consisting of 2x2 elements, with<br>
Q_1,1 basis functions in GetFEM++, and exported an example function to<br>
ASCII VTK format. The only node at which the example function is nonzero<br>
is the middle one.<br>
<br>
When I open the VTK file in Paraview, it looks as if it has used some<br>
kind of triangle interpolation. Instead of its support being the entire<br>
mesh, it has become zero near two opposite domain corners. In<br>
particular, the result should have been 90-degree rotation symmetric<br>
about the centre node.<br>
<br>
How do I get Paraview to display this Q_1,1 function correctly, or at<br>
least without it seemingly being interpolated onto a triangular mesh?<br>
<br>
I'm using Paraview 4.3.1 and the ASCI VTK file generated by GetFEM++ is:<br>
<br>
# vtk DataFile Version 2.0<br>
Exported by getfem++<br>
ASCII<br>
DATASET UNSTRUCTURED_GRID<br>
POINTS 9 float<br>
0 0 0<br>
0.5 0 0<br>
0 0.5 0<br>
0.5 0.5 0<br>
1 0 0<br>
1 0.5 0<br>
0 1 0<br>
0.5 1 0<br>
1 1 0<br>
<br>
CELLS 4 20<br>
4 0 1 3 2<br>
4 1 4 5 3<br>
4 2 3 7 6<br>
4 3 5 8 7<br>
<br>
CELL_TYPES 4<br>
9<br>
9<br>
9<br>
9<br>
<br>
POINT_DATA 9<br>
<br>
<br>
SCALARS scalarField float 1<br>
LOOKUP_TABLE default<br>
0 0 0 1 0 0 0 0 0<br>
<br>
Thanks and best regards<br>
<span class="HOEnZb"><font color="#888888">Torquil Sørensen<br>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>