|
[Sponsors] |
Error openfoam : Expected a ')' or a '}' while reading List |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 21, 2022, 12:36 |
Error openfoam : Expected a ')' or a '}' while reading List
|
#1 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
Hi Foamers,
I have this following error when I try to launch a simulation : Code:
[0] [0] [0] --> FOAM FATAL IO ERROR: (openfoam-2012)[2] [3] [3] [3] --> FOAM FATAL IO ERROR: (openfoam-2012) [3] Expected a ')' or a '}' while reading List, found on line 0: word 'patchWall_Bottom' at stream position 0 [4] [4] [4] --> FOAM FATAL IO ERROR: (openfoam-2012) [4] Expected a ')' or a '}' while reading List, found on line 0: word 'patchWall_Bottom' at stream position 0 [4] [4] [5] [5] [5] --> FOAM FATAL IO ERROR: (openfoam-2012) [5] Expected a ')' or a '}' while reading List, found on line 0: word 'patchWall_Bottom' at stream position 0 [5] [5] [5] From char Foam::Istream::readEndList(const char*) [5] in file db/IOstreams/IOstreams/Istream.C at line 174. [0] Expected a ')' or a '}' while reading List, found on line 224: word 'patchWall_Bottom' at stream position 0 [0] [0] [0] From char Foam::Istream::readEndList(const char*) [0] in file db/IOstreams/IOstreams/Istream.C at line 174. [0] FOAM parallel run exiting [0] [3] [3] [3] From char Foam::Istream::readEndList(const char*) [3] in file db/IOstreams/IOstreams/Istream.C at line 174. [3] FOAM parallel run exiting [3] [4] From char Foam::Istream::readEndList(const char*) [4] in file db/IOstreams/IOstreams/Istream.C at line 174. [4] FOAM parallel run exiting [4] [5] FOAM parallel run exiting [5] [1] [1] [1] --> FOAM FATAL IO ERROR: (openfoam-2012) [1] Expected a ')' or a '}' while reading List, found on line 0: word 'patchWall_Bottom' at stream position 0 [1] [1] [1] From char Foam::Istream::readEndList(const char*) [1] in file db/IOstreams/IOstreams/Istream.C at line 174. [1] FOAM parallel run exiting [1] [2] [2] --> FOAM FATAL IO ERROR: (openfoam-2012) [2] Expected a ')' or a '}' while reading List, found on line 0: word 'patchWall_Bottom' at stream position 0 [2] [2] [2] From char Foam::Istream::readEndList(const char*) [2] in file db/IOstreams/IOstreams/Istream.C at line 174. [2] FOAM parallel run exiting [2] [muse104.cluster:154529] 4 more processes have sent help message help-mpi-api.txt / mpi-abort [muse104.cluster:154529] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages real 0m1.014s user 0m0.025s sys 0m0.050s patchWall_Bottom is a patch I created in topoSet and createPatchDict, I changed it from patch to wall in the polyMesh/boundary. Does anyone have an idea ? thanks!! |
|
August 22, 2022, 07:18 |
Solved
|
#2 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
The error was in controlDict in line patches :
Code:
gaugesP { type sets; libs ("libsampling.so"); writeControl timeStep; writeInterval 1; setFormat raw; surfaceFormat raw; interpolationScheme cellPointFace; fields ( p U ); sets ( GaugesP { type patchCloud; axis xyz; patches 1(mur_couronnement patchWall_Bottom patchWall_Front); points ( (221.5 0.5 31.4) (221.5 0.5 33.1) (221.5 0.5 34.8) (221.5 0.5 36) (222.5 0.5 30.692) (225 0.5 30.692) (227.5 0.5 30.692) ); maxDistance 0.01; } ); } I removed the 1 before the parenthesis and now it works! Btw what is the functionnality of adding a number before a parenthesis ? Cheers, |
|
August 23, 2022, 06:33 |
|
#3 |
Senior Member
|
Hi,
As far as I know that number just indicates the length of a list to expect. Your list contained 3 entries:
But you told OpenFOAM the length of the list is 1. So after reading the first entry it expected a closing bracket, but it did not find one, so the solver exited with an error. This is probably related to memory allocation at some level but I have to admit that is me guessing beyond the limits of my knowledge. Hope this helps. Cheers, Tom |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
Postprocess: sampleDict works but creates no output folder | shock77 | OpenFOAM Post-Processing | 14 | November 15, 2021 09:27 |
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? | EternalSeekerX | SU2 | 3 | October 9, 2020 19:28 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |