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

[mesh manipulation] how split mesh perimeter line to four sides

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2018, 17:35
Default how split mesh perimeter line to four sides
  #1
New Member
 
kostas trak
Join Date: Feb 2018
Posts: 3
Rep Power: 8
dolphink is on a distinguished road
hello to cfd community,
newbie, and I would like your help,
I have create an unstructured rectangular mesh (2D) which includes one line at the perimeter. I would like to split this line to four lines; each for each side: north, west, south, east. The format of the mesh is .msh and .mesh. I used gmsh to create the initial mesh, and mmg2d library to improve the quality of elements.
Please, does anyone knows any open source tool, or could suggest a way to make the split? I tried gmsh but it does not work; and I assume because I do not have points at the corner of the rectangular,
any help is more than welcome,
thank you,
k.
dolphink is offline   Reply With Quote

Old   February 14, 2018, 22:42
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

You can try to use topoSet & createPatch in OpenFOAM to do this.

In topoSet, gather all the faces on the perimeter patch using patchToFace & then subset this based on the normal using normalToFace. Use createPatch to create new patches from the different facesets that you got using topoSet.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 15, 2018, 07:33
Default
  #3
New Member
 
kostas trak
Join Date: Feb 2018
Posts: 3
Rep Power: 8
dolphink is on a distinguished road
Thanks Antimony! I will try to do that... to be honest I am very confused how to work with topoSet & createPatch in OpenFOAM. I will let you know if I make it work.
dolphink is offline   Reply With Quote

Reply

Tags
mesh 2d, mesh splitting, msh file


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
[Gmsh] No cells read from file ".msh" hwsv07 OpenFOAM Meshing & Mesh Conversion 5 August 13, 2018 16:42
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19


All times are GMT -4. The time now is 16:48.