|
[Sponsors] |
January 24, 2013, 08:28 |
STL->GMSH->simpleFoam
|
#1 |
New Member
David Doose
Join Date: Jan 2013
Posts: 5
Rep Power: 13 |
Hi,
I'm looking for a simple example in which: - the mesh is generated with gmsh using an STL object; - the computation is made with simpleFoam. In practice, my attempts always lead to a "Floating point exception"... |
|
January 24, 2013, 16:34 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings David,
Have you tried to replicate one of OpenFOAM's tutorials for simpleFoam, but using a mesh generated with Gmsh? Have you checked the validity of your mesh after conversion? Try: Code:
checkMesh checkMesh -allGeometry -allTopology Bruno
__________________
|
|
January 25, 2013, 05:37 |
|
#3 |
New Member
David Doose
Join Date: Jan 2013
Posts: 5
Rep Power: 13 |
In fact, the simple "checkMesh" is Ok, the Topology (-allTopology) is also OK, but the the geometry check (-allGeometry) failed.
How can I modify the gmsh file to solve this kind of problem ? Code:
> Face tets OK. > Min/max edge length = 0.168466 10.198 OK. > All angles in faces OK. > All face flatness OK. > Cell determinant (wellposedness) : minimum: 0 average: 1.34053 > ***Cells with small determinant found, number of cells: 646 > <<Writing 646 under-determined cells to set underdeterminedCells > Concave cell check OK. |
|
January 26, 2013, 14:51 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi David,
Mmm... cell determinant zero can lead to some problems... Run the following command: Code:
foamToVTK -cellSet underdeterminedCells edit: sorry, I forgot to mention that once you see the bad cells, you try and increase refinement or orientation on the zone where those cells are having problems. Best regards, Bruno
__________________
Last edited by wyldckat; January 26, 2013 at 14:53. Reason: see "edit:" |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CAD formats] Creating waterproof STL using snappyHexMesh or salome | Tobi | OpenFOAM Meshing & Mesh Conversion | 58 | May 13, 2020 06:01 |
[Gmsh] Gmsh STL import error | me3840 | OpenFOAM Meshing & Mesh Conversion | 9 | October 9, 2016 20:52 |
[Gmsh] boundary conditions with Gmsh stl | Bercht | OpenFOAM Meshing & Mesh Conversion | 1 | July 10, 2012 11:04 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 10:56 |
STL to gmsh | nomad | OpenFOAM | 2 | August 10, 2009 04:09 |