CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

lookupobject in greyDiffusiveRadiation BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2017, 06:48
Post lookupobject in greyDiffusiveRadiation BC
  #1
New Member
 
Xu Huang
Join Date: Apr 2015
Location: Netherlands
Posts: 23
Rep Power: 11
xuhuang is on a distinguished road
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");
It reports
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.
I found something similar in the forum, but not very helpful.
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
xuhuang is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 07:32.