CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

lookup of successful but it is not a dictionary, it is a dictionary!!

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2021, 07:06
Default lookup of successful but it is not a dictionary, it is a dictionary!!
New Member
Join Date: Feb 2021
Posts: 24
Rep Power: 3
NotOverUnderated is on a distinguished road
I am trying to access the "data" object from ObjectRegistry in a coded function object. Here is what I have tried:

Info << mesh().lookupObject<dictionary>("data") << endl;
OpenFOAM 7 raises the following fatal error:


    lookup of data from objectRegistry region0 successful
    but it is not a dictionary, it is a dictionary
If a dictionary is not a dictionary! what type should I use to access it?

Thank you
(Sorry for the typo in the title, I can't fix it)
NotOverUnderated is offline   Reply With Quote

Old   October 23, 2021, 11:37
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 424
Rep Power: 11
Tobermory will become famous soon enough
Maybe try:

Info << mesh().lookupObject<objectRegistry>("data") << endl;
Otherwise, try posting more of your code in case there's somethings else that is causing the problem.
Tobermory is offline   Reply With Quote


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
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary Struggle_Achieve OpenFOAM Pre-Processing 2 December 20, 2017 03:58
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
Convergence on anisotropic tetahedral meshes pbo OpenFOAM Running, Solving & CFD 12 December 14, 2010 11:59
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51

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