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

Real Stack Memory ERROR

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2014, 22:13
Question Real Stack Memory ERROR
  #1
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 9
ashtonJ is on a distinguished road
Dear All,
I am stuck with the following error:
_________________________________
*** INSUFFICIENT MEMORY ALLOCATED *** |
| |
| ACTION REQUIRED : Increase the real stack memory size. |
| |
| Details : |
| Requested space : 201528 words |
| Current allocated space : 191808656 words |
| Current used space : 191757021 words |
| Current free space : 51635 words |
| Number of free areas : 1 |
+--------------------------------------------------------------------+


Details of error:-
----------------
Error detected by routine MAKDAT
CDANAM = IELG251 CDTYPE = REAL ISIZE = 201528
CRESLT = FULL
_________________________________

I've gone through all previous threads on this error and tried to increase the memory up to 8x, but still get the same error.
This cfx set-up used to work with no error; however, after activating transient statistics and defining few new variables, the above error showed up.
Here is a summary of newly defined variable:
New Variables:
ABSPGX: abs(Pressure.Gradient X)
ABSPGY: abs(Pressure.Gradient Y)
ABSPGZ: abs(Pressure.Gradient Y)
PG: sqrt(((Pressure.Gradient X)^2)+((Pressure.Gradient Y)^2)+((Pressure.Gradient Z)^2))

In "Transient Statistics" tab, I defined few cases to find the time-average of above variables over whole flow cycle as well as between specific times.

Would be too pleased if any body can help me.

Thanks
AshtonJ
ashtonJ is offline   Reply With Quote

Old   October 27, 2014, 05:53
Default
  #2
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 314
Rep Power: 8
JuPa is on a distinguished road
You've probably got some obsurdly long file names for your .def file. In execution control, under solver increase the solver memory allocation factor to 2.

Failing that just reduce your file names.
JuPa is offline   Reply With Quote

Old   October 27, 2014, 06:45
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,639
Rep Power: 105
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Why do you think file names has something to do with it? It is the real stack which has run out of space and that has no link to the file name to my knowledge.

I have a hunch there may be a problem (ie a bug) in CFX with using Pressure.Gradient X/Y/Z and transient statistics. Can you try doing transient statistics on just Pressure? Try a work around by defining a variable like PGX = Pressure.Gradient X, then define a transient statistic of abs(PGX).

By the way: you have an error in your ABSPGZ function - you are using the Y gradient, not Z.
ghorrocks is offline   Reply With Quote

Old   October 27, 2014, 08:01
Default
  #4
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 9
ashtonJ is on a distinguished road
Thanks Glenn and RicochetJ.
I figured it out, the problem was because of choosing the full list of transient statistics. I changed it to Arithmetic Average and it works now.
ashtonJ is offline   Reply With Quote

Old   October 28, 2014, 07:41
Default
  #5
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 314
Rep Power: 8
JuPa is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Why do you think file names has something to do with it?
I had an error a year or two ago where my file names were absurdly long. I received a similar error to the above. I fixed it by increasing the mem allocation factor.
JuPa is offline   Reply With Quote

Old   October 29, 2014, 06:14
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,639
Rep Power: 105
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Weird. But it should have been the string stack which ran out of room, isn't it?
ghorrocks is offline   Reply With Quote

Old   October 30, 2014, 12:16
Default
  #7
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 314
Rep Power: 8
JuPa is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Weird. But it should have been the string stack which ran out of room, isn't it?
I haven't the foggiest. I just increased the memory allocation factor (at the time it made sense - two years later I don't know why). The mesh independent results I achieved were validated by experimental data so I was happy and didn't question anything!

Error out of sight is error out of mind!
JuPa is offline   Reply With Quote

Old   November 11, 2014, 21:47
Default
  #8
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 9
ashtonJ is on a distinguished road
I've found out what causes "INSUFFICIENT MEMORY ALLOCATED" error and wanted to share it here:
This error might occur
1- if you define a lot of additional variables
2- if you want to save all transient statistics

I've had this problem for the last month and tried different ways to get rid of that error such as
1- Increasing the memory allocation factor up to 10x for “Partitioner”, “Solver” and “Interpolator”
2- Reducing the mesh from 1300,000 elements to 500, 000 elements

None of them worked

However, I fixed that problem by increasing the memory allocation factor within the CFX and also by ticking "Use Large Problem Partitioner" option and surprisingly the error is gone!
ashtonJ is offline   Reply With Quote

Old   September 23, 2015, 08:15
Default
  #9
New Member
 
Join Date: Jul 2015
Location: Germany
Posts: 6
Rep Power: 3
MaBe is on a distinguished road
Quote:
Originally Posted by ashtonJ View Post
However, I fixed that problem by increasing the memory allocation factor within the CFX and also by ticking "Use Large Problem Partitioner" option and surprisingly the error is gone!
Thxanks a lot for this advice.

For everyone: Try to changed the allocation factor in CFX-Pre instead of the CFX-Solver Manager!

This worked fine for me.
MaBe is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
Compile calcMassFlowC aurore OpenFOAM Programming & Development 12 March 18, 2014 05:22
an error in Calculator's equation immortality OpenFOAM Paraview & paraFoam 11 September 3, 2013 16:18
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54


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