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

[Gmsh] Converting 3d mesh to 2d mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By simrego
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2018, 10:08
Default Converting 3d mesh to 2d mesh
  #1
New Member
 
Join Date: Oct 2018
Posts: 19
Rep Power: 8
krzychu111 is on a distinguished road
Hi,

I want to create axisymmetric mesh using snappyhexmesh. Unfortunately snappyhexmesh do not support axisymmetric cases. So I created "cubic" geometry and used snapphexmesh. Now I need to make from 3d mesh 2d mesh and then revolve 2d mesh by axis to create axisimmetric mesh.

But the problem is that I don't know how to convert 3d mesh to 2d mesh. Is there any command to create new file from surface in gmsh? Or to delete all nodes and elements not on z plane? Maybe there is other tool which would be more handy in this scenario?

Thanks
krzychu111 is offline   Reply With Quote

Old   November 30, 2018, 10:35
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


You can use the extrudeMesh utility. Just extrude the patch with one cell.
krzychu111 likes this.
simrego is offline   Reply With Quote

Old   December 1, 2018, 16:07
Default
  #3
New Member
 
Join Date: Oct 2018
Posts: 19
Rep Power: 8
krzychu111 is on a distinguished road
@simrego Thanks for your reply!


I will give it a try.
krzychu111 is offline   Reply With Quote

Old   December 1, 2018, 16:18
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
If you have questions feel free to ask!


I forgot to include an example dict, so here you go:
https://github.com/OpenFOAM/OpenFOAM...xtrudeMeshDict
You can extrude, revolve, etc. The file contains some explanation how to set up the dictionary.
krzychu111 likes this.
simrego 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 18:16
[CGNS] cgnsToFoam error when converting ICEM mesh glasenapp OpenFOAM Meshing & Mesh Conversion 5 October 13, 2016 23:37
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 12:14
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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