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] How to mesh a flow straightener (https://www.cfd-online.com/Forums/openfoam-meshing/147928-how-mesh-flow-straightener.html)

MOHAMMAD67 February 1, 2015 11:30

How to mesh a flow straightener
 
Dear Foamers

Hi
I need to simulate flow in a flow straightener which is shown in the picture below. To do this I used snappyHexMesh but I couldn't achieve a good results. I don't know what the problem is? As It is shown the model geometry is wrong in the pipe near the internal pipes.
If you don't mind take a look at my case. I put it in the dropBox.

https://www.dropbox.com/s/evdrcrr7ot...owStr.zip?dl=0

Best Wishes

MOHAMMAD67 February 1, 2015 12:05

Some pictures
 
4 Attachment(s)
Here you can see both the geometry and meshed model.

MOHAMMAD67 February 2, 2015 13:04

My problem!
 
As you can see in the pictures, my problem is that the wall is not modelled correctly. The wall is not defined somewhere and in those places I have inlet patch as it is shown! Why?
I think there is a problem with snapping but I don't know How to deal with?

mturcios777 February 2, 2015 14:28

Quote:

Originally Posted by MOHAMMAD67 (Post 530047)
As you can see in the pictures, my problem is that the wall is not modelled correctly. The wall is not defined somewhere and in those places I have inlet patch as it is shown! Why?
I think there is a problem with snapping but I don't know How to deal with?

Looks like you haven't refined it enough in the region where the tubes are: you may want to define a refinementRegion and increase to level so that you get at least 2 cells between then tubes and the wall.

Tobi February 2, 2015 15:02

Exactly that is what I mentioned in your private message. It seems that you have no refinement at all. :)

MOHAMMAD67 February 5, 2015 01:03

Problem Solved!
 
Dear Marco and Tobi

Thanks for your replies. Yes, you are right! I didn't set the snappyhexmeshDict to make mesh refinement. To solve this problem, I first increased maxGlobalCells to 300000 and it started to do this!.After that I tried to separate my geometry main pipe and tubes and apply them in refinementSurfaces and refinementRegions.
But now, I have more than 1000000 cells which makes my simulation very slow!! What should I do in this manner?


All times are GMT -4. The time now is 12:50.