|
[Sponsors] |
June 7, 2011, 09:32 |
mirrorMesh
|
#1 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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 10:45. |
|
June 8, 2011, 05:53 |
|
#2 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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. |
|
June 9, 2011, 06:56 |
|
#3 |
Member
Tibo
Join Date: Jun 2011
Posts: 68
Rep Power: 15 |
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 10:09. |
|
June 21, 2011, 06:59 |
|
#4 |
New Member
cb
Join Date: Jun 2011
Posts: 2
Rep Power: 0 |
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 |
|
September 7, 2011, 19:33 |
|
#5 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
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 |
|
September 8, 2011, 06:30 |
|
#6 |
New Member
cb
Join Date: Jun 2011
Posts: 2
Rep Power: 0 |
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! |
|
March 17, 2021, 06:03 |
|
#7 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 |
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
|
|
Tags |
cylinder, mirrormesh, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] mirrorMesh utility preserving regions | zfaraday | OpenFOAM Meshing & Mesh Conversion | 1 | November 7, 2016 22:51 |
[mesh manipulation] mirrorMesh Problems | jlbbcoelho | OpenFOAM Meshing & Mesh Conversion | 0 | February 24, 2016 06:27 |
[mesh manipulation] mirrorMesh error | WhiteW | OpenFOAM Meshing & Mesh Conversion | 4 | December 6, 2015 14:18 |
[mesh manipulation] mirrorMesh and undoing the joining of patches | chegdan | OpenFOAM Meshing & Mesh Conversion | 3 | October 21, 2015 09:09 |
[mesh manipulation] mirrorMesh with included boundaries? | HenningW | OpenFOAM Meshing & Mesh Conversion | 2 | June 3, 2015 12:56 |