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

Object registry empty

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2013, 13:35
Default Object registry empty
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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:

Code:
  centreOfVolumeTranslation::centreOfVolumeTranslation(
      const Time& runTime,
      const fvMesh& mesh,
      const dictionary& TFRDict,
      const word& translationName)
    :
      translationalFrame(runTime, mesh, TFRDict),
      alpha1_(runTime.db().lookupObject<volScalarField>("alpha1")),
...
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

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

0
(
)
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

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
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
variables missing from object registry ganeshv OpenFOAM Running, Solving & CFD 1 February 29, 2012 07:12
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


All times are GMT -4. The time now is 03:45.