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

Cannot find functionObject file residuals

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By vava10
  • 2 Post By Bloerb
  • 4 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2020, 08:26
Exclamation Cannot find functionObject file residuals
  #1
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5
vava10 is on a distinguished road
Hey,

I am using openFoam-v2006
I am trying to simulate the https://holzmann-cfd.com/community/t.../suzannes-head for learning OpenFOAM. I followed the training videos and produced the geometry and files myself.
When I ran the decomposePar command I got the following error

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _b45f8f6f58-20200629 OPENFOAM=2006
Arch   : "LSB;label=32;scalar=64"
Exec   : decomposePar
Date   : Nov 14 2020
Time   : 14:06:13
Host   : LAPTOP-BKEON11O
PID    : 530
I/O    : uncollated
Case   : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/susan
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals


Decomposing mesh region0

Create mesh

Calculating distribution of cells
Selecting decompositionMethod simple [4]

Finished decomposition in 0.01 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals

Processor 0
    Number of cells = 6163
    Number of faces shared with processor 1 = 455
    Number of faces shared with processor 2 = 275
    Number of processor patches = 2
    Number of processor faces = 730
    Number of boundary faces = 1356
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals

Processor 1
    Number of cells = 6510
    Number of faces shared with processor 0 = 455
    Number of faces shared with processor 2 = 1
    Number of faces shared with processor 3 = 275
    Number of processor patches = 3
    Number of processor faces = 731
    Number of boundary faces = 1403
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals

Processor 2
    Number of cells = 6510
    Number of faces shared with processor 0 = 275
    Number of faces shared with processor 1 = 1
    Number of faces shared with processor 3 = 455
    Number of processor patches = 3
    Number of processor faces = 731
    Number of boundary faces = 1403
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals

Processor 3
    Number of cells = 6163
    Number of faces shared with processor 1 = 275
    Number of faces shared with processor 2 = 455
    Number of processor patches = 2
    Number of processor faces = 730
    Number of boundary faces = 1356

Number of processor faces = 1461
Max number of cells = 6510 (2.7381% above average 6336.5)
Max number of processor patches = 3 (20% above average 2.5)
Max number of faces between processors = 731 (0.0684463% above average 730.5)

Time = 0

Processor 0: field transfer
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals
Processor 1: field transfer
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals
Processor 2: field transfer
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals
Processor 3: field transfer
--> FOAM Warning :
    From static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<Foam::wordRe>&, const Foam::word&)
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 287
    Cannot find functionObject file residuals

End
I use the same files as in the link provided.
I did not understand the error and so I don't know what I am supposed to do. But what I can guess this error must have something to do with the following part in the controlDict ( I could be wrong. Its just my guess)

Code:
#includeFunc residuals

    forces
    {
        type            forceCoeffs;
        libs            ("libforces.so");
        writeControl    adjustableRunTime;
        writeInterval   0.01;

        patches
        (
            monkey
            monkeyBack
        );

        log         true;
        rho         rhoInf;
        rhoInf      1;
        CofR        (0 0 0);
        liftDir     (0 0 1);
        dragDir     (0 1 0);
        pitchAxis   (1 0 0);
        magUInf     0.02;
        lRef        4*0.02562 / 0.804201;
        Aref        0.02562;
Hope someone can help me resolve it.
Thank you in advance

Kind regards
vava10
sourav90 likes this.
vava10 is offline   Reply With Quote

Old   November 14, 2020, 11:31
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
As the errror message states it can't find a function object file residuals. Most OpenFOAM solvers or preprocessing tools can run functionObjects. These are always added in the controlDict.



Function objects can be specified in a long format, like the forces function object you have listed. Or like this

Code:
#includeFunc residuals
This is an abbreviation and checks for a config file residuals.cfg in the following folder

OpenFOAM-v2006/etc/caseDicts/postProcessing/
There are also examples in there on how to specify these in a longer format. The short answer is hence that residuals was renamed solverInfo as it's functionally was expanded. The residuals function object no longer exists. And hence the includeFunc command can't find it.
Mars409 and vava10 like this.
Bloerb is offline   Reply With Quote

Old   November 14, 2020, 12:21
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by vava10 View Post
Hey,
I am using openFoam-v2006
...
I use the same files as in the link provided.
I did not understand the error and so I don't know what I am supposed to do. But ...
Code:
#includeFunc residuals
...
The functionObject used to be called "residuals", but is now called "solverInfo" since it does more than just residuals. Change that and you should be good to go.
sourav90, Mars409, vava10 and 1 others like this.
olesen 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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


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