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

ViewFactorsGen - exceeds internal hardcoded limit

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

Like Tree1Likes
  • 1 Post By derekm

Reply
 
LinkBack Thread Tools Display Modes
Old   January 7, 2015, 10:47
Default ViewFactorsGen - exceeds internal hardcoded limit
  #1
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
while adapting CHTmultiregionsimpleRAD tutorial case I run in to this error

Code:
--> FOAM FATAL ERROR: 
Dynamic list need from capacity.Actual size maxDynListLength : 100000

    From function shootRays
    in file shootRays.H at line 63.
shootRays.H has the value 100000 hard coded into it... not sure if I should recode it and at the moment i dont know what in the case is causing it to exceed this.
The geometery is not particularly complex and the cell count is ~750 000 . Its a heater suspended underneath an inverted box suspended in Air.
I may have to give up on this model and use P1 instead.

The complete case is attached.
Attached Files
File Type: zip test1.zip (31.4 KB, 7 views)
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   January 21, 2015, 08:15
Default
  #2
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 2
pedrojrebelo is on a distinguished road
Hi,

Could you solve this problem?
pedrojrebelo is offline   Reply With Quote

Old   January 21, 2015, 08:49
Default
  #3
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
no, I couldnt. The mesh and regions check out ok. The tutorial works ok. I've tried it out with similar geometries and it fails with the same error.
These geometries feature nested regions and around 1 million cells.
and work fine without this radiation model and will work with P1. But I would prefer viewfactors
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   January 21, 2015, 09:07
Default
  #4
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 2
pedrojrebelo is on a distinguished road
Have you check this bug report?

http://www.openfoam.org/mantisbt/view.php?id=1240

Quote:
You might need to resize the "const label maxDynListLength = 100000"; in line 6 in shootRays.
pedrojrebelo is offline   Reply With Quote

Old   January 21, 2015, 09:24
Default
  #5
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 267
Rep Power: 12
zfaraday will become famous soon enough
What's your viewFactorsDict definition? Playing with the values given in this file you may get rid of this error. Otherwise maybe you could modify this limit by increasing it in the code and recompile the utility.

Regards,

Alex
__________________
I'm newbie in OpenFOAM's world and not an English-speaking, so if I make any mistake a correction will be welcome!
zfaraday is offline   Reply With Quote

Old   January 21, 2015, 09:27
Default
  #6
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 2
pedrojrebelo is on a distinguished road
Hi Alex,

In my case I have quite a complex geometry so definitely I think I need to modify the code and recompile the utility. I am gonna try to do that now, I will let you know if that works or not.
pedrojrebelo is offline   Reply With Quote

Old   January 21, 2015, 11:39
Default
  #7
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
Quote:
Originally Posted by zfaraday View Post
What's your viewFactorsDict definition? Playing with the values given in this file you may get rid of this error. Otherwise maybe you could modify this limit by increasing it in the code and recompile the utility.

Regards,

Alex
did that got nowhere it still errored
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   January 21, 2015, 12:04
Default
  #8
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 2
pedrojrebelo is on a distinguished road
Hi Derek,

I changed the limit in the shootRays.H and recompile it. After this it started running. I cannot comment on results at this stage.
pedrojrebelo is offline   Reply With Quote

Old   January 21, 2015, 13:29
Default
  #9
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
should really be a configurable parameter what size did you set it to?
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   January 21, 2015, 22:31
Default
  #10
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
i have altered the shootrays.H from
Code:
...
// Maximum lenght for dynamicList
const label maxDynListLength = 100000;
...
to
Code:
...
// Maximum lenght for dynamicList
//const label maxDynListLength = 100000;
const label maxDynListLength = 
       viewFactorDict.lookupOrDefault<label>("maxDynListLength", 100000);
 if (Pstream::master())
    { Info << "\nmaxDynListLength: "<< maxDynListLength << endl;  }
...
and now can specify the maxDynListLength in viewFactorsDict while keeping the old value as default and reporting the value used.
I have tested it on the tutorial case so far.
zfaraday likes this.
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET

Last edited by derekm; January 22, 2015 at 04:08.
derekm is offline   Reply With Quote

Old   January 22, 2015, 07:36
Default
  #11
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 267
Rep Power: 12
zfaraday will become famous soon enough
Thanks for sharing your approach Derek, it can be useful info for those who don't have good skill in C++ (like me).
__________________
I'm newbie in OpenFOAM's world and not an English-speaking, so if I make any mistake a correction will be welcome!
zfaraday is offline   Reply With Quote

Old   January 23, 2015, 04:12
Default
  #12
Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 95
Rep Power: 4
derekm is on a distinguished road
edit news: reported as bug and is now fixed in 2.3.x


More results:
It appears the number assigned to nFacesInCoarsestLevel in viewfactorsdict, have to be high enough to stop faceAgglomerate crashing, but low enough to stop viewfactorsgen crashing.
This was found with maxDynListLength set to 5000000

Code:
...
Total number of coarse faces: 3536

maxDynListLength: 5000000
...
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET

Last edited by derekm; January 27, 2015 at 19:37.
derekm is offline   Reply With Quote

Old   June 29, 2015, 11:03
Default
  #13
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 9
Rep Power: 3
RobinZ is on a distinguished road
Hello Foamers,

first i want to let you know that in OpenFoam 2.4 you can specify the maximum of listlength in the viewFactorsDict file by adding:

maxDynListLength 1000000;

You can choose the number you want, but keep in mind that more rays will increase the RAM requirements.

Did someone of you tried to vary the number of nFacesInCoarsestLevel for faceAgglomerate and viewFactorsGen??

Is that possible? And could this trick increase the stability?

best regards

Robin
RobinZ 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
boundary Mach number exceeds maximum limit ! Aysiyi FLUENT 1 December 21, 2014 17:15
using chemkin JMDag2004 OpenFOAM Pre-Processing 1 December 15, 2014 17:38
mesh quality checking for large internal flow (yStar) vaina74 OpenFOAM Post-Processing 0 November 21, 2014 08:49
Warning: boundary Mach number exceeds maximum limit on pressure-outlet Tarantino FLUENT 1 March 22, 2013 22:30
[Workbench] Ansys Workbench: Element face warping factor exceeds warning limit HMN ANSYS Meshing & Geometry 0 March 13, 2013 08:18


All times are GMT -4. The time now is 05:02.