[vtkusers] vts periodic boundaries

Andy Bauer andy.bauer at kitware.com
Wed Jul 31 10:11:50 EDT 2013


Hi Patrick,

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.

The only wa to get around that is to either use a vtkPolyData if it's 2D or
a vtkUnstructuredGrid.

Regards,
Andy

On Wed, Jul 31, 2013 at 6:10 AM, Patrick Bechlars <
patrick.bechlars at soton.ac.uk> wrote:

> Dear all,
>
> 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.
>
> 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.
>
> Any idea is welcome!
>
> Thanks a lot
> Patrick
>
> --
> Patrick Bechlars
> Aerodynamics and Flight Mechanics Group
> Faculty of Engineering and the Environment
> University of Southampton
> Building 13, 2071
> Highfield
> Southampton
> SO17 1BJ
> email: patrick.bechlars at soton.ac.uk
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130731/4c70fe3c/attachment.htm>


More information about the vtkusers mailing list