|
[Sponsors] |
April 3, 2014, 21:55 |
objectRegistry related problems
|
#1 |
New Member
Join Date: Dec 2012
Posts: 9
Rep Power: 13 |
Hi there
this problem has been bothering me for days! Info << newMesh().thisDb().lookupObject<dictionary>("fvSch emes") << endl; error comes: lookup of fvSchemes from objectRegistry background successful but it is not a dictionary, it is a dictioanry personally I think there is someting wrong with the ptr, just can not figure out the solution. anyone has ever been through this?? thanks a lot for your attention!!! burt |
|
April 10, 2014, 20:33 |
|
#3 |
New Member
Join Date: Dec 2012
Posts: 9
Rep Power: 13 |
hi wyldckat
I am using OF 2.2.2 I got this problem after I wrote hundreds of codes, this error occur when it came to this line fvm::ddt(U_subdomain) I was trying to solve UEqn in a subdomain |
|
April 13, 2014, 16:07 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi burt,
This is an interesting result... it stating that it is a dictionary and not a dictionary From what I figure out, you can have access to this particular dictionary like this: Code:
Info << newMesh().schemesDict() << endl; Actually, this also works: Code:
Info << newMesh().thisDb().lookupObject<IOdictionary>("fvSchemes") << endl; Best regards, Bruno
__________________
|
|
April 14, 2014, 22:31 |
|
#5 | |
New Member
Join Date: Dec 2012
Posts: 9
Rep Power: 13 |
Hi Bruno
it is so nice of you, and obviously you are professional. when I tried Code:
Info << fluidRegions[0] .schemesDict() << endl; when I typed Code:
Info << newMesh() .schemesDict() << endl; newMesh is a subdomain of fluidRegion[0] I will dig more! thanks again for your kindly help!! Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 12:13 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 05:44 |
Problems downloading Openfoam related documents | srinath | OpenFOAM | 3 | June 16, 2008 10:14 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 11:00 |
combustion problems???? | Vijesh Joshi | CFX | 1 | July 24, 2006 03:25 |