OpenFOAM-dev-1.5 from CAE Team PPA
Hi everybody.
Today I tried to install OF-dev-1.5 from CAE Team PPA and I followed the openfoamwiki instructions. Something went wrong because when I launch OFdev (this is my alias) I obtain:· Code:
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory Thanks for your attention. Regards, Maurizio |
Any idea? :(
|
Hi Maurizio,
I haven't tried to replicate your steps, but it seems pretty simple. In the wiki link you posted, it talks about: Code:
alias startOF15dev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc" Code:
foamInstall=/usr/lib Code:
gksu gedit /usr/lib/OpenFOAM-1.5-dev/etc/bashrc In case it already has the proper folder path, then it's another OpenFOAM environment that has been started prior to the alias call you do, because OpenFOAM's "bashrc" script will use the previously defined variable, rather than overwriting the value. In other words, make sure all OpenFOAM environments are made only via alias; also make sure that you start a new terminal before calling the desired alias. Best regards, Bruno |
Thank you very much, Bruno.
I checked /usr/lib/OpenFOAM-1.5-dev/etc/bashrc and the variable foamInstall is defined properly. Then I sourced OpenFOAM-1.5-dev and it worked. What happened? In the meantime I already created an alias for OpenFOAM-1.7 (I installed it before OpenFOAM-1.5-dev and I didn't use alias): Code:
# OpenFOAM 1.7 Now I have another trivial question about my OpenFOAM-1.5-dev installation. I have an OpenFOAM folder in home and it contains 2 folders: OpenFOAM-1.7.1 (with subdirectory run) and OpenFOAM-1.5-dev (with subdirectories application/bin and lib). I think that's a mistake (maybe I created them when sourcing was wrong), so I'm going to delete all OpenFOAM-1.5-dev subdirectories and make only one new folder run. Am I correct? |
Hi Maurizio,
Quote:
There is a slight possibility that you might have a custom installation designed to make things easier for users to modify OpenFOAM code... but I doubt this is the situation. Best regards, Bruno |
Hi, Bruno. Thanks for your explanations. I installed OpenFOAM-1.5-dev (from CAE Team PPA) in another computer - it already included OpenFOAM-1.7.1. I correctly sourced both versions of OpenFOAM, I didn't mess anything up. I see again the two subdirectories $HOME/OpenFOAM/OpenFOAM-1.5-dev/applications/bin and $HOME/OpenFOAM/OpenFOAM-1.5-dev/lib and they are empty, so I agree with you:
Quote:
Thanks for your help :) |
Hi Maurizio!
I have the same problem as you, however I lost track at post #4. I added both aliases (OF15dev and OF17 - installed previously, worked ok) to .bashrc and reloaded it. But I still got the same response: Code:
$ OF15dev Btw, I still have only previously existing ~/OpenFOAM/...-1.7.1/ directory. Best regards, Aljaz |
Hi!
Just a short note from me: I checked http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html about OpenFOAM-dev-1.5 installation and there's a note "Note that the aliases will not work with this installation." Any comments on this one? Best regards, Aljaz |
Greetings Aljaz,
Quote:
I believe the problem you are having is the same that Maurizio had at first - there is still a line lying around in the "~/.bashrc" with something just like this: Code:
. /opt/openfoam171/etc/bashrc Then, you need to start a new terminal or console window/tab for the environment to be properly clean and devoid of remnants of previous OpenFOAM definitions. To be sure that the environment is clean, try this: Code:
export | grep -i -e "foam" Best regards, Bruno |
Thanks,
There was indeed such line that I overlooked before. Commenting solved the problem. Best regards! |
Adding one more ...
Hi!
I was interested if the same procedure worked for OF1.6-ext so I tried to install it too. This time it seemed all went smoothly, however at the end after calling alias of16ext, no directory for 1.6-ext has been created. I created it manually, then I tried some tutorials and they worked fine. With best regards, Aljaz |
Dear Bruno (I hope you'll read this thread),
I'm sorry to annoy you again about the same, old problems. I just downloaded openFOAM 1.5-dev and 1.6-ext from CAE Team PPA and (automatically) installed all packages in /usr/lib64. Then I edited ~/.bashrc Code:
alias OF15dev="source /usr/lib64/OpenFOAM-1.5-dev/etc/bashrc" Code:
foamInstall=/usr/lib64 When I launch the foamInstallationTest script in /usr/lib64/OpenFOAM-1.5-dev/bin, I get the following error Code:
FATAL ERROR: OpenFOAM environment not configured. UPDATE Anyway, if anyone can suggests alternative ways to easily download and install an OpenFOAM 1.5-dev version (I don't know if the CAE Team packages are old)... :-) |
Hi,
I think the OF1.5-dev packages were made for the 2010 Gothenburg, Sweden Openfoam Workshop So you might want to try the LiveDVD http://rcc.its.psu.edu/ofw6/ofw6_v8.iso for this years Openfoam Workshop with OF1.6-dev and 1.7.x installed side by side. I found the LiveDVD very useful and made a permanent installation on my harddisc |
Hi, Elvis.
Thanks for your reply, but I can't download anything from your link. Anyway, any idea about the problem described before? I'm quite sure it's something quite stupid about settings (folders and so on) in some files in CAE Team packages, but I can't find it. |
Hi Maurizio,
I'm sorry, but: Quote:
I currently don't have the latest Ubuntu 11.04 64bit at hand, but my Ubuntu 10.10 64bit uses a symbolic link to do this: Code:
ll /usr/lib64 But OK, assuming that the symbolic link does not exist - by the description you made: Quote:
Try starting a new terminal window and run the desired alias again, namely OF15dev and see if it's working or not ;) Best regards, Bruno |
You're right, I didn't realize lib64 is a symbolic link - I also use Ubuntu 10.04 LTS 64bit. Now my bahsrc file in /usr/lib64/OpenFOAM-1.5-dev/etc includes the original
Code:
foamInstall=/usr/lib Code:
alias OFdev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc" Code:
alias OFdev="source /usr/lib64/OpenFOAM-1.5-dev/etc/bashrc" PS there was a mistake in the previous post: first I edited, then I sourced :-) |
Hi Maurizio,
Mmm... which Ubuntu version are you using? 10.04, 10.10 or 11.04? Lucid, Maverick or Natty? Knowing that, I can install it in a VM and test this myself :) Best regards, Bruno |
Thanks for your attention, Bruno.
I forgot to say I use Ubuntu 10.04 LTS 64bit - I quickly edited the previous message but I wasn't enough fast :-) |
Hi Maurizio,
I don't know if you've ever seen or read the story about the "Wizard of Oz", but there is a scene where Oz says something like this: Quote:
So here's what is going on:
Bruno |
Thanks for your hint, I couldn't stop laughing for your educated quote :D
You're right, everything is OK with OpenFOAM 1.5-dev and OpenFOAM 1.6-ext from CAE Team PPA. Now I'd like to change my settings, so I can use the last ParaView version. I tried to follow your great guide, but my case is slightly different. I already installed OpenFoam 2.0 via Ubuntu/Debian pack installation, so I followed your steps from point 7. I substituted .OpenFOAM with .foam in $WM_PROJECT_DIR/bin/paraFoam, but I can't find Code:
paraview3=`$WM_PROJECT_DIR/bin/foamEtcFile apps/paraview3/bashrc` \ Best regards and THANKS. |
Hi Maurizio,
Check my blog post again! :) I have now updated the post to teach how to modify both OpenFOAM 1.7 and 2.0 :cool: Best regards, Bruno |
1 Attachment(s)
Hi, Bruno.
I think there was a misunderstanding - or maybe I was not able to get the right infos from your guide about ParaView. Anyway, today I'm not working with OpenFOAM 1.5-dev and the same computer as in last days (I have it back in one week), but I've just installed OpenFOAM 1.6-ext via CAE Team PPA on a new computer and I guess the procedure could be similar - from what I need for OpenFOAM 1.5-dev on the first one. In other words, $WM_PROJECT_DIR/etc/bashrc contains this rem lines (I'm talking about OpenFOAM 1.6-ext): Code:
# Source user setup files for optional packages Thanks again for your help and pardon for my ignorance about linux and OpenFOAM :-/ |
Hi Maurizio,
I'm sorry, I got lost in my own train of thought back then :( OK, modifying paraFoam in 1.5-dev and 1.6-ext is not necessary at all :eek:! It's a script originally named pvFoam, it's not the original paraFoam script ;) So it will open .foam by default :D Says so on the line: Code:
ext=foam
Best regards, Bruno |
Hi Bruno,
now my $WM_PROJECT_DIR/etc/bashrc (OpenFOAM 1.6-ext via CAE Team PPA) includes Code:
# Source user setup files for optional packages Thank you, thank you very much for your help. I owe you a dinner, when you're in Venice or Trieste (Italy) :-) |
Hi Maurizio,
Quote:
Quote:
Best regards, Bruno |
All times are GMT -4. The time now is 17:41. |