CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] octree meshes in Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ufocfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2018, 15:14
Default octree meshes in Paraview
  #1
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
Is there a standard format for octree meshes in Paraview yet?
I notice there was not any replies to the previous posts on this subject.
I tried the octree.vto format with XMLHyperOctreeReader.xml,
but it does not allow slicing etc.

Attached Images
File Type: png Capture2.PNG (17.9 KB, 27 views)
ufocfd is offline   Reply With Quote

Old   August 2, 2018, 18:40
Default octree meshes in paraview
  #2
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
managed to do something using python script to
describe a load of box sources, but it takes ages
to run script and create the box sources for just

~400 boxes.
ufocfd is offline   Reply With Quote

Old   August 4, 2018, 09:11
Default
  #3
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Do you mean for displaying the solution from a solver that uses an octree-type mesh?
We use Ensight gold format with hexa8 element types for this puropse.
Works flawlessly in Paraview even for meshes with 100 million elements and more. Merging vertices at identical positions before importing into Paraview is key to performance here. I have no idea if this is the standard solution or even a particularly good one. But it was good enough so far.
flotus1 is offline   Reply With Quote

Old   August 4, 2018, 13:28
Default Octree mesh
  #4
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
Yes that's right. That's interesting thanks. I have achieved it using vtk unstructured mesh, but as you mentioned there are x8 duplicated mesh points which slows it down. How do you remove duplicate points?
ufocfd is offline   Reply With Quote

Old   August 5, 2018, 04:40
Default
  #5
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
My algorithm goes something like this:
1) Calculate point indices using a space-filling curve, e.g. Z-order curve
2) Sort points according to this index
3) Go through the list. Every time the index increases, a new point is formed. Points that do not increase the index (i.e. sit at the same position as the previous one) are dismissed
4) Assign the remaining points to the cells in order to form the hexa8 data structure
flotus1 is offline   Reply With Quote

Old   August 5, 2018, 10:45
Smile Octree mesh
  #6
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
Thanks very much for your thorough reply.
That gives me something to explore further.
Best wishes, Giles.
ufocfd is offline   Reply With Quote

Old   August 24, 2018, 05:42
Default rapid octree meshing
  #7
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
I managed to avoid the need for any point sorting/ordering by using a second octree for the points. I would call it a 'double-octree' method. You create the cell octree first then the point octree after. My new code generates 14 million cells & 19 million points in just 25 seconds. But writing to the VTK file takes longer ~8 mins. https://pbs.twimg.com/media/DlWsYt8XcAIP69J.jpg
ufocfd is offline   Reply With Quote

Old   August 27, 2018, 15:22
Default octree meshing
  #8
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
Finally got F1 car demo testcase meshing 14.2 million octree cells in 48 seconds from start to finish, including VTK binary file write.

https://pbs.twimg.com/media/Dln9xWOXgAA1EH7.jpg
flotus1 likes this.
ufocfd is offline   Reply With Quote

Reply

Tags
octree, paraview


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Comparing the result of DTCHullWaves with two different ParaView version ali.ikhsanul OpenFOAM 0 December 11, 2017 05:17
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release FJSJ OpenFOAM Installation 2 July 23, 2017 05:48
[General] Paraview nice animation PyGloo ParaView 4 June 7, 2012 12:34
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32
Paraview not found fusij OpenFOAM Installation 2 January 1, 2011 20:44


All times are GMT -4. The time now is 18:00.