|
[Sponsors] |
July 3, 2011, 08:55 |
lookupObject
|
#1 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
i used following steps:
1) add to main solver #include "scalarIOList.H" //add 2) add to creatFields.H scalarIOList jump ( IOobject( "jump", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), label(1.0)); 3) update jump[0] = myvalue; 4) in boundary condition i add : const scalarIOList& jump = db().lookupObject<scalarIOList>("jump"); but i faced following strange!!!!! error lookup of jump from objectRegistry region0 successful but it is not a scalarList, it is a scalarList ??????????? From function objectRegistry::lookupObject<Type>(const word&) const in file ...../OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 121. i guess its a bug |
|
Tags |
lookupobject, objectregistry |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dynamic_cast and lookupObject | kev4573 | OpenFOAM Programming & Development | 0 | December 10, 2009 19:12 |