[Paraview] Physical Boundary Condition ID in VTK Data structure

Andy Bauer andy.bauer at kitware.com
Tue Oct 13 11:12:42 EDT 2009

Check out the vtkAbstractDataArray class and it's derived types for storing
the information you want.  You can associate any of those arrays with your
data set through vtkFieldData, vtkPointData, or vtkCellData (probably the
one you want).

ParaView will allow you to color your surface mesh using either vtkPointData
arrays or vtkCellData arrays.  You can also look at those values in the
spreadsheet along with vtkFieldData arrays.

On Tue, Oct 13, 2009 at 9:13 AM, Parker, Andrew (UK Filton) <
Andrew.Parker2 at baesystems.com> wrote:

>  Dear All,
> Quite simply, I'm using gmsh to generate surface meshes for a CFD
> simulation. Gmsh has the wonderful feature of being able to add a boundary
> ID flag to a surface or collection of surfaces, this is essential of setting
> up a computational problem as I'm sure you all know.  The idea being that
> one may collect all the walls together and give them the flag "WALL" or "1",
> and then like wise for all other physical geometry types.  However, gmsh
> writes out a vtk file for the mesh only.  Having been in contact with the
> author of the program, he's agreed to modify the source and add the boundary
> condition data to the vtk mesh file and write all of this out, an amazing
> contribution, since this does feature in the open source as a tool chain,
> i.e read in CAD file -> mesh -> define boundaries -> write out in standard
> format (for all platforms), that I know of at least.  I said I would
> ask/find out what new data structure he needs to use/implement, and he would
> implement it.
> Two questions then:
> 1)  What data structure is available in vtk that can hold a string
> (preferably by a long shot) or integer per surface of a polygon?
> 2)  Currently I am reading the mesh written by gmsh in vtk format into
> paraview, will I be able to (if the above is an option), be able to read
> into paraview whatever data structure type you're going to recommend and
> crucially see the physical boundary condition flags that I added in gmsh
> within paraview?
> Many thanks, please ask if you require clarity.
> Andy
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091013/8b0a3d28/attachment-0001.htm>

More information about the ParaView mailing list