CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Cannot find functionObject file residuals (https://www.cfd-online.com/Forums/openfoam-pre-processing/231685-cannot-find-functionobject-file-residuals.html)

vava10 November 14, 2020 08:26

Cannot find functionObject file residuals
 
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:confused:. 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

Bloerb November 14, 2020 11:31

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.

olesen November 14, 2020 12:21

Quote:

Originally Posted by vava10 (Post 787747)
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:confused:. 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.


All times are GMT -4. The time now is 18:24.