CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Help please, can not fix error (https://www.cfd-online.com/Forums/openfoam/246135-help-please-can-not-fix-error.html)

myandrei November 15, 2022 00:57

Help please, can not fix error
 
Hello all,
I have a question about one of jet flow simulation in OpenFoam.
I try to run the Jet flow work but when I run the code, I get an error. please Can you help me?
Thank you so much
The error: (I remark the line 56 in the error)

--> FOAM FATAL IO ERROR:
Essential value for keyword 'field' not set
In function entry:
scalarTransport

In file:
/home/mhy/Desktop/OpenFoam/OpenFOAM-Cases-Interfluo-main/Canonical-Flows/jet/case1/system/controlDict at line 56

The function entry should be:
scalarTransport(field = <fieldName>)

file: /home/mhy/Desktop/OpenFoam/OpenFOAM-Cases-Interfluo-main/Canonical-Flows/jet/case1/system/controlDict/functions/scalarTransport from line 19 to line 27.

From function static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, const Foam::Pair<Foam::string>&, const Foam::word&)

in file db/functionObjects/functionObjectList/functionObjectList.C at line 416.

FOAM exiting

Code:

FoamFile

{

    version    2.0;

    format      ascii;

    class      dictionary;

    location    "system";

    object      controlDict;

}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



application    pimpleFoam;



startFrom      latestTime;



startTime      0;



stopAt          endTime;



endTime        10;



deltaT          0.000001;



writeControl    adjustable;



writeInterval  0.1;

in

purgeWrite      0;



writeFormat    ascii;



writePrecision  6;



writeCompression off;



timeFormat      general;



timePrecision  6;



runTimeModifiable yes;



adjustTimeStep  yes;



maxCo          1;



functions

{

        #includeFunc scalarTransport

       

(line56)    wallShearStress

    {

        type            wallShearStress;

        libs            (fieldFunctionObjects);

        writeControl    writeTime;

        patches        (wall);

    }

}

// ************************************************************************* //


Yann November 15, 2022 03:23

Hi,

The error message informs you there is an issue with scalarTransport function which is included just before line 56:

Code:

#includeFunc scalarTransport
It also tells you what you should do:
Code:

The function entry should be:
scalarTransport(field = <fieldName>)

If you did not intend to use this function in the first place, just remove it from your controlDict.

Also, please be careful to give a proper title when you create a new thread. (https://www.cfd-online.com/Forums/op...-get-help.html)

Regards,
Yann


All times are GMT -4. The time now is 12:10.