CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Issues with mesh tolerances after using gmshToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/75301-issues-mesh-tolerances-after-using-gmshtofoam.html)

madad2005 April 21, 2010 11:00

Issues with mesh tolerances after using gmshToFoam
 
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?

hylleman August 20, 2014 05:10

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


All times are GMT -4. The time now is 04:52.