[vtkusers] vts periodic boundaries
Patrick Bechlars
patrick.bechlars at soton.ac.uk
Wed Jul 31 11:16:56 EDT 2013
Hi Andy,
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?
Is there nothing like a GhostLevel="#" option for specific boundaries in
the Serial XML File Format or a filter that does that work afterwards?
Best regards,
Patrick
On 31/07/13 15:11, Andy Bauer wrote:
> 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 <mailto: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
> <mailto:patrick.bechlars at soton.ac.uk>
>
>
> _______________________________________________
> Powered by www.kitware.com <http://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
>
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130731/a67b6556/attachment.htm>
More information about the vtkusers
mailing list