butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

OAM FATAL IO ERROR: error in IOstream "Sout" for operation Ostream& operator<<(Ostream&, const char*)

Open inmagenta opened this issue 5 years ago • 3 comments

  1. Solution exception:¾ä±úÎÞЧ¡£ ¾ä±úÎÞЧ¡£ ¾ä±úÎÞЧ¡£ ¾ä±úÎÞЧ¡£ ¾ä±úÎÞЧ¡£ tee: failed to reopen 'stdout' with mode 'wb': Bad file descriptor

--> FOAM FATAL IO ERROR: error in IOstream "Sout" for operation Ostream& operator<<(Ostream&, const char*)

file: Sout at line 16.

From function virtual bool Foam::IOstream::check(const char*) const
in file db/IOstreams/IOstreams/IOstream.C at line 96.

FOAM exiting

inmagenta avatar Mar 13 '19 03:03 inmagenta

Does somebody know how to solve it?

inmagenta avatar Mar 13 '19 03:03 inmagenta

I have a similar problem when running the examplefile outdoor_airflow:

  1. Updating cell size in blockMeshDict.
  2. Updating grading in blockMeshDict.
  3. Saved changes to blockMeshDict to: C:\Users\Lukas\butterfly\outdoor_airflow\system\blockMeshDict
  4. Runtime error (PythonException): Das Handle ist ungltig. Das Handle ist ungltig. Das Handle ist ungltig. Das Handle ist ungltig. Das Handle ist ungltig. tee: failed to reopen 'stdout' with mode 'wb': Bad file descriptor

--> FOAM FATAL IO ERROR: error in IOstream "Sout" for operation Ostream& operator<<(Ostream&, const char*)

file: Sout at line 16.

From function virtual bool Foam::IOstream::check(const char*) const
in file db/IOstreams/IOstreams/IOstream.C at line 96.

FOAM exiting

Traceback: line 278, in _handle_process, "C:\Users\Lukas\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\butterfly\runmanager_bluecfd.py" line 213, in _run_ironpython, "C:\Users\Lukas\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\butterfly\runmanager_bluecfd.py" line 234, in run, "C:\Users\Lukas\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\butterfly\runmanager_bluecfd.py" line 756, in command, "C:\Users\Lukas\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\butterfly\case.py" line 788, in blockMesh, "C:\Users\Lukas\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\butterfly\case.py" line 52, in script

I'm running the german version of Rhinoceros 6.0 so the "Das Handle ist ungltig." would translate as "This handle is invalid."

I have no idea on how to solve this problem. So any help would be appreciated.

Lukas-Wuenschel avatar Mar 13 '19 15:03 Lukas-Wuenschel

Are you running windows 7?

I had the same problem, switch to win 10 and everything works.

Rhino 6 - Butterfly 0.0.5 - blueCFD-Core 2017-2

paolocavagnolo avatar Mar 21 '19 14:03 paolocavagnolo