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

Self-defined IOobject variable not in objectRegistry

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 16, 2010, 07:06
Default Self-defined IOobject variable not in objectRegistry
  #1
New Member
 
Patrick Dems
Join Date: May 2009
Posts: 4
Rep Power: 8
lama is on a distinguished road
Hello,

I have implemented two new variables of the same kind as

Code:
volScalarField m0
(
IOobject
    (
    "m0",
        runTime.timeName(),
        mesh,
        IOobject::MUST_READ,
        IOobject::AUTO_WRITE
    ),
    mesh
);
and

Code:
volScalarField m1
(
    IOobject
    (
        "m1",
        runTime.timeName(),
        mesh,
        IOobject::MUST_READ,
        IOobject::AUTO_WRITE
    ),
    mesh
);
m0 will be only overwritten during the simulation but for m1 a kind of continuity equation is solved with relax() and solve()

The problem now is that m1 is not in the regObjects list but m0. Therefore I have problems with runtime.write() where m1 won't be written and with fieldAverage, because fieldAverage doesn't know m1:

Code:
Calculating averages                        

    request for volScalarField m1 from objectRegistry region0 failed
    available objects of type volScalarField are
The curious thing is, that on one cluster it works and on another one not.
At the second cluster the code is vectorized during the compilation.

I have no idea, can anybody help me, at least some hints how to force m1 into the objectRegistry?

Thanks in advance!
lama is offline   Reply With Quote

Old   April 20, 2010, 06:49
Default Problem gone by changing from version 1.5 to 1.6
  #2
New Member
 
Patrick Dems
Join Date: May 2009
Posts: 4
Rep Power: 8
lama is on a distinguished road
Don't know why but using version 1.6 it works. That's what I call good work in software improvement!
lama is offline   Reply With Quote

Reply

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
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 05:49
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Gradient of a User defined Variable Ramadas CFX 2 August 21, 2007 09:19
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 17:49.