|
[Sponsors] |
December 9, 2019, 12:41 |
OpenFoam IOStream Error
|
#1 |
Senior Member
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6 |
Hi everyone,
I'm trying to implement at the Inlet a turbulent flow using ''turbulentDFSEMInlet'' along with text file for the velocity(points, U). The text file ''points'' is located in the directory /constant/boundaryData/inlet/points and the velocity file ''U'' in the directory /constant/boundaryData/inlet/0/U. You can see both files in attachment. The file ''U'' located in the directory /0/U has the following string for the Inlet: Inlet { type turbulentDFSEMInlet; delta 0.075; value uniform (0 0 0); R uniform (3.5 -3.00E-01 2.07E-02 1.24E-01 3.4E-04 0.7); L uniform 0; nCellPerEddy 3; mapMethod nearestCell; } Unfortunately, I got an error message as follow: --> FOAM FATAL IO ERROR: error in IOstream "" for operation Foam::Istream& Foam:: operator>>(Foam::Istream&, Foam::List<T>&) [with T = Foam::Vector<double>] file: at line 1. From function void Foam::IOstream::fatalCheck(const char*) const in file db/IOstreams/IOstreams/IOstream.C at line 69. FOAM exiting Is anybody here has a clue what could be the issue and how I could troubleshoot / fix this? I thought that could be a memory issue, text files format or digit precision? Thank you very much for your help! Best Regards, Tibo99 |
|
December 11, 2019, 09:20 |
|
#2 |
Senior Member
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6 |
I finally found the issue.
The structure of the text files ''points'' and ''U'' was fine. My only mistake was that the folder ''inlet'' was not matching the exact patch name ''Inlet''. The letter ''I'' in the folder name wasn't in cap. Everything work fine now! Thank for reading! Regards, Tibo99 |
|
August 18, 2021, 01:56 |
|
#3 |
New Member
ashutosh
Join Date: Aug 2018
Posts: 1
Rep Power: 0 |
Hi Thibault,
I am facing the following error: --> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 2 the punctuation token '(' file: /home/ashutosh/openFOAM7/run/backward_facing_step/DES_new/SADES_DFSEM_of7/constant/boundaryData/inlet/0/U at line 2. From function Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::doubleScalar&) in file lnInclude/Scalar.C at line 101. FOAM exiting While starting the run, I found the above error. I fixed each files as you have structured. Please help me. Thank You |
|
April 1, 2022, 10:18 |
|
#4 | |
New Member
Join Date: Jul 2017
Posts: 14
Rep Power: 8 |
Quote:
Did you solve your problem? I faced with such error too! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
long error when using make-install SU2_AD. | tomp1993 | SU2 Installation | 3 | March 17, 2018 06:25 |
Pressure outlet boundary condition | rolando | OpenFOAM Running, Solving & CFD | 62 | September 18, 2017 06:45 |
Mesquite - Adaptive mesh refinement / coarsening? | philippose | OpenFOAM Running, Solving & CFD | 94 | January 27, 2016 09:40 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 17:38 |