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

[snappyHexMesh] How can I reduce RAM consumption of snappyHexMesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By cibanez

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2023, 02:29
Default How can I reduce RAM consumption of snappyHexMesh?
  #1
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I knew that 1M cells consume about 1~2gb of RAM, according to many others' post.



But currently my snappyhexmesh creates about 5~6gb load per 1M cells. I must be able to create 300% of current cell # by that rule, but my snappyhexmesh keeps crash due to RAM shortage


How can I reduce RAM consumption of mesh? Is there any factor that differs RAM consumption I can control?
songyi719 is offline   Reply With Quote

Old   March 13, 2023, 04:54
Default
  #2
Member
 
Maries
Join Date: Mar 2010
Location: Cologne, Germany
Posts: 75
Rep Power: 16
rmaries is on a distinguished road
Hi,

It also depends on the input .stl or .obj mesh size. If your input .stl contains lot of unwanted surfaces or it is very fine, that will take more memory.

Once I tried to create volume mesh for the car without cleaning the interior and only by filling the gaps of cabin. It fails due to memory overload. I used aws with 512 gb instance. I didn't try that to solve again.

When I try the same case with cleaned interior, it works fine

Best Regards
Maries
rmaries is offline   Reply With Quote

Old   March 20, 2023, 11:09
Default
  #3
New Member
 
Cristóbal
Join Date: Jan 2022
Location: Sweden
Posts: 14
Rep Power: 4
cibanez is on a distinguished road
Hi,

As Maries suggest, your memory might be filling up due to large size of stl's for geometry surfaces. If you are meshing in parallel you could try type distributedTriSurfaceMesh; instead of type triSurfaceMesh; for your .stl or .obj surfaces.

Check this link:
https://www.openfoam.com/documentati...rfacemesh.html
Yann, wht and songyi719 like this.
cibanez is offline   Reply With Quote

Reply

Tags
ram, snappyhexmesh


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
Openfoam (snappyHexMesh) only using 32MB of RAM Geckomaniac3 OpenFOAM 3 September 6, 2021 13:43
Over Ram Memory Consumption (Over 200GB) uyelken OpenFOAM Running, Solving & CFD 5 February 25, 2019 11:20
mother board and ram amount. zero_custom Hardware 4 January 4, 2016 16:27
[snappyHexMesh] Snappyhexmesh parallel using all RAM snowygrouch OpenFOAM Meshing & Mesh Conversion 2 May 29, 2014 16:57
[snappyHexMesh] snappyHexMesh taking a lot of RAM ziad OpenFOAM Meshing & Mesh Conversion 19 September 26, 2010 13:08


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