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

ViewFactorsGen - exceeds internal hardcoded limit

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

Like Tree9Likes
  • 1 Post By zfaraday
  • 5 Post By derekm
  • 1 Post By derekm
  • 2 Post By RobinZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2015, 09:47
Default ViewFactorsGen - exceeds internal hardcoded limit
  #1
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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, 25 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, 07:15
Default
  #2
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 11
pedrojrebelo is on a distinguished road
Hi,

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

Old   January 21, 2015, 07:49
Default
  #3
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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, 08:07
Default
  #4
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 11
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, 08:24
Default
  #5
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
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
vs1 likes this.
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   January 21, 2015, 08:27
Default
  #6
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 11
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, 10:39
Default
  #7
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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, 11:04
Default
  #8
New Member
 
Pedro
Join Date: Dec 2014
Posts: 9
Rep Power: 11
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, 12:29
Default
  #9
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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, 21:31
Default
  #10
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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.
peterhess, Rojj, zfaraday and 2 others like this.
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET

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

Old   January 22, 2015, 06:36
Default
  #11
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
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).
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   January 23, 2015, 03:12
Default
  #12
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
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
...
vs1 likes this.
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET

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

Old   June 29, 2015, 11:03
Default
  #13
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12
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
vs1 and Reptider like this.
RobinZ 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
boundary Mach number exceeds maximum limit ! Aysiyi FLUENT 4 January 28, 2018 01:56
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
mesh quality checking for large internal flow (yStar) vaina74 OpenFOAM Post-Processing 0 November 21, 2014 07:49
Warning: boundary Mach number exceeds maximum limit on pressure-outlet Tarantino FLUENT 1 March 22, 2013 21:30
[Workbench] Ansys Workbench: Element face warping factor exceeds warning limit HMN ANSYS Meshing & Geometry 0 March 13, 2013 07:18


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