CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Siemens (
-   -   CCM+ bad_alloc (

AJ May 1, 2006 04:28

CCM+ bad_alloc
Does anyone know anything about "bad_alloc" errors in starccm+?? Occurs when I try and run the model. What could be causing this? How do I prevent it?! Thanks

TG May 1, 2006 10:54

Re: CCM+ bad_alloc
save your model after meshing. shutdown ccm+ and then restart it.

Chris May 2, 2006 11:38

Re: CCM+ bad_alloc
bad_alloc is the standard c++ out of memory error. It probably failed to allocate enough space for the solution data.

As TG wrote, if you just generated the mesh, re-starting may allow you to proceed. If not, you may need more memory or a smaller mesh (fewer cells).

Steve May 2, 2006 16:30

Re: CCM+ bad_alloc
Now THAT sounds like something Micro$oft would offer you as a solution to bad code!

tina May 3, 2006 11:33

Re: CCM+ bad_alloc
try changing to explicit! and change the Courant no to very small for the begining say 0.1

Chris May 5, 2006 10:18

Re: CCM+ bad_alloc
In fact this problem is worse on windows for various reasons. Try googling "heap fragmentation windows" ...

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