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 Tree10Likes
  • 7 Post By tkeskita
  • 1 Post By tkeskita
  • 2 Post By tkeskita

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2019, 11:24
Default Unstructured Grids Add-on for Blender
  #1
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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 4 others like this.
tkeskita is online now   Reply With Quote

Old   August 13, 2019, 11:37
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
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, 12:45
Default
  #3
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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 online now   Reply With Quote

Old   August 22, 2019, 08:37
Default
  #4
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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 online now   Reply With Quote

Old   September 30, 2019, 12:51
Default
  #5
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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 online now   Reply With Quote

Old   May 4, 2020, 01:53
Default Documentation for Unstructured Grids Blender Add-on
  #6
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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 online now   Reply With Quote

Old   October 30, 2022, 09:49
Post Shell extrusion method for boundary layers
  #7
Member
 
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16
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
lourencosm and parthigcar like this.
tkeskita is online now   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 21:58
[Other] OpenFOAM - structured or unstructured Grids ? thomasduerr OpenFOAM Meshing & Mesh Conversion 22 November 25, 2018 00:18
unstructured grids, future trend? Anna Tian Main CFD Forum 1 April 6, 2014 15:54
How cell skew affects solution in structured vs unstructured grids lordvon Main CFD Forum 1 July 3, 2013 07:19
Finite volume solution methodology for Unstructured grids Dhileep T K Main CFD Forum 1 May 4, 2010 07:38


All times are GMT -4. The time now is 14:28.