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

Object registry empty

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

LinkBack Thread Tools Display Modes
Old   November 2, 2013, 14:35
Default Object registry empty
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
Dear All,

I am developing a little library for translation frames. The idea is that the equations are solved in a moving, possibly accelerating frame of refence but the velocity can be changed in different ways. The library allows to switch between different translation models. It contains appropriate boundary conditions and several different velocity change methods (including constant),

I am now implementing tracking with respect to a centre of volume of a selected scalar. This is in order to cover cases similar to the one in Rusche's thesis.

The initalisation of the constructor of the respective class looks like this:

      const Time& runTime,
      const fvMesh& mesh,
      const dictionary& TFRDict,
      const word& translationName)
      translationalFrame(runTime, mesh, TFRDict),
alpha1_ is declared as const reference in the class body. alpha1 is already defined in the solver (a slight modification of interFoam). However, when I run the code I get

request for volScalarField alpha1 from objectRegistry bubble failed
    available objects of type volScalarField are

So I am a little confused. Not only alpha1 isn't found but no fields are found at all. How is this supposed to work?

I wouldn't like to change the interface to my library as providing alpha1 to the constructor is redunant in my case - most models don't use it. The read access to alpha1 field is enough and I understand that object registry should allow for this. Please let me know if you have any suggestions.
AlmostSurelyRob is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit OpenFOAM Paraview & paraFoam 60 September 18, 2013 03:23
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 136 April 25, 2012 11:22
variables missing from object registry ganeshv OpenFOAM Running, Solving & CFD 1 February 29, 2012 08:12
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36

All times are GMT -4. The time now is 00:18.