mirrorMesh and undoing the joining of patches
Hello All,
I used mirrorMesh to mirror a mesh (yes I know that's wierd) and it did a wonderful job at joining patches and such. However now I have a problem. Imagine joining a meshed pipe to make a new pipe twice as long as the original. The original had an inlet an outlet and walls. After reflecting, the inlet was removed and I have two outlets (one patch)...one at the top and one at the bottom of type patch. How can I split this outlet patch to get an inlet patch again? Thanks in advance. Dan |
[Solved] mirrorMesh and undoing the joining of patches
So to fix this I used the following steps
1. faceSet to extract the faces from the outlet patch into a set called outletPatch. 2. made of copy of the outletPatch set named inletPatch 3. Used setSet with the command setSet -batch createInletSet.setSet where createInletSet.setSet was a text file with the line: faceSet inletPatch delete normalToFace (0 0 1) 0.01 4. Used setSet with the command setSet -batch createOutletSet.setSet where createOUtletSet.setSet was a text file with the line: faceSet outletPatch delete normalToFace (0 0 -1) 0.01 5. used createPatch with the lines Code:
{ Dan |
I had an even simpler method that starts from a combined patch, in my case it was called "outlet".
1. use faceSet and create a set for your combined "outlet" patch, call it "inletOutletSet" Code:
/*--------------------------------*- C++ -*----------------------------------*\ 3. now subtract out the faces from the inletSet and outletSet you don't need using faceSet again. This was relatively easy since my inlet and outlet patches had normal vectors in opposite direction. For my case, to remove the remove the outlet patch faces from the inletSet i used a faceSetDict like Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ 4. Now use createPatch to create separate patches from your inletSet and outletSet sets using a createPatchDict similar to Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Dear Daniel,
Thanks for this post. It helped me a lot. However I think this method doesn't work with OpenFOAM 2.3.1. Here are my suggestions: Quote:
Code:
setSet Quote:
Quote:
Code:
setSet Quote:
Set up the following createPatchDict: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
createPatch Kate |
All times are GMT -4. The time now is 11:11. |