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

[Gmsh] higher order mesh from Gmsh doesn't works--gmshToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2015, 06:57
Default higher order mesh from Gmsh doesn't works--gmshToFoam
  #1
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Hi all,

I found the utility gmshToFoam only works for first-order mesh, is it true?
the second-order mesh will not convert to OpenFOAM successfully, so does anybody know how to convert the higher order mesh? thanks.
Attached Files
File Type: gz mshAndLog.tar.gz (3.2 KB, 3 views)
hewei is offline   Reply With Quote

Old   February 6, 2015, 08:37
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Here is the list of elements handled by gmshToFoam:

Code:
// Element type numbers
static label MSHTRI   = 2;
static label MSHQUAD  = 3;
static label MSHTET   = 4;
static label MSHPYR   = 7;
static label MSHPRISM = 6;
static label MSHHEX   = 5;
So, no high-order meshes.

In fact, meshing the cylinder like you have attached to the message in general does not require high order elements.
alexeym is offline   Reply With Quote

Old   February 6, 2015, 10:39
Default
  #3
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Thanks!!
so in order to improve the quality of the surface, just adding more points, right?

W.
Quote:
Originally Posted by alexeym View Post
Hi,

Here is the list of elements handled by gmshToFoam:

Code:
// Element type numbers
static label MSHTRI   = 2;
static label MSHQUAD  = 3;
static label MSHTET   = 4;
static label MSHPYR   = 7;
static label MSHPRISM = 6;
static label MSHHEX   = 5;
So, no high-order meshes.

In fact, meshing the cylinder like you have attached to the message in general does not require high order elements.
hewei is offline   Reply With Quote

Old   February 6, 2015, 12:16
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Quote:
Originally Posted by hewei View Post
Thanks!!
so in order to improve the quality of the surface, just adding more points, right?

W.
Yes, also you can use mesh grading to increase density just near the surface of cylinder.
alexeym is offline   Reply With Quote

Old   February 6, 2015, 14:07
Default
  #5
Member
 
Peter
Join Date: Feb 2015
Location: New York
Posts: 73
Rep Power: 11
opedrofunk is on a distinguished road
You might have a look at this:

https://extensions.sketchup.com/en/c...y-tetgen-tools

Some quick screen shots (multi region mesh, smooth mesh gradation):







I wrote this plugin to solve a problem I was having (namely, that design iterations were happening extremely quickly, and the corresponding simulation/setup times needed to be similarly reduced), and decided to release it in case it might help others. It's free, of course.

You can control mesh gradation, refine locally, set regions and boundaries, remove sections of the mesh (holes), etc. It works with tetgen - which, of course you can convert directly to OpenFOAM format with the tetgenToFoam utility, and with gmsh if you want to do additional preprocessing before converting with the gmshToFoam utility.

Anyway, I hope this might be helpful to the community.
Peter
opedrofunk is offline   Reply With Quote

Old   February 6, 2015, 19:12
Default
  #6
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Yes, also you can use mesh grading to increase density just near the surface of cylinder.
Thank you very much Alexey!
hewei is offline   Reply With Quote

Old   February 6, 2015, 19:15
Default
  #7
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Thank you very much Peter, I will learn your work, I believe it will not only help me, but also gives others more choice. Thanks you again!!

Wei

Quote:
Originally Posted by opedrofunk View Post
You might have a look at this:

https://extensions.sketchup.com/en/c...y-tetgen-tools

Some quick screen shots (multi region mesh, smooth mesh gradation):







I wrote this plugin to solve a problem I was having (namely, that design iterations were happening extremely quickly, and the corresponding simulation/setup times needed to be similarly reduced), and decided to release it in case it might help others. It's free, of course.

You can control mesh gradation, refine locally, set regions and boundaries, remove sections of the mesh (holes), etc. It works with tetgen - which, of course you can convert directly to OpenFOAM format with the tetgenToFoam utility, and with gmsh if you want to do additional preprocessing before converting with the gmshToFoam utility.

Anyway, I hope this might be helpful to the community.
Peter
hewei 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
A high order curvilinear mesh generation(converting) tool is strongly recommended! hyperman Mesh Generation & Pre-Processing 0 June 22, 2018 09:04
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 13:17.