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

OpenFoam IOStream Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2019, 12:41
Default OpenFoam IOStream Error
  #1
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6
Tibo99 is on a distinguished road
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
Attached Files
File Type: txt points.txt (183.1 KB, 18 views)
File Type: txt U.txt (183.1 KB, 13 views)
Tibo99 is offline   Reply With Quote

Old   December 11, 2019, 09:20
Default
  #2
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6
Tibo99 is on a distinguished road
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
Tibo99 is offline   Reply With Quote

Old   August 18, 2021, 01:56
Default
  #3
New Member
 
ashutosh
Join Date: Aug 2018
Posts: 1
Rep Power: 0
ashu010595 is on a distinguished road
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
ashu010595 is offline   Reply With Quote

Old   April 1, 2022, 10:18
Default
  #4
New Member
 
Join Date: Jul 2017
Posts: 14
Rep Power: 8
kooki_13 is on a distinguished road
Quote:
Originally Posted by ashu010595 View Post
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
Hi


Did you solve your problem?
I faced with such error too!
kooki_13 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
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


All times are GMT -4. The time now is 23:39.