|March 12, 2012, 04:57||
Generating a parabolic profile in gmsh
Join Date: Feb 2012
Posts: 57Rep Power: 6
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?
Last edited by matt.mech.eng; March 12, 2012 at 05:48. Reason: pics uploaded
|March 12, 2012, 08:59||
Join Date: Oct 2010
Posts: 21Rep Power: 8
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.
|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|