|
[Sponsors] |
Best way to represent, store, and visualize surfaces? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 11, 2016, 17:06 |
Best way to represent, store, and visualize surfaces?
|
#1 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I am looking for a way to store and visualize the 1/4 chord (point or vector) and planform areas (rectangles) of some actuator lines I am creating in some OpenFOAM code. What would be the best way to do this, such that when I open the case with paraFoam, I can see how this geometry is oriented at each time step?
Note that these geometric entities are not really associated with the mesh, and the main goal is really to create animations that can integrate with visualizations of other OpenFOAM data, e.g., flow velocity. |
|
January 12, 2016, 08:19 |
|
#2 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
[QUOTE]
...and visualize the 1/4 chord (point or vector) and planform areas (rectangles) of some actuator lines... [\QUOTE] I've written a legacy VTK POLYDATA writer for my geometrical mess. I would suggest you to try using the VTK library, and find the appropriate classes that can represent your geometries. If you have a lot of vectors you can use the arrow glyphs there and the rectangles can be represented as vtkPolydata : polygon soup. Either that, or read about the VTK legacy formats and implement your own OpenFOAM class that writes the stuff out. Whichever option you choose, in the end, on the OpenFOAM side, be sure to inherit from regIOobject to make sure you can control the IO from controlDict, and extend the file names with zeroes, so that ParaView can read them as a sequence. This way you can convert the case to VTK with foamToVTK and visualize your geometry evolve together with an OpenFOAM simulatio case.
__________________
When asking a question, prepare a SSCCE. |
|
January 12, 2016, 13:15 |
|
#3 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Did you look into using OpenFOAM's vtkSurfaceWriter? It seems to be able to write a pointField and faceList. Do you know off hand if these are convenient objects for small lists (N < 100) of points and rectangles?
|
|
January 13, 2016, 08:52 |
|
#4 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
From my experience, for small and/or constant size lists vtkSurfaceWriter worked fine.
__________________
When asking a question, prepare a SSCCE. |
||
|
|