CFD Online Logo CFD Online URL
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Generating a parabolic profile in gmsh

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 12, 2012, 04:57
Default Generating a parabolic profile in gmsh
Join Date: Feb 2012
Posts: 57
Rep Power: 7
matt.mech.eng is on a distinguished road

I am trying to generate a parabolic profile (on the xy plane to be extruded along the z-direction) of a tank, to model the flow of fluid inside the tank with bubbleFoam. My issue is I have tried many ways to get such a geometry into openfoam.

My first try was to import an igs file with the geometry into gmsh, netgen or salome however none of these seemed to work..

I decided to generate the mesh from scratch, so I wrote a script to generate points along a parabola and join them all with straight lines (see attached image).
Then I try to generate a 2d surface mesh and I get the following error: "Error : Identical points in triangulation: increase element size or Mesh.RandomFactor"
and gmsh crashes.

How do I specify element size in gmsh? And what is Mesh.RandomFactor?

Attached Images
File Type: jpg Screenshot.jpg (38.2 KB, 25 views)
File Type: jpg Screenshot-1.jpg (48.7 KB, 22 views)

Last edited by matt.mech.eng; March 12, 2012 at 05:48. Reason: pics uploaded
matt.mech.eng is offline   Reply With Quote

Old   March 12, 2012, 08:59
New Member
GregorS's Avatar
Gregor Seljak
Join Date: Oct 2010
Posts: 21
Rep Power: 9
GregorS is on a distinguished road
From Gmsh documentation:
Random factor used in the 2D meshing algorithm (should be increased if RandomFactor * size(triangle)/size(model) approaches machine accuracy)
Default value: 1e-09

When generating mesh, position of every point is perturbated by small random value to avoid 3 aligned points. So for beginning you can set Mesh.RandomFactor=1e-7 (or something like that) in your .geo file and try again.
GregorS is offline   Reply With Quote

Old   February 21, 2016, 13:38
Default angle of element in gmsh
New Member
Goth ydamil
Join Date: Mar 2013
Posts: 13
Rep Power: 6
djamel is on a distinguished road
I want to change the angle of triangle element
djamel is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 03:16
Generating a parabolic Profile with groovyBC erklaerbaer OpenFOAM Pre-Processing 9 June 6, 2010 14:51
Import problem ARC Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 February 27, 2010 11:56
IdeasUnvToFoam Bug amp Fix benru OpenFOAM Bugs 42 November 13, 2009 08:59

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