|
[Sponsors] |
August 18, 2010, 18:12 |
|
#61 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Niklas,
really great tool missed it so far. This will reduce my reasons from not so often using FOAM from two to one final issue (hopefully 1.6-ext will fix this ggi issues!) Have you ever considered putting snapEdge to the openfoam-extend repository? I think this would make sense. I will come back with some feedback soon. I have quite complex gemometry to run on. Regards Bastian Edit: - I use Nastran-Files instead of stl, will this work? - Do I need some .eMesh-File containing the features? Or is this decided my snapEdge using an angle - From the Ahmed-Pictures from openfoam_user I guess he uses explicit featuere refinement with .eMesh-File in sHM? Last edited by bastil; August 18, 2010 at 19:04. |
|
August 19, 2010, 02:58 |
|
#62 | ||
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Quote:
I am doing a complete re-write of snapEdge at the moment to better handle internal features. I will let you know once I have it working. Quote:
N |
|||
August 19, 2010, 08:54 |
|
#63 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Regards Bastian |
||
August 20, 2010, 05:55 |
|
#64 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Niklas.
here is my first feedback from what I have seen from snapEdge:
Code:
forAll(stlPoints, isp) { addToList(globalStlPoints[is], stlPoints[isp]); } Regards Bastian |
|
August 20, 2010, 08:08 |
|
#65 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
||
August 20, 2010, 08:23 |
|
#66 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Some more points:
|
||
August 20, 2010, 08:44 |
|
#67 | ||
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Quote:
Im not going to release a half-done code full of commented info-statements. You can improve the old code if you want, but the new version handles corners and internal features in a totally different way and the old algorithm will never be able to handle this in as a robust way as the new one. Of course, that wasnt my intention either when I first started this project. yes and no i wont. Its completely free, so if you want you can just take it and claim it as your own and include it there yourself if you want Quote:
if it doesnt work, maybe you can send me the geometry N |
|||
August 20, 2010, 08:57 |
|
#68 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi Niklas,
thanks a lot for improving your great tool ! Once you have rewritten your code I will try it with my geometry. Best regards, Stephane. |
|
August 20, 2010, 09:00 |
|
#69 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Thanks Niklas for the quick answer.
Quote:
Difficult but I will try my best. I will also come up with code proposals if I have. Regards Bastian Last edited by bastil; August 20, 2010 at 09:33. |
||
September 1, 2010, 03:26 |
|
#70 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
I have updated the snapEdge utility and you can just download it from the wiki.
Its not 100% done with what I want it be able to do, but it is definitely usable and better than the old version. I have been using the available stl's to test it one and have gotten all of them to work. I will add all of the screenshots to the wiki when the wiki works properly. The most difficult case is the one from johannes, mainly because the stl is in such a poor shape that I had to improve it. I've attached 2 pics of before and after of that case here |
|
September 1, 2010, 14:24 |
Good news
|
#71 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Hi Niklas,
definitly good news. I will give it a try soon. The only thing missing now is the integration into snappy, maybe I will try this myself. Regards Bastian |
|
September 2, 2010, 16:12 |
|
#72 |
Member
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17 |
Hi Niklas,
great job, thanks a lot for the improved snapEdge version. Yeah I know, the case I uploaded is quite complex, but judging from the screenshots after the recent update, snapEdge seems to work quite well with such a geometry. I did a re-run of my testcase using the new snapEdge version but still could not get a flawless mesh since some chamfers remained. Nevertheless the overall result was a lot better than before - just had a few skewed faces reported by checkMesh. I played around with different values for tolerance and relaxation - with limited success. Would it be possible to send me the snapEdgeDict you used to run my case? You mentioned a low stl quality and you're right because I turned down the quality settings when creating the stl files to reduce filesize. As you certainly know, most CAD systems have a conversation or facet tolerance and an angle tolerance for specifying the quality of an stl geometry; do you have a general rule for setting these values (maybe in respect to the desired surface cell size)? Thanks + best regards, Johannes |
|
September 2, 2010, 16:16 |
|
#73 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Niklas,
I did some tests on my (really complex) geometries. It definitely looks much better now - great. Only remaining bottleneck I have is the execution time wich is about 1 hour for one iteration. I have to look into this. Regards Bastian Last edited by bastil; September 3, 2010 at 03:38. |
|
September 3, 2010, 03:33 |
|
#74 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
@johannes
I dont know what it was with your geometry, but if I extract the stl feature-lines it results in features on what seems to be planar surfaces. This can cause problems beacuse the mesh dont have any features there and if your tolerance is too large it can grab the mesh features that belong to other stl features. And it is not possible with this method to capture all the features perfectly. If you look at the following animation maybe you will understand why. http://openfoam.nequam.se/cases/snapTest.avi What you see is that the feature line covered by the faces with an angle of 45 deg to the left attracts the upper line and to the right it switches and attracts the lower line. Where these lines meet there is an edge that just grows smaller and smaller and in order to prevent bad faces I have limited the edges to go below 1/10 of the smallest edge length set relaxation to 0.1 and play with the number of iterations, I used these angle settings. featureAngle 20; excludeEdgeAngle 70; parallelAngle 30.0; maybe I should add that I couldnt get it to work with the geometry you sent me, but I had to treat it in ANSA and also that it works better if you make the mesh abit finer, some parts just have 1-2 cells between the features @bastil ahh, now I understand why you want to run it in parallell. I havent tested it in parallell myself so I dont know if it will work. It should work (in principle), but I dont know how it will treat the mesh processor boundaries. It is possible that I have to add some specieal treatment there in order to remove false features. After each iteration I am using the movePoints functionality which is overkill, but I use it to make life simpler when calculating face-normals (and because I want to add a smoother on the entire mesh later) what you can try to do is to move it outside the loop (in snapEdge.C) Code:
//mesh.movePoints(newPoints); //mesh.checkMesh(); Info << "Done!" << endl; } mesh.movePoints(newPoints); |
|
September 3, 2010, 06:27 |
|
#75 | |
Member
Norman Del Puppo
Join Date: Mar 2009
Location: Hinwil, CH
Posts: 57
Rep Power: 17 |
Quote:
first of all, thank you Niklas for sharing this tool. I am working on ship hydrodynamics, I tried many times in the past to generate grid good enough to capture yacht fins or transom edges using snappyHexMesh without success, therefore I'll give a try to your tool and I will let you know (I hope you'll have some time to give me some advices if I'll need some help ) Anyway, yesterday I integrated your last snapEdge version into snappyHexMesh for fun. I referred to the the snappyHexMesh version that comes with OpenFOAM-1.5-dev (I am using this OF version) . If someone has a heavy working snapEdge test case to give me I would like to test this snapEdgeHexMesh tool before saying it is working and sharing it Kind regards Norman Last edited by norman1981; September 3, 2010 at 08:16. |
||
September 3, 2010, 10:28 |
|
#76 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
I can also offer you to install your "beta" version here, run some tests and provide you with a feedback afterwards. In that case you can sent me your beta "snapEdgeHexMesh" Regards Bastian |
||
September 3, 2010, 10:37 |
|
#77 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Regards Bastian |
||
September 3, 2010, 12:03 |
|
#78 |
Member
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17 |
Hi Niklas,
thanks for your explanations and the video. I think I know what you mean. Regarding the planar surfaces on the stl geometry, that's an issue from the stl creation process I (have to) use, because my CAD system is only able to convert volume bodies into an stl file but not surfaces. This means I have to extrude all the surfaces in normal direction in order to create volumes. Now if the extrusion thickness is chosen too small compared to the snapEdge tolerance, snapEdge could be attracted by stl features on the 'opposite' side of the stl volume body. I'll check with an increased stl thickness and will also try your angle settings. Best regards, Johannes |
|
September 4, 2010, 13:03 |
|
#79 |
Senior Member
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17 |
Hi Johannes,
I create my stl files using salome GEOM and it is capable of exporting individual surfaces into ascii/binary stl files. GEOM won't import stl files though. Ziad |
|
September 4, 2010, 16:07 |
|
#80 |
Member
Johannes Baumann
Join Date: Mar 2009
Location: Baden-Wuerttemberg, Germany
Posts: 43
Rep Power: 17 |
Hi Ziad,
thanks for your input, nice to know it works with Salome. As long as there's an import feature for step or iges files I'll give it a try. Another option would be to edit the volume body stl file and delete all unnecessary faces. Basically, I would like the geometry processing workflow to be a as simple and streamlined as possible without involving too many different software tools. Btw: My existing procedure was working without problems for standard sHM meshing so far. Best regards, Johannes |
|
Tags |
edges, jagged edges, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh sticking point | natty_king | OpenFOAM Meshing & Mesh Conversion | 11 | February 20, 2024 10:12 |
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell | Arman_N | OpenFOAM Meshing & Mesh Conversion | 1 | May 20, 2019 18:16 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 04:21 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |