|
[Sponsors] |
February 13, 2017, 10:37 |
sampleDict error
|
#1 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
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" Code:
type asdf; 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 ) Code:
type probes; 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. Code:
type surfaces; 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 "" Best regards and thank you in advance, Kate Eisenhower |
|
April 4, 2017, 10:59 |
|
#2 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9 |
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 |
|
August 9, 2017, 09:15 |
|
#3 |
Member
Join Date: Sep 2016
Posts: 63
Rep Power: 10 |
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 |
|
October 17, 2018, 04:19 |
|
#4 | |
New Member
Christian Jähnel
Join Date: Nov 2016
Posts: 11
Rep Power: 10 |
Quote:
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! |
||
October 18, 2021, 11:56 |
Any solutions to this?
|
#5 |
New Member
Jarlath
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
I am having the same problem.
Any insights? Actually, I can run the surface sample while running openFoam, but not afterwards with postProcess. |
|
October 18, 2021, 14:39 |
Fixed it
|
#6 |
New Member
Jarlath
Join Date: Apr 2018
Posts: 12
Rep Power: 8 |
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. |
|
June 18, 2024, 03:36 |
|
#7 |
New Member
Shashank Shekhar Sandilya
Join Date: Sep 2022
Posts: 5
Rep Power: 4 |
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 |
|
June 18, 2024, 04:17 |
|
#8 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,208
Rep Power: 28 |
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. |
|
|
|
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 |