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/)
-   -   [blockMesh] Create mirror mesh (https://www.cfd-online.com/Forums/openfoam-meshing/61792-create-mirror-mesh.html)

hsieh February 9, 2007 12:07

Create mirror mesh
 
Hi,

I created a quarter of a cylinder (the cross section is a quarter of a circle) using blockMesh. The problem I am solving is true 3D, so, I would like to generate the mesh of the complete cylinder. Since this is symmetrical in X-plane and in Y-plane, how can I generate the mesh of the whole cylinder using "mirror" technique?

Pei

eugene February 9, 2007 12:13

mirrorMesh?
 
mirrorMesh?

hsieh February 9, 2007 15:07

Thanks Eugene! I did try mi
 
Thanks Eugene!

I did try mirrorMesh and got strange results. The geometry was mirrored, but, mesh were messed up. It looks like mirrorMesh requirs mirrorMeshDict. I set the point to (0 0 0) and vectorToNormal to (-1 0 0). The following command was used:
mirrorMesh . casename

I probably did something wrong.

pei

hsieh February 10, 2007 07:18

Hi Eugene, I tried mirrorMe
 
Hi Eugene,

I tried mirrorMesh again. I moved the base point to an node point inside the domain, and it worked perfectly. Previously, I simply picked one corner point of the geometry.

Also, after mirrorMesh, it looks like there is no need to run stitchMesh to remove duplicate nodes on the symmetry plane - nice!

Pei

nikhilmadduri June 26, 2008 00:19

hi pei. even im trying to sol
 
hi pei.
even im trying to solve the same problem as u ve....first i generated the quarter cylinder. now i want to make it a complete cylinder. can u explain how do u do that?

itz a kind of urgent,

replies will be highly appreciated.

regards,
nike

nikhilmadduri July 8, 2008 01:59

hello, where can we find th
 
hello,

where can we find this "mirrorMeshDict" file?

replies will be highly appreciated.

Thanks
Nikhil

caw July 8, 2008 02:50

Hi Nikhil, A sample dictona
 
Hi Nikhil,

A sample dictonary can be found under:

~/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation/mirrorMesh

Btw.: Please refrain from double postings in the future. In fact it makes it more unlikely that your post is answered.
This has been discussed recently:
http://openfoamwiki.net/index.php/Ho..._Message_Board

Best regards
Christian

jaswi July 8, 2008 02:51

Hi Nikhil Please check out
 
Hi Nikhil

Please check out this directory

OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation/mirrorMesh

For future searches please use beautiful features of LINUX such as locate or find . Other appraoch is to please familiarize yourself with the following OpenFOAM folders:

/src
/applications/solvers
/applications/utilities

Hope that will help.

With Best Regards
Jaswi

ansab_sindhu April 22, 2022 03:03

When you mirror the mesh what will happen to the earlier defined boundary patches in the blockMesh dict?


I am using quarter circle blockMesh to create full circle. My mesh file is like
https://cfd.direct/openfoam/user-guide/v6-platehole/
Initially, the boundary are hole, right , top, left and down.
I am able to generate the the full circle but I am concerned about defining the new patch names and what will happen to the earlier faces at the symmetry location

The patch names should be
inlet, outlet, topwall, bottomwall and cylinder

Can anyone guide me?



Quote:

Originally Posted by jaswi (Post 198648)
Hi Nikhil

Please check out this directory

OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/manipulation/mirrorMesh

For future searches please use beautiful features of LINUX such as locate or find . Other appraoch is to please familiarize yourself with the following OpenFOAM folders:

/src
/applications/solvers
/applications/utilities

Hope that will help.

With Best Regards
Jaswi



All times are GMT -4. The time now is 07:33.