ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.

Home Page:http://ladybug-tools.github.io/butterfly.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

inmagenta opened this issue · 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

Does somebody know how to solve it?

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.

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