CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Flow around a cylinder (https://www.cfd-online.com/Forums/openfoam/197914-flow-around-cylinder.html)

Cagatayemre January 21, 2018 04:27

Flow around a cylinder
 
1 Attachment(s)
Hello my friends, can I ask you a question. I am trying to solve flow around a cylinder case. I have used snappyHexMesh. When I look at the results in paraview, no velocity or pressure change occurs around the cylinder. I think openfoam doesnt recognize my cylinder but I couldnt handle the problem. My case files are attached. Thank you very much.

clapointe January 23, 2018 12:41

1 Attachment(s)
If you are interested in flow around the cylinder, you just need to remove the cylinder from the original domain (created with blockMesh) using snappyHexMesh. I've modified your case accordingly -- it's been tested with version 4.x. The main changes involved updating the snappyHexMeshDict to only work with your cylinder. There are good tutorials using snappy that are good references for usage and setup of the snappy dictionary (e.g. https://github.com/OpenFOAM/OpenFOAM.../les/motorBike).

Caelan

Cagatayemre January 23, 2018 13:28

Thank you very much my friend. Good idea. I have used only fluid.stl to generate the geometry and mesh. In this way I substracted cylinder.

I have just found where the problem is. It is the snappyHexMeshDict. The code that I put inside the dict was trying to mesh inside the cylinder. That was the problem I think. What do you think?
This is wrong.
refinementSurfaces
{
solid
{
// Surface-wise min and max refinement level
level (1 5);
faceZone solid;
cellZone solid;
cellZoneInside inside;
}

The following is correct.
refinementSurfaces
{
solid
{
// Surface-wise min and max refinement level
level (1 5);
}
}



}
Quote:

Originally Posted by clapointe (Post 679083)
If you are interested in flow around the cylinder, you just need to remove the cylinder from the original domain (created with blockMesh) using snappyHexMesh. I've modified your case accordingly -- it's been tested with version 4.x. The main changes involved updating the snappyHexMeshDict to only work with your cylinder. There are good tutorials using snappy that are good references for usage and setup of the snappy dictionary (e.g. https://github.com/OpenFOAM/OpenFOAM.../les/motorBike).

Caelan


Tobi January 23, 2018 14:59

https://holzmann-cfd.de/openfoam/ope...ng-with-layers


All times are GMT -4. The time now is 20:38.