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

sampleDict error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 10:37
Default sampleDict error
  #1
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Dear OpenFOAM users,

I am running 4.0 and have a problem with the sampleDict file:

Step 1: I start with an empty sampleDict file:
Of course OF yields an error message:

Code:
--> FOAM FATAL IO ERROR: 
keyword type is undefined in dictionary ".functions.sampleDict"
Step 2: My sampleDict file now looks like this:

Code:
type asdf;
Now it runs and as expected I get the following error message for every timestep:

Code:
--> FOAM Warning : 
    From function bool Foam::dictionary::add(Foam::entry*, bool)
    in file db/dictionary/dictionary.C at line 807
    Reading "" from line 18 to line 18
    attempt to add entry functions which already exists in dictionary ""
--> FOAM Warning : 
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 644
    Caught FatalError 
--> FOAM FATAL ERROR: 
Unknown function type asdf

Valid functions are : 

8
(
forceCoeffs
forces
patchProbes
probes
psiReactionThermoMoleFractions
rhoReactionThermoMoleFractions
sets
surfaces
)
Step 3: No my sampleDict file looks like this:

Code:
type probes;
As expected, I get the following:

Code:
--> FOAM FATAL IO ERROR: 
keyword probeLocations is undefined in dictionary ".functions.sampleDict"

file: .functions.sampleDict from line 18 to line 18.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 441.
Step 4: Now it gets interesting. My sampleDict looks like this:

Code:
type surfaces;
I get the following error for every timestep:

Code:
--> FOAM Warning : 
    From function bool Foam::dictionary::add(Foam::entry*, bool)
    in file db/dictionary/dictionary.C at line 807
    Reading "" from line 18 to line 18
    attempt to add entry functions which already exists in dictionary ""
Can someone explain this? Why don't I get a similar error as in step 3?

Best regards and thank you in advance,

Kate Eisenhower
KateEisenhower is offline   Reply With Quote

Old   April 4, 2017, 10:59
Default
  #2
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9
Joshua14 is on a distinguished road
KateEisenhower,

I am not sure how sampleDict works, but I would recommend using the surfaces function object. It will let you right planes, patches, or isosurfaces at time steps independent or at write times with little difficulty.

Joshua
Joshua14 is offline   Reply With Quote

Old   August 9, 2017, 09:15
Default
  #3
Member
 
Join Date: Sep 2016
Posts: 63
Rep Power: 10
sitajeje is on a distinguished road
Hallo Kate,

Have you solved your problem? I have the same problem as you described. I copied the "probes" file into "system" folder as the user guide described, and add functions {#includeFunc probes} into "controlDict". After I ran the postProcess -func probes, I saw the same warning message as you described. One "postProcessing/probes" folder was created. However the data was not saved in one single file, but different time folders were created, where the "U" file with one single data for the corresponding time was saved.

I ran also pimpleDyMFoam -postProcess, but nothing happened, the #includeFunc seemed to be absent.

I continued to run the case with "probes" and it functioned as described in the user guide: only one "U" file was created with all time and value listed.

I would appreciate if you have some suggestions for me. Thank you very much in advance!

Best regards,

sitajeje
sitajeje is offline   Reply With Quote

Old   October 17, 2018, 04:19
Default
  #4
New Member
 
Christian Jähnel
Join Date: Nov 2016
Posts: 11
Rep Power: 10
ch_jaehnel is on a distinguished road
Quote:
Originally Posted by sitajeje View Post
Hallo Kate,

Have you solved your problem? I have the same problem as you described. I copied the "probes" file into "system" folder as the user guide described, and add functions {#includeFunc probes} into "controlDict". After I ran the postProcess -func probes, I saw the same warning message as you described. One "postProcessing/probes" folder was created. However the data was not saved in one single file, but different time folders were created, where the "U" file with one single data for the corresponding time was saved.

I ran also pimpleDyMFoam -postProcess, but nothing happened, the #includeFunc seemed to be absent.

I continued to run the case with "probes" and it functioned as described in the user guide: only one "U" file was created with all time and value listed.

I would appreciate if you have some suggestions for me. Thank you very much in advance!

Best regards,

sitajeje

Did you find any solution for this? I have no clue, what this error could say to me:


Code:
--> FOAM Warning :
    From function bool Foam::dictionary::add(Foam::entry *, bool)
    in file db/dictionary/dictionary.C at line 884
    Reading "" from line 19 to line 41
    attempt to add entry functions which already exists in dictionary ""

I already found out, that it only shows up for time directories with a "uniform" directory in it. It's strange that some directories have it and some not... Any help is appreciated!



I want to use it for a interDyMFoam simulation in OF5.0.


Thank you!
ch_jaehnel is offline   Reply With Quote

Old   October 18, 2021, 11:56
Default Any solutions to this?
  #5
New Member
 
Jarlath
Join Date: Apr 2018
Posts: 12
Rep Power: 8
JMcnetee is on a distinguished road
I am having the same problem.

Any insights?

Actually, I can run the surface sample while running openFoam, but not afterwards with postProcess.
JMcnetee is offline   Reply With Quote

Old   October 18, 2021, 14:39
Default Fixed it
  #6
New Member
 
Jarlath
Join Date: Apr 2018
Posts: 12
Rep Power: 8
JMcnetee is on a distinguished road
I think I fixed the problem.

It may be the case that the dictionary file itself needs to be named "surfaces" for the postProcess to work.

seems like a bug, but it works.
JMcnetee is offline   Reply With Quote

Old   June 18, 2024, 03:36
Default
  #7
New Member
 
Shashank Shekhar Sandilya
Join Date: Sep 2022
Posts: 5
Rep Power: 4
sss.nitp is on a distinguished road
I am also facing Same problem. Please suggest, how to remove that.

keyword flowRate is undefined in dictionary "/home/sss/OpenFOAM/sss-10/run/weirOverflow/0/U/boundaryField/outlet"

file: /home/sss/OpenFOAM/sss-10/run/weirOverflow/0/U/boundaryField/outlet from line 35 to line 40.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 831.

FOAM exiting
sss.nitp is offline   Reply With Quote

Old   June 18, 2024, 04:17
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,208
Rep Power: 28
Yann will become famous soon enough
Hello,

Code:
keyword flowRate is undefined in dictionary "/home/sss/OpenFOAM/sss-10/run/weirOverflow/0/U/boundaryField/outlet"

file: /home/sss/OpenFOAM/sss-10/run/weirOverflow/0/U/boundaryField/outlet from line 35 to line 40.
The solver expects a flowRate parameter for the velocity boundary condition on the outlet patch. So you need to define one, or change the boundary condition.
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.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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