|
[Sponsors] |
[cfMesh] cartesian2DMesh: Rename the the topEmptyFaces and bottomEmptyFaces in meshDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 28, 2018, 14:29 |
cartesian2DMesh: Rename the the topEmptyFaces and bottomEmptyFaces in meshDict
|
#1 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8 |
Hi people,
I'm trying to use cfMesh to mesh a 2D geometry which is characterised by two domains. I will be meshing each of these domains separately and combining them after using mergeMeshes. The issue is that both of the domains will have patches with the names topEmptyFaces and bottomEmptyFaces when I then use createPatch after merging. Therefore, I would like to use newPatchNames in the meshDict to redefine the names of those two patches. Unfortunately, it doesn't seem to work with those patches. All the other patches can be renamed just fine. It's just those two. I've tried a number of ways, including: Code:
".*EmptyFaces" { newName shroud; type empty; } Code:
"(topEmptyFaces & bottomEmptyFaces)" { newName shroud; type empty; } Code:
topEmptyFaces { newName shroud; type empty; } Any help is greatly appreciated. James |
|
February 28, 2018, 15:21 |
|
#2 |
Member
Lilian Chabannes
Join Date: Apr 2017
Posts: 58
Rep Power: 9 |
Hey,
cartesian2DMesh is looking at the patch in the .stl file to assign the name at the boundary, right? If so, it won't find the empty faces as your .stl is a ribbon. You can do this another way, it's by setting something like : Code:
defaultName myEmptyPatches; defaultPatch empty; // now all the patches are empty... // ... but you need to overwrite the useful patches newPatchName { blade { newName blade; //does it work to assign the same name? newType wall; } etc... }
__________________
Feel free to join the OpenFOAM Discord https://discord.gg/P9p9eHn, a live chat about OpenFOAM |
|
February 28, 2018, 15:54 |
|
#3 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8 |
Hi Lilian,
Yeah, cartesian2DMesh takes in the ribbon stl and automatically defines the empty patches. I was having trouble with renaming it, but as you wrote, I ended up just defining the default patches as the desired name. Works just fine now. Actually, I figured it out a couple of minutes after posting this haha. Anyway, thanks a lot for the advice man. James |
|
|
|