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

Hydrodynamic Coupling - "malloc: corrupted top size" error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2022, 03:32
Default Hydrodynamic Coupling - "malloc: corrupted top size" error
  #1
New Member
 
Felix Daddo
Join Date: Aug 2022
Location: Sydney, Australia
Posts: 25
Rep Power: 3
FelixD is on a distinguished road
Hi Kamath,

I have recently been able to access a linux machine to run my simulations with a lot more memory so I was hoping that I would not have the malloc() error when running DiveMESH for the CFD module.

My machine has the following parameters:
MemTotal: 65866644 kB
So I was not expecting the error, and am confused as to why this is still happening given it is only a 2D simulation.

Do you have any ideas what may be causing the issue? I have attached the files I am trying to run. The FNPF simulation runs very quickly now and I have no issues with running it.
Attached Files
File Type: zip cfd_files.zip (479 Bytes, 2 views)
File Type: zip fnpf_files.zip (462 Bytes, 2 views)
FelixD is offline   Reply With Quote

Old   September 7, 2022, 04:39
Default
  #2
New Member
 
Felix Daddo
Join Date: Aug 2022
Location: Sydney, Australia
Posts: 25
Rep Power: 3
FelixD is on a distinguished road
If it helps at all, the only directory that wasn't empty after I got the error is the DIVEMesh_Decomp directory, which contained teh text file DIVEMesh-Decomposition.txt

I wasn't able to copy the text file out of my linux machine however I took a screenshot of the contents hoping that it might reveal something problematic that I am not seeing.

I've attached the screenshot and hopefully it can be of some help!

Cheers,
Felix
Attached Images
File Type: png HDC_Decomposition.PNG (34.7 KB, 9 views)
FelixD is offline   Reply With Quote

Old   September 7, 2022, 06:24
Default
  #3
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
There has been another round of RAM usage optimisation in the DiveMESH RC about a couple of days back.
Could you compile that version and see if the problem still persists?
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   September 11, 2022, 14:20
Default
  #4
Member
 
Felix S.
Join Date: Feb 2021
Location: Germany, Braunschweig
Posts: 85
Rep Power: 6
Felix_Sp is on a distinguished road
Hey Felix,

I just had a look at your files and think that you have to change P40 from 1 to 2 in the FNPF simulation.

With P40 1 you only have a single file printout for the latest time/iteration step (P41 P42). However, the CFD-module needs the continuous state-file prints as input data.

The temporal resolution is then based on your print-out frequency (again P41 P42). Time steps in between are interpolated in some way, I guess.

Maybe Arun can confirm this (if this solves the problem, you can ignore the private messages).

Cheers,
Felix
Felix_Sp is offline   Reply With Quote

Old   September 12, 2022, 02:52
Default
  #5
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
@Felix S. When I last tested P 40 1 and 2 give the same result so technically not a problem though you are correct in that P 40 1 would be the "correct" input.

However, if that affects the memory allocation, I am not sure.
I find it hard to replicate the memory overload
__________________
Arun
X years with REEF3D
kamath 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
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 18:11
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25


All times are GMT -4. The time now is 10:30.