CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

New residuals function type in OF 2.4.0 not known

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2015, 11:06
Default New residuals function type in OF 2.4.0 not known
  #1
New Member
 
Babis Tsimis
Join Date: May 2015
Posts: 2
Rep Power: 0
Babis is on a distinguished road
Dear all,

I just installed the OF 2.4.0 Deb packs created for Ubuntu and I wanted to check the new residuals function for a simple test case. Using the example mentioned on residuals.H in the src directory I included the following lines on my controlDict:

Code:
functions
{
    residuals
    {
        type            residuals;
        outputControl   timeStep;
        outputInterval  2;
        fields
        (
            U
            p
        );
    }
}
But then when I try to run my case, in the output it gives me the following output:

Code:
--> FOAM FATAL ERROR: 
Unknown function type residuals

Valid functions are : 

4
(
patchProbes
probes
sets
surfaces
)
Shouldn't the default list of available function types be longer than four?

The case I am testing is using the LTSReactingFoam solver and the tutorial included with that solver had the following lines in the controlDict:

Code:
libs
(
    "libOpenFOAM.so"
    "libincompressibleTurbulenceModel.so"
    "libincompressibleRASModels.so"
);
When I added for example another library to this list, "libfieldFunctionObjects.so", which I did for a couple of libraries in my effort to find which library contains the residuals function type, naturally the list of valid functions grew to 17 types.

So the first question is, are the default 4 valid functions the expected behaviour, or is there possibly a problem with the OF 2.4.0 Deb packs?

And the second question is which library from:

Code:
/opt/openfoam240/platforms/linux64GccDPOpt/lib
Contains the residuals function type, so that I can manually include it on my controDict, and is there a standard way to find out such an information in the future?

Regards,
Babis

ps. Well done to everyone involved developing OF!
Babis is offline   Reply With Quote

Old   June 11, 2015, 12:49
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

The function is in libutilityFunctionObjects.so, you can add this line to function description:

Code:
functionObjectLibs ("libutilityFunctionObjects.so");
so it will be

Code:
functions
{
    residuals
    {
        functionObjectLibs ("libutilityFunctionObjects.so");
        type            residuals;
        outputControl   timeStep;
        outputInterval  2;
        fields
        (
            U
            p
        );
    }
}
or you can load this library with libs directive (as you have done with libOpenFOAM.so).

To learn to which library function object belongs, you can go to $FOAM_SRC/postProcessing/functionObjects and look into subfolders (ex. field/Make/files contains line LIB = $(FOAM_LIBBIN)/libfieldFunctionObjects, so all function objects from field folder go to libfieldFunctionObjects.so library).
jherb and New_Old like this.
alexeym is offline   Reply With Quote

Old   June 11, 2015, 13:27
Default
  #3
New Member
 
Babis Tsimis
Join Date: May 2015
Posts: 2
Rep Power: 0
Babis is on a distinguished road
Cheers for the prompt reply Alexey!

This solved my problem, and now I can use the new foamMonitor script to plot the residuals on the go, very nice indeed!

Thanks about the library info as well, in fact I did have a quick look at:

Code:
$FOAM_SRC/postProcessing/functionObjects/utilities/Make/files
but unfortunately I didn't scroll all the way to the end, my fault!
Babis is offline   Reply With Quote

Reply

Tags
2.4.0, function object, residuals


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
Boundary Layer strange result fernexda OpenFOAM Running, Solving & CFD 14 January 15, 2015 07:21
interFoam/kOmegaSST tank filling with printStackError/Mules simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 17:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
Elements that limit the Courant number skabilan OpenFOAM Running, Solving & CFD 9 July 3, 2008 12:07


All times are GMT -4. The time now is 09:25.