CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] snappyHexMesh corners missing (https://www.cfd-online.com/Forums/openfoam-meshing/129557-snappyhexmesh-corners-missing.html)

wc34071209 February 7, 2014 09:47

snappyHexMesh corners missing
 
Hello,

I am using snappyHexMesh to mesh a box. However, I found that the corner (90 degree perpendicular) is missing after meshing.

I don't know why and how to avoid it.

Thanks for any replies.

gelbebanane February 10, 2014 04:05

Hi,
how did you create that box? With an .stl file or by refinementBox?
Have a look at this it is a nice tutorial for easy cases.
https://sites.google.com/site/snappy...ppyhexmeshdict

wc34071209 February 10, 2014 04:51

Quote:

Originally Posted by gelbebanane (Post 474203)
Hi,
how did you create that box? With an .stl file or by refinementBox?
Have a look at this it is a nice tutorial for easy cases.
https://sites.google.com/site/snappy...ppyhexmeshdict

With an STL.

wc34071209 February 10, 2014 04:53

Quote:

Originally Posted by gelbebanane (Post 474203)
Hi,
how did you create that box? With an .stl file or by refinementBox?
Have a look at this it is a nice tutorial for easy cases.
https://sites.google.com/site/snappy...ppyhexmeshdict

Thanks quite a lot. The link is quite useful to me.

wc34071209 February 10, 2014 05:18

Quote:

Originally Posted by gelbebanane (Post 474203)
Hi,
how did you create that box? With an .stl file or by refinementBox?
Have a look at this it is a nice tutorial for easy cases.
https://sites.google.com/site/snappy...ppyhexmeshdict

I read a sentence 'snappy doesn't work well with sharp edges' and I guess this is the reason why the corners of my box are missing.

gelbebanane February 10, 2014 05:34

Try to switch off the snap process like suggested in the tutorial.
I have also quiet a lot problems with sharp edges. You can also play with the implicit and explicit featureExtract option as well as with the tool "surfaceFeatureExtract"

wc34071209 February 11, 2014 15:44

Quote:

Originally Posted by gelbebanane (Post 474219)
Try to switch off the snap process like suggested in the tutorial.
I have also quiet a lot problems with sharp edges. You can also play with the implicit and explicit featureExtract option as well as with the tool "surfaceFeatureExtract"

Thank you.

I switched off snap and the corners of the box are kept.

However, if I do want to snap, what should I do?

Should I play around 'resolveFeatuerAngle'? Should I increase it or decrease it? Is it the smaller the better or otherwise?

wc34071209 February 11, 2014 16:49

Quote:

Originally Posted by gelbebanane (Post 474219)
Try to switch off the snap process like suggested in the tutorial.
I have also quiet a lot problems with sharp edges. You can also play with the implicit and explicit featureExtract option as well as with the tool "surfaceFeatureExtract"

Does 'explicit featureExtract' really help, since it is a problem of snapping and the geometry is simple and easy for sHM to implicitly find the feature edge?

What do you think?

Thanks a lot.

gelbebanane February 11, 2014 17:32

The "surfaceFeatureExtract" should help snappy to find the edges. But i am also not such an advanced user that i can tell you what will help you to get it right as well with no files from you.
Try to change the options in the snap subdirectory of the dict file.

To start, you can copy the snappyHexMeshDict from the "flange" tutorial (OF-install patch/tutorials/mesh/snappyHexMesh/flange) to your case and change the basic parameters like stl file and region names.

When you do not achieve any approvements it would be great when you can give the community the possibility to have a look at your case as well as at your snappyHexMeshDict file. A small description of your geometry or the stl file would also be very nice.

Good Night.

wc34071209 February 11, 2014 18:26

Quote:

Originally Posted by gelbebanane (Post 474555)
The "surfaceFeatureExtract" should help snappy to find the edges. But i am also not such an advanced user that i can tell you what will help you to get it right as well with no files from you.
Try to change the options in the snap subdirectory of the dict file.

To start, you can copy the snappyHexMeshDict from the "flange" tutorial (OF-install patch/tutorials/mesh/snappyHexMesh/flange) to your case and change the basic parameters like stl file and region names.

When you do not achieve any approvements it would be great when you can give the community the possibility to have a look at your case as well as at your snappyHexMeshDict file. A small description of your geometry or the stl file would also be very nice.

Good Night.

Thanks.

My geometry is rather simple: a box 3.1*3.1*2.5 and my STL is written by myself by using 8 vertices. I don't think there exist problems with my STL file.

For blockMeshDict, I also define the same 8 vertices and then use them to define the block.

From the flange case, it seems helpful by using explicit feature extraction. However, since sHM 2.2.2 has already supported implicit feature extraction, I guess we can also achieve success by using implicit settings. Therefore I am asking how to set 'resolveFeatureAngle', which is related to implicit feature extraction.


All times are GMT -4. The time now is 04:02.