Problem starting OpenFoam 2.2.2.
I had an old version of OF on Ubuntu and guess i moved something around because i couldn't start it. So I simply removed the OpenFoam folder in the Home directory and reinstalled the new version 2.2.2. The old version was 2.1.0,
But trying to open using icoFoam i get the following: --> FOAM FATAL IO ERROR: cannot find file file: /home/marcus/OpenFOAM/marcus-2.1.0/run/system/controlDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. So it tries to open the old version of openfoam ? I followed these instructions when installing, both times. http://www.openfoam.org/download/ubuntu.php Any ideas? |
Hi,
Quote:
|
Thank you.
It seems I have two versions of OF installed now, looking in the /opt directory. What is the best way to get rid of the old version ? |
If you installed old version with a package manager, you can use the package manager to uninstall it.
Guess on Ubuntu it should be something like 'dpkg -r openfoam211' |
Though it seems that you're still using old version (2.1.0). Are you sure, you've corrected shell initialization file to source bashrc of new version?
|
Thank you for your help.
I removed the 2.1.0. version but when I try the "mkdir -p $FOAM_RUN " command it still makes a folder with 2-1-0 in it, why is $FOAM_RUN still connected to the old version number? Same problem with icoFoam command, it also looks for the old version folders? |
Quote:
|
Did you remove source /opt/openfoam210/etc/bashrc line?
As there can be lots of reasons (from you're still using old shell session with old environment variables), we'll spend much time guessing what has really happened. Can you describe the way you've made upgrade? Can you show relevant parts of your .bash_profile? |
You said old shell sessions so I tried just restarting the terminal. And now it's updated to the 2-2-2 version.
The only thing is when I just type icoFoam and I get an error about it not finding something in a directory where I originally moved the 2.1.0. version to, which was the whole error from the start. Maybe this isn't even an issue when I got a real case running, working in that case folder? |
Maybe. Just try:
Code:
$ cd $FOAM_RUN |
when i try to cp the cavity directory it just says it's ommitting the cavity directory, not allowing the cp.
|
I forgot -r flag for cp, it should be
Code:
$ cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity . |
Yea it seems to run when going at a case.
Thank you very much for your help. |
If you have multiple versions of openfoam installed then it is advisable to have alias for each version and then 'activate' version before running the simulation.
alias is a short name that you use for a command. Its like a hyperlink in windows. You can go through this link (http://openfoamwiki.net/index.php/In...M-2.2.2/Ubuntu) for installing openfoam and this link (http://openfoamwiki.net/index.php/In...nFOAM_versions) for alias. Once you have made the alias (e.g. of222 for openfoam 2.2.2 and of22x for openfoam 2.2.x) then you can activate any version by of222+enter or of22x+enter. |
Thank you, but I uninstalled the old version, why would you want two versions anyway ?
|
All times are GMT -4. The time now is 07:38. |