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

Help please, can not fix error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2022, 00:57
Unhappy Help please, can not fix error
  #1
New Member
 
melih
Join Date: Nov 2022
Posts: 1
Rep Power: 0
myandrei is on a distinguished road
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);

    }

}

// ************************************************************************* //
myandrei is offline   Reply With Quote

Old   November 15, 2022, 03:23
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,070
Rep Power: 26
Yann will become famous soon enough
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. (How to give enough info to get help)

Regards,
Yann
Yann 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
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 13:46
Pressure outlet boundary condition rolando OpenFOAM Running, Solving & CFD 62 September 18, 2017 06:45
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30


All times are GMT -4. The time now is 02:46.