|
[Sponsors] |
June 9, 2017, 06:48 |
lookupobject in greyDiffusiveRadiation BC
|
#1 |
New Member
Xu Huang
Join Date: Apr 2015
Location: Netherlands
Posts: 23
Rep Power: 11 |
Hi FOAMers,
I added radiation model in my solver, but I have a problem in greyDiffusiveRadiation boundary files. In the updateCoeffs() function, the following code does not work properly. Code:
const radiationModel& radiation = db().lookupObject<radiationModel>("radiationProperties"); Code:
--> FOAM FATAL ERROR: lookup of radiationProperties from objectRegistry region0 successful but it is not a radiationModel, it is a dictionary From function objectRegistry::lookupObject<Type>(const word&) const in file /opt/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 181. build your own turbulence model with buoyancy Pe tool error What can be the reason leading to this error? Any ideas. Thanks very much. Cheers, Xu |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
lookupObject for <volScalarField>("p") interFoam | nuttita | OpenFOAM Programming & Development | 10 | November 19, 2019 10:59 |
why I can not lookupObject using db()? | paulpu318 | OpenFOAM Programming & Development | 2 | June 11, 2015 20:45 |
lookupObject | nimasam | OpenFOAM Running, Solving & CFD | 3 | June 15, 2012 13:23 |
lookupObject | nimasam | OpenFOAM Bugs | 0 | July 3, 2011 08:55 |
dynamic_cast and lookupObject | kev4573 | OpenFOAM Programming & Development | 0 | December 10, 2009 19:12 |