CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   can not run multiRegionHeater fluently (http://www.cfd-online.com/Forums/openfoam/104543-can-not-run-multiregionheater-fluently.html)

bryant_k July 11, 2012 21:16

can not run multiRegionHeater fluently
 
Hi everyone
I am trying to run the case multiRegionHeater in OpenFOAM-1.6-ext.I run the case according the 'Allrun' file.But It seems that it's not easy as it write there.I meet many kind s of problems.For instance,when I run the commond:
Code:

changeDictionary -region heater
there come an error:
Code:

Replacing entries in dictionary K
Loading dictionary K


--> FOAM FATAL IO ERROR:
cannot open file

file: /home/bryant/multiRegionHeater/0.001/heater/K at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 62.

FOAM exiting

and then I change the file 'k' to 'K'.The error above has disappeared,but occurred other errors.

Can anybody tell me how to run it fluently?

Thank you very much!

bryant

mturcios777 July 12, 2012 11:56

Hi Bryant,

Just based on your "age" on this forum, you are still getting used to the OpenFOAM way of doing things. Here is a little guidance: IO errors are simply when the solver/utility can't find a file or entry that it needs to proceed. These are usually the easiest to fix (like you just did by providing the missing file), so try and get as many of these sorted as you can (have a look at the tutorial case and make sure you have all the files and entries). That way we get to the more serious runtime errors that occur whe, theren your simulation doesn't behave properly.

For changeDictionary in particular, have a look in system/changeDictionary and you will see what files it makes changes to (and hence requires).

Long story short: don't be too afraid of IO errors.

Ahmed Khattab July 14, 2012 17:44

Quote:

Originally Posted by bryant_k (Post 370933)
Hi everyone
I am trying to run the case multiRegionHeater in OpenFOAM-1.6-ext.I run the case according the 'Allrun' file.But It seems that it's not easy as it write there.I meet many kind s of problems.For instance,when I run the commond:
Code:

changeDictionary -region heater
there come an error:
Code:

Replacing entries in dictionary K
Loading dictionary K


--> FOAM FATAL IO ERROR:
cannot open file

file: /home/bryant/multiRegionHeater/0.001/heater/K at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 62.

FOAM exiting

and then I change the file 'k' to 'K'.The error above has disappeared,but occurred other errors.

Can anybody tell me how to run it fluently?

Thank you very much!

bryant

Hi bryant,

first switch directory for case directory
cd . /home/bryant/tutorials/multiRegionHeater/

then write this command
./Allrun

you don't have to write every command yourself if i understood your attempts right.

please try this steps and feed back. if these steps are what you did, please post the second error appeared to you.

Good Luck and happy foaming :)

bryant_k August 2, 2012 22:45

Thank you very much!
I have solve the problem。

regards!

bryant!

Quote:

Originally Posted by rebel ahmed (Post 371466)
Hi bryant,

first switch directory for case directory
cd . /home/bryant/tutorials/multiRegionHeater/

then write this command
./Allrun

you don't have to write every command yourself if i understood your attempts right.

please try this steps and feed back. if these steps are what you did, please post the second error appeared to you.

Good Luck and happy foaming :)


Ahmed Khattab August 5, 2012 09:35

you are welcome.


All times are GMT -4. The time now is 15:24.