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/)
-   -   [mesh manipulation] Mirroring flow around cylinder tutorial (https://www.cfd-online.com/Forums/openfoam-meshing/204891-mirroring-flow-around-cylinder-tutorial.html)

Davide95 August 3, 2018 14:25

Mirroring flow around cylinder tutorial
 
Dear Foamers

I need to analyze the flow past a cylinder with some HRL methods.

I found that for HRL and LES it is strongly suggested to use structured grids.
I am not capable of using blockMesh but I found a tutorial https://www.openfoam.com/documentati...utorialse3.php which exactly makes the geometry I need but halved.


Since I want to perform an unsteady simulation I need the whole cylinder.

How can I mirror the mesh in order to obtain the whole cylinder?


I tried mirrorMesh but while mirroring on a plane normal to X-axis works (even if it is not what I need) when I mirror with a plane normal to Y-axis ParaFoam crushes.


Is there a way to mirror the mesh ?


PS


The geometry can be seen in the link btw X axis is parallel to the flow direction and the base of the cylinder lies on the X-Y axis.



Best regards

Davide

clapointe August 6, 2018 13:04

1 Attachment(s)
After looking at the tutorial, mirrorMesh probably caused paraview to crash because it complained about symmetryPlanes not being planar (at least I got it to). That being said, changing the symmetryPlanes to patches -- and the associated boundary conditions -- removes the error. I've attached a modified version of the tutorial that successfully uses mirrorMesh to mesh the full cylinder.

Caelan

Davide95 August 14, 2018 07:00

Dear clapointe


First of all sorry for the late answer.
I didn't have access to internet and I couldn't see your message.


While waiting I solved the problem just writing the missing vertices, arcs and blocks but was long and boring so in the future I will use your answer for sure =)


Thanks a lot =)



Davide

Naive March 31, 2022 07:43

wrong drag coefficient of the tutorial
 
Dear, I have just ran the case but it seems to have something wrong with the drag coefficient.The drag coefficient is actually 1.35 when Re=100,but it gives the Cd = 0.3, and the lift coefficient is also strange.Have you done a similar verification?


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