CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] cannot open file controlDict (https://www.cfd-online.com/Forums/openfoam-meshing/71474-cannot-open-file-controldict.html)

thorou January 4, 2010 10:22

cannot open file controlDict
 
Hello,
I am a new user of Open foam and blockmesh. I tried to do the first tutorial : cavity.
When I want to generate the mesh I have this message :
cannot open file

file: /home/caelinux/Bureau/TEST_OF/cavity/constant/polyMesh/system/controlDict
at line 0.
From function regI0object::readStream(const word&)
in file db/regI0object/regI0objectRead.C at line 66.
FOAM exiting
I made an installation on USB-hard drive , it is possible that it is the origin of the error ?

Sincerely

Thomas

ericnutsch January 5, 2010 15:40

Yes, it is likely that the usb install is the root of your error.

Openfoam is trying to find the controlDict at its typical location on the hard drive. Two possible solutions here:

1. Simply copy the entire tutorials directory to the hard drive in the location it is looking for it (directory structure should be quite similar). This will probably be the easiest, but might not work in certian cases.

2. Make sure your bashrc knows the where open foam is at. Read part 3 at this link: http://www.opencfd.co.uk/openfoam/doc/README.html

I have used openfoam directly, so I am not certain if cea handles stuff differently or not.

Good Luck!

amgode January 7, 2010 01:24

Just take a look at the location where the controlDict is being searched....

file: /home/caelinux/Bureau/TEST_OF/cavity/constant/polyMesh/system/controlDict
at line 0.


I would say you might get some results if you fire the application from the case directory and not the constant polyMesh directory...........

Hope this helps !!!!!!!!!!!!:)


-- Amol


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