|
[Sponsors] |
Floating point error in BlockMesh for really simple mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 8, 2009, 06:47 |
Floating point error in BlockMesh for really simple mesh
|
#1 | |
New Member
Coen Wit
Join Date: Jul 2009
Posts: 5
Rep Power: 17 |
As a first trial with OpenFOAM from the ground up I am creating a really simple simulation: 2D flow across a cylinder. So far I've only edited the blockMeshDict to create this geometry. I've tried two blocking strategies on this problem (the first one is a little weird):
Instead of meshing this geometry correctly blockMesh gives the following error (I've left out the header) : Quote:
To determine what the cause of this problem is I've meshed the lower half of the problem, which works without any problem. The same goes when I mesh the complete problem, but without the blocks and faces on the upper half of the cylinder (see attached figures). With the other (normal) blocking strategy, I can't even get half the mesh to work correctly. Changing the order of the points in the blocking hasn't helped me so far and I'm lost for a solution of this problem. I think it has something to do with the use of arcs, but I'm not sure. Any solutions or ideas would be greatly appreciated. I'd like to get the whole case to run in OpenFOAM, instead of having to resort to a commercial program for meshing. I've attached the following files: blockMeshDict.fail <-- the complete mesh, but with the top blocks near the cylinder commented out blockMeshDicthalf.work <-- the lower half of the problem, which meshes correctly blockMeshDict <-- dictionary for a more correct blocking strategy, which also gives the floating point error |
||
July 9, 2009, 05:47 |
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
I tried blockMeshDict.txt in 1.5.x and that gives
face 0 in patch 0 does not have neighbour cell face: 4(12 7 27 32). You can visualise the blocks and points of your blockMesh with the -blockTopology option to dump out an .obj file which you can postprocess with e.g. javaview or with Paraview (using objToVTK). The blockMeshDict.fail seems to work ok. |
|
July 9, 2009, 07:56 |
|
#3 | |
New Member
Coen Wit
Join Date: Jul 2009
Posts: 5
Rep Power: 17 |
Quote:
the .fail file creates the mesh depicted in the second image. Again: the offending faces (the missing ones in the middle) have already been commented out. I've attached the uncommented file below. Could you check if it does the same thing on your system? I didn't know about the -blockTopology option, where does it dump the files? I ran the option while I also got the floating point error and I can't find any .obj files. Last edited by CoenW; July 9, 2009 at 08:00. Reason: attach file |
||
July 22, 2009, 07:33 |
|
#4 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
There was a problem with having zero points along the edge (your blocks are 1x1x1). It works with more cells along the edge. I pushed a fix to 1.5.x so it works with 1 cell as well.
Thanks, Mattijs |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
Very simple moving mesh | Pete | FLUENT | 4 | February 10, 2006 01:12 |
Floating point error | Chico Mbanu | FLUENT | 1 | July 15, 2004 09:10 |
Floating point error | Chico Mbanu | FLUENT | 0 | July 14, 2004 14:56 |
unstructured vs. structured grids | Frank Muldoon | Main CFD Forum | 1 | January 5, 1999 11:09 |