|
[Sponsors] |
January 23, 2014, 09:07 |
Problem starting OpenFoam 2.2.2.
|
#1 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
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? |
|
January 23, 2014, 09:37 |
|
#2 |
Senior Member
|
Hi,
Actually it tries to find case files. I guess you're trying just run icoFoam in $FOAM_RUN folder, while you need to run it in case folder. |
|
January 23, 2014, 09:45 |
|
#3 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
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 ? |
|
January 23, 2014, 09:49 |
|
#4 |
Senior Member
|
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' |
|
January 23, 2014, 09:51 |
|
#5 |
Senior Member
|
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?
Last edited by alexeym; January 23, 2014 at 09:51. Reason: typo |
|
January 23, 2014, 09:56 |
|
#6 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
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? |
|
January 23, 2014, 09:59 |
|
#7 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
||
January 23, 2014, 10:05 |
|
#8 |
Senior Member
|
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? |
|
January 23, 2014, 10:11 |
|
#9 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
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? |
|
January 23, 2014, 10:15 |
|
#10 |
Senior Member
|
Maybe. Just try:
Code:
$ cd $FOAM_RUN $ cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity . $ cd cavity $ blockMesh $ icoFoam Last edited by alexeym; January 23, 2014 at 10:23. Reason: forgot -r flag |
|
January 23, 2014, 10:22 |
|
#11 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
when i try to cp the cavity directory it just says it's ommitting the cavity directory, not allowing the cp.
|
|
January 23, 2014, 10:24 |
|
#12 |
Senior Member
|
I forgot -r flag for cp, it should be
Code:
$ cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity . |
|
January 23, 2014, 10:40 |
|
#13 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
Yea it seems to run when going at a case.
Thank you very much for your help. |
|
January 24, 2014, 02:01 |
|
#14 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22 |
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. |
|
January 24, 2014, 06:12 |
|
#15 |
New Member
Marcus
Join Date: Jan 2014
Posts: 8
Rep Power: 12 |
Thank you, but I uninstalled the old version, why would you want two versions anyway ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation problem: openfoam 2.1.0 on opensuse 11.4 | raphael7 | OpenFOAM Installation | 4 | April 12, 2012 07:10 |
Problem when installing Openfoam 2.0.x with mac | giovaniharyadi | OpenFOAM Installation | 0 | March 24, 2012 18:45 |
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox | Stubby | OpenFOAM Installation | 8 | March 5, 2012 15:12 |
Problem with mpirun with OpenFOAM | jiejie | OpenFOAM | 3 | July 7, 2010 19:30 |
OpenFOAM 1.6 CreatePatch Problem | TarifaPirata | OpenFOAM Bugs | 1 | September 10, 2009 04:35 |