CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] mirrorMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2011, 08:32
Default mirrorMesh
  #1
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Hi everyone,

I am completely new to OpenFOAM and (thus?) struggle trying to get the geometric shape I want.
I am trying to simulate a pipe (i.e. an EMPTY cylinder). I did manage to create a 16th of it and would like to get the complete shape using mirrorMesh/mirrorMeshDict.

1) how does it work? I could not find one single page that gives an entire, detailed example. Where do these functions have to be called from and what is the syntax that has to be used?
2) where can I find detailed documentation about how to use OpenFOAM functions (so that I avoid asking questions like 1) in the near future)?

Thanks in advance.
Regards.

Tibo

Last edited by megacrout; June 7, 2011 at 09:45.
megacrout is offline   Reply With Quote

Old   June 8, 2011, 04:53
Default
  #2
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
Ok, so I figured some of it out on my own.
This page: http://www.imac.unavarra.es/Cursos/A...ingOptions.pdf actually helped quite a lot.

For the people interested in the solution:
1) copy the mirrorMeshDict-file into the system-folder of your case (find it first using locate)
2) define your normal vector in mirrorMeshDict
3) create the mirrored mesh by typing mirrorMesh from your case folder (NOT from the system folder)

Two more questions came out of that solution:
- how can I let the computer repeat this action automatically to complete my shape? I defined a 5°-element, so I donīt want to compute manually 71 (or even 36) normal vectors to get my cylinder...
- how can I get back to my initial shape (5°-element instead of 10°)? Typing blockMesh with no subsequent mirrorMesh still leads to the 10°-element...

Thanks in advance to any reply.
megacrout is offline   Reply With Quote

Old   June 9, 2011, 05:56
Default
  #3
Member
 
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 14
megacrout is on a distinguished road
I did figure it out on my own again... Am I posting at the wrong place or donīt Foamers - for some reason - want to reply my messages?

Anyway: it seems like the computer canīt do it automatically so I defined a 45° element instead. With it, I can get the whole shape quickly, simply by running mirrorMesh twice. All it requires is changing the normal vectorīs sign in the mirrorMeshDict file...

As for the initial shape, delete the polyMesh folder in the 0 folder and rerun blockMesh in the Terminal to get it back.

Last edited by megacrout; June 16, 2011 at 09:09.
megacrout is offline   Reply With Quote

Old   June 21, 2011, 05:59
Default
  #4
New Member
 
cb
Join Date: Jun 2011
Posts: 2
Rep Power: 0
kmoukiss is on a distinguished road
Dear megacrout,

I have the same problem. Although I am trying to model the tutorial wedge15Ma5
and mirror it about the x axis

I did follow your instructions. The following is when I run mirrorMesh:
Build : 1.7.x-3776603e4c6c
Exec : mirrorMesh
Date : Jun 21 2011
Time : 11:50:14
Host : basrf03
PID : 20871
Case : /home/rfuser/camille/dsmcFoam/wedge15Ma5
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Mirroring points. Old points: 79402 New points: 158762
Mirroring faces. Old faces: 155040 New faces: 310080
Mirroring patches. Old patches: 3 New patches: 3
Mirroring cells. Old cells: 38400 New cells: 76800
Mirroring cell shapes.

Creating new mesh
Writing mirrored mesh
End


After that, there is no new mesh file, and when I go in Paraview, there is no mirrored geometry.
Can you help?
Thank you very much,

kmoukiss
kmoukiss is offline   Reply With Quote

Old   September 7, 2011, 18:33
Default
  #5
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
kmoukiss

I'm sure you already figure this out, but the mirrorMesh utility puts a polyMesh folder in your 0 folder. just copy that polyMesh folder into your constant/ folder in the case directory.

Dan
chegdan is offline   Reply With Quote

Old   September 8, 2011, 05:30
Default
  #6
New Member
 
cb
Join Date: Jun 2011
Posts: 2
Rep Power: 0
kmoukiss is on a distinguished road
Thank you, but I did indeed figured this out in the end with a friend
It is weird i doesn't appear in the manual though.
Thanks again for taking the time to reply!
kmoukiss is offline   Reply With Quote

Old   March 17, 2021, 05:03
Default
  #7
Member
 
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5
B_R_Khan is on a distinguished road
Quote:
Originally Posted by chegdan View Post
kmoukiss

I'm sure you already figure this out, but the mirrorMesh utility puts a polyMesh folder in your 0 folder. just copy that polyMesh folder into your constant/ folder in the case directory.

Dan
I know this is a very old post but this does not work when you try to open results in paraview. It gives error of "Can't evaluate dataset" in paraview. There are two polymesh folders and I don't know how paraview reads both polymeshes
B_R_Khan is offline   Reply With Quote

Reply

Tags
cylinder, mirrormesh, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] mirrorMesh utility preserving regions zfaraday OpenFOAM Meshing & Mesh Conversion 1 November 7, 2016 21:51
[mesh manipulation] mirrorMesh Problems jlbbcoelho OpenFOAM Meshing & Mesh Conversion 0 February 24, 2016 05:27
[mesh manipulation] mirrorMesh error WhiteW OpenFOAM Meshing & Mesh Conversion 4 December 6, 2015 13:18
[mesh manipulation] mirrorMesh and undoing the joining of patches chegdan OpenFOAM Meshing & Mesh Conversion 3 October 21, 2015 08:09
[mesh manipulation] mirrorMesh with included boundaries? HenningW OpenFOAM Meshing & Mesh Conversion 2 June 3, 2015 11:56


All times are GMT -4. The time now is 15:09.