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

Unknown function type writeRegisteredObject

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By Giantsda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2017, 16:48
Default Unknown function type writeRegisteredObject
  #1
Member
 
sibo
Join Date: Oct 2016
Location: Chicago
Posts: 55
Rep Power: 9
sibo is on a distinguished road
Dear Foamers,

I have a question about customized function in ControlDict.

I used to use OF_2.1.1 and in my controlDict I added the following lines to use this customized function.
Code:
writeduc
    {
        type writeRegisteredObject;
        functionObjectLibs ( "libIOFunctionObjects.so" );
        objectNames ("ducSensor");
        writeControl     outputTime;
    }
And in the solver's source code, I added the sensor.H there.
It works well!

But Now I transferred to OF_4.1 and I did the same thing, OF gave me the following errors.
Code:
--> FOAM Warning : 
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 671
    Caught FatalError 
--> FOAM FATAL ERROR: 
Unknown function type writeRegisteredObject
I noticed in OF_4, they did the following change from the website: https://github.com/OpenFOAM/OpenFOAM...c36fbd9fe9f1e4
Code:
-            << "    and use the 'writeRegisteredObject' functionObject."
+            << "    and use the 'writeObjects' functionObject."
Therefore, I changed the "writeRegisteredObject" to "writeObjects", but I got the same error.
Code:
--> FOAM Warning : 
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 671
    Caught FatalError 
--> FOAM FATAL ERROR: 
Unknown function type writeObjects
Can anyone give me some help here?
Thanks in advance!!!

Best
sibo is offline   Reply With Quote

Old   November 16, 2018, 15:52
Default
  #2
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 8
Giantsda is on a distinguished road
Try to use
libs ("libutilityFunctionObjects.so");
rather than
functionObjectLibs ( "libIOFunctionObjects.so" );
because libIOFunctionObjects.so is decapredted in OpenFoam 5,6.
Also:
https://www.openfoam.com/documentati...teObjects.html


Chen
Giantsda is offline   Reply With Quote

Reply

Tags
writeregisteredobject


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
activeBaffleVelocity boundary condition ? om3ro OpenFOAM Programming & Development 10 November 16, 2020 23:26
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
Inlet patch problems martyn88 OpenFOAM Running, Solving & CFD 6 April 21, 2017 18:34
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 05:59
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35


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