<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Andy,<br>
<br>
The derivatives and other filters involving spatial data are not
too important as I do all calculations externally. It is mainly
about the plotting. If I want to stick to StructuredGrid, then
there will always be this additional boundary. Is that what you
are saying?<br>
Is there nothing like a GhostLevel="#" option for specific
boundaries in the Serial XML File Format or a filter that does
that work afterwards?<br>
<br>
Best regards,<br>
Patrick<br>
<br>
On 31/07/13 15:11, Andy Bauer wrote:<br>
</div>
<blockquote
cite="mid:CAMaOp+FXnktfuFLobrokiXa_4QZA6xo=cCYos0NF+Am_jp+aRg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi Patrick,<br>
<br>
You can make a vtkStructuredGrid act like it is periodic by making
the first and last set of points be coincident. It looks like you
need one more level of cells as well as one more level of points.
The thing is that depending on the filter, you may not get the
behavior you want. For example, if you extract the boundary of the
grid it will show a boundary where the first and last set of cells
meet. Also, the computed gradient will not be continuous there
either.<br>
<br>
The only wa to get around that is to either use a vtkPolyData if
it's 2D or a vtkUnstructuredGrid.<br>
<br>
Regards,<br>
Andy<br>
<br>
<div class="gmail_quote">On Wed, Jul 31, 2013 at 6:10 AM, Patrick
Bechlars <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:patrick.bechlars@soton.ac.uk" target="_blank">patrick.bechlars@soton.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I am trying to write out a cylindrical data set as a vtk file
in StructuredGrid form to read it in Paraview. I would like to
write the vtk file in a way that the first and last cell (see
gap in the picture) are connected. Does any of you have
experience in that and/or have a hint how to achieve that.<br>
<br>
One idea was to write it in parallel format as two pieces and
add ghost cells, but this would be quite dirty and is not
exactly what I want.<br>
<br>
Any idea is welcome!<br>
<br>
Thanks a lot<span class="HOEnZb"><font color="#888888"><br>
Patrick<br>
<br>
-- <br>
Patrick Bechlars<br>
Aerodynamics and Flight Mechanics Group<br>
Faculty of Engineering and the Environment<br>
University of Southampton<br>
Building 13, 2071<br>
Highfield<br>
Southampton<br>
SO17 1BJ<br>
email: <a moz-do-not-send="true"
href="mailto:patrick.bechlars@soton.ac.uk"
target="_blank">patrick.bechlars@soton.ac.uk</a><br>
<br>
</font></span><br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Patrick Bechlars
Aerodynamics and Flight Mechanics Group
Faculty of Engineering and the Environment
University of Southampton
Building 13, 2071
Highfield
Southampton
SO17 1BJ
email: <a class="moz-txt-link-abbreviated" href="mailto:patrick.bechlars@soton.ac.uk">patrick.bechlars@soton.ac.uk</a></pre>
</body>
</html>