|
[Sponsors] |
March 17, 2019, 12:34 |
SnappyHexMesh GUI add-on for Blender
|
#1 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hello world,
I made a SnappyHexMesh GUI add-on for Blender (https://www.blender.org/). The add-on is available at https://github.com/tkeskita/snappyhexmesh_gui. Here is short summary from the main page: SnappyHexMesh GUI add-on for Blender ("the add-on" hereafter) is meant to aid OpenFOAM users to use Blender as a CFD pre-processing tool. The aim is to
Enjoy! |
|
April 5, 2019, 02:31 |
|
#2 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hello Lorenzo,
thanks, great to hear you find it useful! I haven't done CHT myself, but I think it is possible, but requires some manual work: You have to generate one mesh at a time, and then copy final mesh to correct folder under your simuation case folder. You can use the "Include in Export" check box in the add-on to enable/disable geometry objects for each export, so you can still have all the geometry in same blend file if you want. |
|
October 9, 2020, 07:30 |
|
#3 |
New Member
Simon
Join Date: Jan 2014
Location: Freiburg, Germany
Posts: 15
Rep Power: 12 |
Hi Tuomo,
thanks for providing and updating this very useful blender addon. Saves a lot of time! Greetings Simon! |
|
March 18, 2021, 22:01 |
|
#4 |
Member
Ndong-Mefane Stephane Boris
Join Date: Nov 2013
Location: Kawasaki (JAPAN)
Posts: 53
Rep Power: 13 |
Hello Tuomo,
thank you for the awesome work!! I made a small modification to the program to make it work with "surfaceFeatureExtractDict" used in the ESI version of openfoam. The only problem is that now when I enable/disable the layer addition for 1 patch in the UI, it will do the same for all the other patches in the model... can you take a look please? I am sending the following files: - __init__.py (modified) - op_export.py (modified) - op_gen.py (just in case) - op_object.py (just in case) Kazu |
|
March 19, 2021, 00:53 |
Update
|
#5 |
Member
Ndong-Mefane Stephane Boris
Join Date: Nov 2013
Location: Kawasaki (JAPAN)
Posts: 53
Rep Power: 13 |
Hello,
After understanding the settings for the layer addition(default value for number of layers is 0), i get that the concern expressed above is not relevant. I hope that those using SurfaceFeatureExtract out there will find this modification useful, and again, a BIG THANK YOU to TUOMO for this awesome tool. Kazu |
|
March 19, 2021, 02:36 |
|
#6 | |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Quote:
BR, Tuomo |
||
March 19, 2021, 05:27 |
|
#7 | |
Member
Ndong-Mefane Stephane Boris
Join Date: Nov 2013
Location: Kawasaki (JAPAN)
Posts: 53
Rep Power: 13 |
Quote:
Sorry, but Id rather let you take care of the GitHub part. One suggestion is to have both surfaceFeature dictionaries in the template directory, and add a menu in Blender that allows you to choose your dictionary. Also, this is a great start for a future Openfoam GUI...colors for boundary patches like its done for Swiftblock....I will take some time to study Blender API... |
||
March 21, 2021, 07:27 |
|
#8 | ||
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Quote:
Quote:
|
|||
March 22, 2021, 04:17 |
Problem With the downloaded new version
|
#9 |
Member
Ndong-Mefane Stephane Boris
Join Date: Nov 2013
Location: Kawasaki (JAPAN)
Posts: 53
Rep Power: 13 |
Hello Tuomo,
I tried the modified version, but I get the following note when executing surfaceFeatureExtract: Note: Feature line extraction only valid on closed manifold surfaces and the *.e files are not created. I checked, and the problem is indicated below: Code:
FoamFile { version 2; format ascii; class dictionary; object surfaceFeaturesDict; } // Exported by SnappyHexMesh GUI add-on for Blender v1.0 // Source file: // Export date: 2021-03-22 17:04:37.455707 surfaces //DELETE ( //DELETE In1.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 180; } writeObj yes; } In2.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 180; } writeObj yes; } Out1.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 180; } writeObj yes; } Out2.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 180; } writeObj yes; } Wall.stl { extractionMethod extractFromSurface; extractFromSurfaceCoeffs { includedAngle 180; } writeObj yes; } ); //DELETE includedAngle 150; //DELETE Kazu |
|
March 24, 2021, 12:47 |
|
#11 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
FYI Kazu sent a fix which is now applied, hope it's ok now for both openfoam.org and openfoam.com versions!
|
|
January 8, 2023, 10:28 |
SnappyHexMesh GUI add-on for Blender tutorial
|
#12 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
FYI I found a nice Youtube tutorial showing how to use SnappyHexMesh GUI, highly recommended for those not so familiar with Blender! There are also other nice OpenFOAM related videos!
|
|
November 10, 2023, 08:42 |
SnappyHexMesh GUI tutorial video
|
#13 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hi,
FYI I made a tutorial video series Blender for OpenFOAM users, which also now includes a tutorial for using SnappyHexMesh GUI! BR, Tuomo |
|
December 10, 2023, 07:37 |
Optimized boundary layer parameters in SnappyHexMesh GUI
|
#14 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
FYI I've been testing the boundary layer addition parameters in snappyHexMesh, both openfoam.org and openfoam.com versions. It looks like openfoam.com version does a good job for creating boundary layers! I couldn't quite get up to 100% layer coverage, but it came close!
I've now updated the SnappyHexMesh GUI add-on to include optimized (as far as I could go now) parameter values for boundary layer generation. Please see this discussion thread for some images. |
|
December 16, 2023, 08:11 |
Second set of optimized boundary layer parameters in SnappyHexMesh GUI
|
#15 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hi,
I just pushed a new set of layer parameter generation rules into SnappyHexMesh GUI repo. I did many tests to get something that I hope will work for most cases. Please comment below if you download the latest version of the add-on and try it to generate a mesh with layers! Would be interesting to know what kind of issues people run into. Thanks! |
|
December 26, 2023, 06:24 |
|
#16 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
FYI I've improved the layer addition settings and parameters, here's layer addition results from a layer addition test (4 layers) using the OF motorBike geometry and openfoam.com v2312 version of snappyHexMesh! The motorBike geometry is an excellent acid test for layer addition !
Block mesh cell size 0.025 m: motorBike_blocksize_0.0250m.jpg Block mesh cell size 0.0125 m: motorBike_blocksize_0.0125m.jpg BR, Tuomo |
|
March 10, 2024, 12:42 |
Updated SnappyHexMesh GUI
|
#17 |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hi,
FYI I made a bunch of parameter tests with SnappyHexMesh to learn about the effect of parameters on the result mesh, and as a result I have now updated the SnappyHexMesh GUI with the "optimized" Snappy parameter values. It seems that good layer addition with Snappy is in fact possible! I have updated the SnappyHexMesh GUI docs with the things I learned about Snappy during the tests. I hope that Snappy users find the add-on useful! Here below is an example mesh from the vessel example included in the add-on. BR, Tuomo example_mesh_result.jpg |
|
April 6, 2024, 09:15 |
issue on reading "surfaceFeaturesDict"
|
#18 |
New Member
Jungpin Chen
Join Date: Mar 2024
Location: Taiwan
Posts: 6
Rep Power: 2 |
Hi, Tuomo;
Thank you for making/collecting the videos for showing how to use sanppyHexMesh addon in Blender. While I was following these videos, I met an issue of working on this addon. I copied the "content" and posted it here. I use Ubuntu 20.04 V2. Can you show me how to fix this? Thank you! ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 11 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 11-c219200fdb8b Exec : surfaceFeatures Date : Apr 06 2024 Time : 19:47:25 Host : "DESKTOP-5SN441A" PID : 2065 I/O : uncollated Case : /mnt/d/user/Desktop/BlenderStuff/meshExamples/snappyTest nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Reading "surfaceFeaturesDict" --> FOAM FATAL ERROR: cannot find file "/mnt/d/user/Desktop/BlenderStuff/meshExamples/snappyTest/system/surfaceFeaturesDict" From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 539. FOAM exiting |
|
April 8, 2024, 06:04 |
|
#19 | |
Member
Tuomo Keskitalo
Join Date: Oct 2010
Posts: 57
Rep Power: 16 |
Hi,
Quote:
https://snappyhexmesh-gui.readthedoc...rface-features BR, Tuomo |
||
April 8, 2024, 06:20 |
got it with thanks!
|
#20 |
New Member
Jungpin Chen
Join Date: Mar 2024
Location: Taiwan
Posts: 6
Rep Power: 2 |
Hi, Tuomo;
Thank you for the instruction and I had "adjust" the proper Fork setting at SnappyHexxMesh GUI. got it with thanks! Jungpin |
|
Tags |
gui, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ANSYS Workbench on "Uncertified" Linux Distros | hsr | CFX | 289 | April 20, 2023 10:23 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
Helyx-OS Open Source GUI for OpenFOAM | eugene | OpenFOAM Announcements from Other Sources | 31 | March 9, 2020 17:55 |
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh | elvis | OpenFOAM Community Contributions | 210 | January 30, 2017 19:57 |
New CastNet Release: GUI Environment for OpenFOAM and CalculiX | MartinB | OpenFOAM Announcements from Other Sources | 0 | January 13, 2017 11:27 |