CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] FOAM FATAL ERROR: Negative size requested

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By nope

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2019, 09:42
Default FOAM FATAL ERROR: Negative size requested
  #1
New Member
 
Join Date: Nov 2017
Posts: 11
Rep Power: 8
nope is on a distinguished road
Hello everyone

I'm using cartesianMesh and having mixed feelings about it. I do like the simplicity and performance very much. However there are some show stoppers to efficiently use and rely on it. First i would like to mention, with complex geometries, the mesh on the boundary has to be very (emphasis on very) fine. This results in rather large meshes compared to snappyhexmesh or other (also commercial) tools. Otherwise there are bad faces/cells.


More importantly with certain mesh settings (refinement values) i get the error mentioned in the title. The output looks as following (attached picture).

cfmesh_neg_size.PNG

The mesh is with around 100Mio cells rather large. It is kind of annoying to find settings where the error doesn't occure. I'm not using distributed memory and i'm having 60 cores and 200GB RAM. Sometimes it does work without error.

Has anyone experienced something simmilar and what could be the reason? I would like to get rid of this behaviour so I can focus on the mesh itself.

Thank you, regards
nope


Edit:
For the interested people, i changed a few things and the above mentioned error hasn't occured again yet. Unfortunately I can't tell what was the reason because the following changes were made alltogether... I know.
- Repaired geometry, there was a not so nice surface
- Updated to OF v1906
- Compiled OF with 64bit label size

Creating a good mesh with a reasonable cell size at the boundary is still a challenge. The workflow is basically starting with a "large" cellsize (around 0.0005m) and make it smaller until the meshing is successfully. Any best practice hints are welcome.

Last edited by nope; July 17, 2019 at 03:19.
nope is offline   Reply With Quote

Old   August 19, 2019, 06:10
Default
  #2
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8
Krao is on a distinguished road
Hi nope,

I was looking at de-featuring the geometry as we have discussed on the other thread genetation of mesh for very thin airfoil propellers, and found this pdf http://www.arek.pajak.info.pl/wp-con...flow_cadOF.pdf. I hope the procedure mentioned here is useful for everyone regardless of the geometry and the meshing tools they are using.

Krao
Krao is offline   Reply With Quote

Old   August 19, 2019, 07:13
Default
  #3
New Member
 
Join Date: Nov 2017
Posts: 11
Rep Power: 8
nope is on a distinguished road
Hi Krao

Thank you for sharing.

The particular error mentioned in my first post got away with 64bit labels. Even though 32bit labels are enough for the finished mesh, it seems some intermediate state results in a overflow.

Cheers, nope
Krao and dylewiczk like this.
nope is offline   Reply With Quote

Old   November 2, 2019, 19:08
Default
  #4
New Member
 
Join Date: Nov 2019
Posts: 13
Rep Power: 6
user007 is on a distinguished road
Quote:
Originally Posted by nope View Post
Hi Krao

Thank you for sharing.

The particular error mentioned in my first post got away with 64bit labels. Even though 32bit labels are enough for the finished mesh, it seems some intermediate state results in a overflow.

Cheers, nope
I'm facing the same problem but with pMesh and tetMesh under Windows 10. When I use the cartesianMesh everithing is fine.
What does it means compile with 64 label instead of 32? I suppose you are referign to the Unix enviroment...
user007 is offline   Reply With Quote

Old   November 4, 2019, 08:56
Default
  #5
New Member
 
Join Date: Nov 2017
Posts: 11
Rep Power: 8
nope is on a distinguished road
Hi user007... i guess

I'm using OpenFOAM v1812/v1906 which has cfMesh included. In the etc/bashrc file in the OpenFOAM directory you can set the size of the labels in bits, either 32 or 64. This influences the max. integer number OpenFOAM can use. If your mesh is too big, it can happen that a integer number which exceeds this max. number occurs. Then you can switch to 64 and recompile OpenFOAM.

If your Mesh is not particularly big (>>100Mio. cells), then i guess something else is wrong and this is not the solution for your problem. Your geometry (stl or whatever) could be bad and not closed or in the wrong units.

Cheers, nope
nope is offline   Reply With Quote

Old   November 9, 2019, 04:28
Default
  #6
New Member
 
Join Date: Nov 2019
Posts: 13
Rep Power: 6
user007 is on a distinguished road
Quote:
Originally Posted by nope View Post
Hi user007... i guess

I'm using OpenFOAM v1812/v1906 which has cfMesh included. In the etc/bashrc file in the OpenFOAM directory you can set the size of the labels in bits, either 32 or 64. This influences the max. integer number OpenFOAM can use. If your mesh is too big, it can happen that a integer number which exceeds this max. number occurs. Then you can switch to 64 and recompile OpenFOAM.

If your Mesh is not particularly big (>>100Mio. cells), then i guess something else is wrong and this is not the solution for your problem. Your geometry (stl or whatever) could be bad and not closed or in the wrong units.

Cheers, nope
recompiled with 64 bit labels solved the problem, however now either the mesh fails for too low quality, or I end up running out of ram during meshing if I try to reduce the elements size...
There is no way to assign max and min size to surfaces in order to get refinement just where quality is too low insted of a fixed target size/refinement level only?
user007 is offline   Reply With Quote

Reply


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
[snappyHexMesh] snappyHexMesh error "Cannot determine normal vector from patches." lethu OpenFOAM Meshing & Mesh Conversion 1 June 3, 2020 07:49
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 13:17.