CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

ViewFactor Gen Malloc crash?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2016, 07:33
Default ViewFactor Gen Malloc crash?
  #1
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
Hello Foamers,

I'm trying to implement the view factor model in a small wedge model, however, when running the viewFactorGen command i get the following error:


Code:
Total number of coarse faces: 24
*** Error in `viewFactorsGen': malloc(): memory corruption (fast): 0x0000000000cffb40 ***
Any idea how to fix this?

The case files are available here:
https://github.com/pupo162/ThesisPro...rod/ViewFactor

Best Regards,
Pedro
pupo is offline   Reply With Quote

Old   April 19, 2017, 04:18
Default
  #2
New Member
 
Victor Manuel
Join Date: Mar 2015
Posts: 1
Rep Power: 0
rotiv is on a distinguished road
Sorry for the late reply, hope you managed to solve it

If there is anyone around who has the same problem, I solve it by changing a number in the viewFactorsGen file and recompiling it again (under a different name, of course).

The change was to write:

labelList triSurfaceToAgglom(20*nFineFaces);

instead of:

labelList triSurfaceToAgglom(5*nFineFaces);

In the searchingEngine.H file.

And somehow the segmentation fault disappeared.
rotiv 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-0.3.0 make parallel run crash on foam-extend-3.0 Aleksey_R OpenFOAM Community Contributions 12 March 22, 2019 07:57
Crash when using DPMfoam for LPT of objects contacting a vibrating wall ansubru OpenFOAM Running, Solving & CFD 0 May 1, 2014 03:24
Dragging Slice File = Crash cbritan OpenFOAM Bugs 3 January 6, 2011 03:58
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, cfdproject OpenFOAM Meshing & Mesh Conversion 0 April 14, 2009 15:45
calloc( ) or malloc( ) Abhijit Tilak Main CFD Forum 5 January 19, 2004 20:53


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