CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Construct2D mesh in OpenFoam (https://www.cfd-online.com/Forums/openfoam/246032-construct2d-mesh-openfoam.html)

Stefano Segneri November 8, 2022 12:05

Construct2D mesh in OpenFoam
 
1 Attachment(s)
Hello,

I am having problems trying to use the Construct2D C-mesh in OpenFoam.
I have already read all the threads about this topic but I am still having problems. This is the procedure I follow:
- C-mesh generation with Construct2D
- Conversion to .msh format using p3d2gmsh
- I use GmshToFoam to convert the .msh mesh in OpenFoam format
In this way in the file polyMesh/boundary there will be the following boundaries:
- b8-SYMMETRY-Y --> FRONT
- b9-SYMMETRY-Y --> BACK
- b6-FARFIELD --> OUTLET
- b7-FARFIELD --> OUTLET
- b5-FARFIELD --> INLET
- b4-VISCOUS --> AIRFOIL
- B2-to-stitch-a --> WAKE
- defaultFaces --> WAKE
defaultFaces and B2-to-stitch-a are exactly the same thing (WAKE) as I am able to see from Paraview. The boundary "WAKE" is a boundary that connect the airfoil trailing edge with the outlet. Obviously, it is an undesired boundary: air should just flow freely and without constraints there. To remove this boundary I use the following command: "stitchMesh -overwrite WAKE defaultFaces". After that, in the polyMesh/boundary file, B2-to-stitch-a and defaultFaces has zero faces. Thus, I just remove them and run my simulation.
However, in that exact point, something very strange happens in the velocity field. I am attaching a picture.

Does anyone knows how to fix this?

Thanks to everyone who have had the patience to read this post.


All times are GMT -4. The time now is 14:51.