CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] cartesian2DMesh: Rename the the topEmptyFaces and bottomEmptyFaces in meshDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2018, 14:29
Default cartesian2DMesh: Rename the the topEmptyFaces and bottomEmptyFaces in meshDict
  #1
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8
jgross is on a distinguished road
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 ideas as to what is the proper syntax in this case? I have looked at all the tutorial files available for cartesian2DMesh and none of them include any indication of how to do this.

Any help is greatly appreciated.

James
jgross is offline   Reply With Quote

Old   February 28, 2018, 15:21
Default
  #2
Member
 
Lilian Chabannes
Join Date: Apr 2017
Posts: 58
Rep Power: 9
Lookid is on a distinguished road
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...
   
}
But you have to define all other patches
__________________
Feel free to join the OpenFOAM Discord https://discord.gg/P9p9eHn, a live chat about OpenFOAM
Lookid is offline   Reply With Quote

Old   February 28, 2018, 15:54
Default
  #3
Member
 
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 8
jgross is on a distinguished road
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
jgross is offline   Reply With Quote

Reply


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



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