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

[Gmsh] Issues with mesh tolerances after using gmshToFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2010, 12:00
Default Issues with mesh tolerances after using gmshToFoam
  #1
Senior Member
 
Anonymous
Join Date: Mar 2009
Posts: 110
Rep Power: 17
madad2005 is on a distinguished road
I've recently being trying to test out some meshes from gmsh in OpenFOAM. However, I've encountered some issues with meshes with very fine near wall layers (10-5m to 10-6m). Infact, I can only get the meshes to pass checkMesh if the near wall first cell height is no less than 5x10-4m, otherwise it complains of boundary openness and nonClosedCells.

Now, this sounded awfully like an issue with single- or double-precision, but I checked and the version of foam I'm using is compiled in double-precision (that is the $WM_COMPILER_PRECISION=DP and all the binaries and libraries are stored in linux64GccDPOpt folders). Both readPrecision and writePrecision are both set to 16 as well. The gmsh file IS VALID, since I have checked this with a seprate mesh checking tool.

So, is there something I'm missing here? Has anyone been able to overcome similar problems?
madad2005 is offline   Reply With Quote

Old   August 20, 2014, 06:10
Default
  #2
New Member
 
Karl Hylen
Join Date: Dec 2013
Posts: 3
Rep Power: 12
hylleman is on a distinguished road
Hi,

I'm guessing that you don't seek an answer to this anymore, but I reply to anyone else having the same problem.

I had exactly this problem in OpenFOAM 2.3.0 and started reading gmshToFoam.C to solve it. Turns out it is really simple. gmshToFaom uses the writePrecision in the controlDict. Just turn up the precision and your good to go.

/Karl
hylleman is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] PistonVale tutorial - issues about mesh quality Andrea1984 ANSYS Meshing & Geometry 5 October 11, 2013 10:30
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
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:41.