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

Real Stack Memory ERROR

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

Like Tree2Likes
  • 2 Post By ashtonJ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2014, 21:13
Question Real Stack Memory ERROR
  #1
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
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, 04:53
Default
  #2
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 14
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, 05:45
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,691
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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, 07:01
Default
  #4
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
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, 06:41
Default
  #5
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 14
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, 05:14
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,691
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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, 11:16
Default
  #7
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 14
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, 20:47
Default
  #8
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
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!
SNeCu and Stasys Gasiunas like this.
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: 10
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

Old   November 8, 2018, 10:57
Default
  #10
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
kano22 is on a distinguished road
Quote:
Originally Posted by MaBe View Post
For everyone: Try to changed the allocation factor in CFX-Pre instead of the CFX-Solver Manager!
I can't find the Option in CFX-Pre where the allocation factor can be changed. And I can't do it in the Solver Manager, because I have to start the compution with a command in linux. So I need a .def-file with complete settings.
Can anyone tell me where to find the allocation factor settings in CFX-Pre?

Thanks
kano22 is offline   Reply With Quote

Old   November 8, 2018, 11:02
Default
  #11
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
kano22 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!
...and, what is meant by "within CFX"? The "Increasing the memory allocation factor up to 10x for “Partitioner”, “Solver” and “Interpolator” - None of them worked " refers as far as I understand to the Solver Manager, which is part of CFX. Or am I wrong?

Thanks
kano22 is offline   Reply With Quote

Old   November 8, 2018, 13:30
Default
  #12
Senior Member
 
Join Date: Jun 2009
Posts: 1,799
Rep Power: 31
Opaque will become famous soon enough
cfx5solve -help

will provide you with the different options. For the ones that worked (assuming solver step failure) try

cfx5solve -large -s 2 -def ....

What is not clear from the original post is which component wrote the error? That is, what is the interpolator step, the partitioner step or the solver step. Each one of them have separate settings in the command line as well as in the user interface (CFX-Pre, or CFX-SolverManager)
Opaque is offline   Reply With Quote

Old   November 9, 2018, 04:30
Default
  #13
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
kano22 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Each one of them have separate settings in the command line as well as in the user interface (CFX-Pre, or CFX-SolverManager)
...so, where are those settings in the user interface of CFX-Pre? I'm not sure whether it's me not finding them, or it's my CFX Version which doesn't have these settings in the CFX-Pre user interface.

Thanks
kano22 is offline   Reply With Quote

Old   November 9, 2018, 05:28
Default
  #14
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by kano22 View Post
...so, where are those settings in the user interface of CFX-Pre? I'm not sure whether it's me not finding them, or it's my CFX Version which doesn't have these settings in the CFX-Pre user interface.

Thanks

Right click Simulation control/insert/execution control/solver tab.


But, you can also change it in the command line (see Opaque's suggestion on finding the syntax)
Lance is offline   Reply With Quote

Old   November 9, 2018, 06:14
Default
  #15
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
kano22 is on a distinguished road
Thanks a lot, the hint helped very much.
kano22 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 00:10
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 07:43
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06: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 05:10.