|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh with local refinement of ONE STLfile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 4, 2020, 13:48 |
|
#21 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi Franco,
What is surfaceCheck saying when you use it on your concatenated stl file ? I don't think the blue and red surfaces should be a problem as long as their nodes are coincident with the bluish ones. Yann |
|
May 4, 2020, 14:15 |
|
#22 | ||
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
Quote:
I am looking for solutions to this (for the moment the best hint I have is exporting the STEP model to salome and doing it from there, but is already another program to learn, and it is not evident to use it...). for the moment to achieve the good separation, I am doing the exporation of the howl body in one stl (as it is watertight) and doing the snappyHex, and topoSet to create the sets I want and do createPatch from the sets created in topoSet , the issue that I have with this path is that I have the patches after the snappy, so I can not add boundary layers in that specific region (created by the createPatch)... |
|||
May 4, 2020, 18:01 |
|
#23 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
How does it look at the interface between each STL, when you open it in ParaView with "surface with edges" or "wireframe" representation?
If the nodes are coincident or very close to each other, you can try the surfaceHookUp utility to merge nodes together. I cannot guarantee it will work (it's actually very dependent on the way your CAD software create the STL during the export) and you might need to fiddle with the tolerance parameter in order to have the proper result, going back and forth with surfaceCheck to check your hooked file. SurfaceCheck will help you to investigate what is wrong with your file : Code:
Surface is not closed since not all edges connected to two faces: connected to one face : 808 connected to >2 faces : 0 Right now you have 808 open edges and it should not happen with a closed surface since every since every edge should be connected to 2 faces. Code:
Conflicting face labels:808 Dumping conflicting face labels to "problemFaces" Paste this into the input for surfaceSubset Cheers Yann |
|
May 5, 2020, 04:45 |
|
#24 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
for surfaceHookUp i tried the last time you mention it, but i could not achive to make it work, as i could not find any example in the tutorial folder, and the documentation i could find about was this https://www.openfoam.com/documentati...aceHookUp.html and in .org i can not find anything (and i need to use the .org vr...) and from the -help in the terminal I do not get too much information either... franco |
||
May 5, 2020, 05:21 |
|
#25 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
It is not very clear indeed. It it possible to share your stl files here?
(ideally the separate files, it would be easier to visualize) Which CAD software are you using to create your stl ? Yann |
|
May 5, 2020, 06:41 |
|
#26 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
yes of course, actually it is only a test, as i am going to have similar geometries (a quarter of cylinder with or without the faces of the quarter intersected with others). I upload to drive as it is too big to be uploaded to the web directly https://drive.google.com/file/d/1Znv...ew?usp=sharing Franco |
||
May 5, 2020, 10:52 |
|
#27 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hey Franco,
I just has a look at your files. You can see in the first attached image : in blue, the faces of your inlet file and in red the faces of your walls file. As you can see on the image, at the interface between the 2 files, there are more nodes on the inlet (in blue) than on the walls (in red). Since you have not the same discretization of the geometry on both files, there are actual holes between the surfaces and this is what surfaceCheck complains about. In addition I attached a second image showing the surface of the walls file. All the cylinders are really poorly meshed and I doubt you will be able to get anything good from snappy using this file as your geometry input. I suggest you to rework the way you export your files to get better STL before moving on to meshing in OpenFOAM. Don't you have any options to control the way the STL is created when doing the export ? Yann |
|
May 5, 2020, 11:11 |
|
#28 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
here is a link https://drive.google.com/file/d/1Vms...ew?usp=sharing for the software (sorry i forgot to mention it) i use Onshape, and for the exportation it has 3 "normal" levels, coarse, medium and fine, this is the "fine" version, there is also custom, but i would not know what value to enter. thanks for the help, franco. |
||
May 5, 2020, 12:12 |
|
#29 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Good, it looks better! Now you should be able to make it work with surfaceHookUp to get a closed volume. Using a tolerance of 0.0001 worked fine for me.
Despite the volume being closed, surfaceCheck still complains about bad quality faces. I didn't check further but it should be fine. However, I strongly encourage you to dig into the custom option when exporting your files, it might give you better control on the way the STL are generated. Cheers, Yann |
|
May 5, 2020, 12:34 |
|
#30 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
I bother you with a few last questions, first, how you learned to use surfaceHookUp? i mean i could not find any extra information from the one i got from surfaceHookUp -help, like for example tolerance but what is a normal number or anything else? I am sure that i am missing something (of description or use of functions in general from OF). i mean when you are looking to the usage of a function and you can not find it in the tutorials examples what do you do for example? what software do you use for the CADs? only by curiosity.... for the custom import i can play with three parameters: angular deviation (deg) 2.5 chordal tolerance (m) 0.00006 Minimum facet width (m) 0.0000254 the numbers is the "fine" set up of the parameters, any idea which should i lower? thanks for all the help. best regards, franco |
||
May 5, 2020, 14:03 |
|
#31 | ||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
You are welcome!
Quote:
CATIA for CAD and ANSA to simplify geometries and generate surface meshes to be exported in STL. Quote:
Angular deviation and chordal tolerance should help you to deal with curves resolution. Maybe minimum facet width could help with the high aspect ratio triangles but your value is already quite low so I'm not sure about that. I don't know if I'm very clear and an image is often better than a thousand words so I attached a picture to give you an example of a STL mesh which should be fine to mesh with snappy. Cheers, Yann |
|||
May 14, 2020, 11:57 |
|
#32 |
New Member
David Smith
Join Date: Jul 2013
Posts: 9
Rep Power: 13 |
Actually we dont need to combine stl files. snappyHexmesh works fine with separated shells. Just make sure that all shell form a closed volume.
|
|
November 21, 2024, 06:32 |
|
#33 |
New Member
Rabin
Join Date: Nov 2024
Posts: 2
Rep Power: 0 |
Hello
I got this error when I run turbo design ccm+ I dont how set command prompt setup Arguments. --------------------------- Incomplete CCM+ parameters or TURBOdesign1 case in invalid state. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh running killed! | Mark JIN | OpenFOAM Meshing & Mesh Conversion | 7 | June 14, 2022 02:37 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |