CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[Other] Unstructured Grids Add-on for Blender

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 6 Post By tkeskita
  • 1 Post By tkeskita
  • 1 Post By tkeskita

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2019, 10:24
Default Unstructured Grids Add-on for Blender
  #1
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
Hello world,

I've been working on a new Blender based 3D mesh editing tool for OpenFOAM (and later on VTK) users: Unstructured Grids (UG) is an add-on for Blender 2.8 for importing, editing and exporting of 3D volume meshes composed of arbitrary polyhedron cells (a.k.a 3D unstructured grids). Editing includes tasks like moving of selected vertices, and assigning selected boundary faces to named patches. The add-on Imports and Exports OpenFOAM PolyMesh format.

The add-on is now at proof-of-concept level, and it seems to be working OK, at least for small and medium size meshes. Please feel free to try it out and discuss on this thread, thanks!

Here is example of current functionality. Boundary face assignment:



And here mesh modification by moving vertices:


BR,
Tuomo
wyldckat, fusij, jherb and 3 others like this.
tkeskita is offline   Reply With Quote

Old   August 13, 2019, 10:37
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 16
fusij is on a distinguished road
Hello, thank you for this addon.

Can you move individual vertices? For example, if you have a faulty cell, you could edit the positions of the vertices of that cell.
fusij is offline   Reply With Quote

Old   August 13, 2019, 11:45
Default
  #3
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
Hi,

yes, you can move any vertex selection (and that's the only thing you can do to geometry currently). So if you know which vertices are bad then you could try to move those by hand. But if there are many bad cells it might be a lot of work.

PS. Currently I'm working on adding cell zone and face zone support.
tkeskita is offline   Reply With Quote

Old   August 22, 2019, 07:37
Default
  #4
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
FYI: Now cell zones are fully supported (using Blender vertex groups). Face zones are read, shown and exported as such, but creation/modification is currently unsupported, since it requires flipMap (face direction) support in GUI.

I also added a GUI: "UG" tab is available in Sidebar of 3D Viewport for mesh objects.
tkeskita is offline   Reply With Quote

Old   September 30, 2019, 11:51
Default
  #5
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
Some improvements regarding cell editing:

- Deletion of selected cells is now supported
- New cells can be extruded from face selection. This is currently WIP and very slow, but it allows interesting body-fit mesh cases. Here is extrusion (followed by Blender mesh twist) example:

Daniel_Khazaei likes this.
tkeskita is offline   Reply With Quote

Old   May 4, 2020, 00:53
Default Documentation for Unstructured Grids Blender Add-on
  #6
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
FYI I wrote manual for the Unstructured Grids Blender Add-on, please have a look at https://unstructured-grids.readthedocs.io/

Looks like the images in previous messages are not showing up any more, those can be found also in the docs.

BR,
Tuomo
tkeskita is offline   Reply With Quote

Old   October 30, 2022, 08:49
Post Shell extrusion method for boundary layers
  #7
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 52
Rep Power: 15
tkeskita is on a distinguished road
FYI I've added an experimental Shell extrusion method to the add-on. It allows extrusion of thin flat cell layers starting from a surface mesh. I tested it on a mesh generated with SnappyHexMeshGUI, and was able to produce this thin shell of boundary layers on top of Snappy mesh.

Disclaimer: The method fails (creates intersecting faces) when mesh has convex shapes and target thickness is too large, so this method does have limitations. The area marked with red ellipse in the bottom figure below would fail if more layers were added.

shell_extrusion_1.jpg


shell_extrusion_2.jpg


shell_extrusion_3.jpg


shell_extrusion_4.jpg


BR,
Tuomo
parthigcar likes this.
tkeskita is offline   Reply With Quote

Reply


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
Finite Difference on unstructured grids ? DoHander Main CFD Forum 9 May 21, 2023 20:58
[Other] OpenFOAM - structured or unstructured Grids ? thomasduerr OpenFOAM Meshing & Mesh Conversion 22 November 24, 2018 23:18
unstructured grids, future trend? Anna Tian Main CFD Forum 1 April 6, 2014 14:54
How cell skew affects solution in structured vs unstructured grids lordvon Main CFD Forum 1 July 3, 2013 06:19
Finite volume solution methodology for Unstructured grids Dhileep T K Main CFD Forum 1 May 4, 2010 06:38


All times are GMT -4. The time now is 07:43.