openfoam-1.6-ext on Ubuntu 10.10 Maverick
I am trying to install the 1.6-ext version on a Ubuntu 10.10 system. I have followed the instructions provided here for lucid, simply replacing the lucid references with maverick ones, however, I am unable to get the software to install.
My repository entires look like this: Quote:
Quote:
Quote:
Cheers, R |
http://ppa.launchpad.net/cae-team/pp...nfoam-1.6-ext/
=> openfoam-1.6-ext-dev_1.6.0-1ppa1~lucid1_amd64.deb Oliver Borm did not compile for Maverick so a sources list with maverick will not work deb http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main deb-src http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main do not forget to add non-free for libparmetis3.1 |
Quote:
Sorry Elvis, I have tried a number of combinations of the above, but am struggling - I keep getting the same "unable to find a source package for openfoam-1.6-ext" error each time. What do I need to put into my sources list? Or should I just download the Lucid .DEB file and try running that? and what do I need to enter to start it building? Again, I followed the guide on the Wiki, and just ended up with a load of errors. I've wasted nearly 3 days on this now, and am very tempted to just write off 1.6-ext, and just concentrate on the OpenCFD 1.7.1 version. Grrrr :) R |
Hello rassilon,
source package!? not binary package? So you tried s.th. like sudo apt-get source openfoam-1.6-ext openfoam-1.6-ext-dev =>to get a working OpenFoam installation I just used apt-get install and edited the .bashrc if you download the sourcepackage i think you have to use dpkg-buildpackage and dpkg-deb i guess. sourcepackage has no big advantage in comparison of the original GIT-repository and compiling that git from scratch. Should be s.th. like: mkdir ~/OpenFOAM cd ~/OpenFOAM git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext greets elvis |
Hello rassilon,
why do you want to use OF1.6-extend? if you need GGI or have a viscoelatic Fluid (Giesekus or so) you depend on extend-Version or Dev-Version. Otherwise you can use vanilla-Version from OpenCFD. greets elvis |
Quote:
Hi Elvis, There is a bug in the 1.7 version with using interDyMFoam and meshes created in snappyHexMesh leading to a segmentation fault if tried to run in parallel. I wanted to test to see if the same issue were present in the 1.6-ext variant, as I see that they have done some work on the OpenMPI implementation. I am happy to download and install binaries by hand, but where are they, and how do I do it? I am frustrated by the lack of clear and concise instructions. Cheers, R |
Greetings to all!
@rassilon: OK, I've got Ubuntu 10.10 as well and here is what I did:
Bruno |
Quote:
Cheers Bruno, That's exactly what I needed! It's all installed and running now, so I can continue with my development. Thanks. R |
Thanks wyldckat, your procedure helped me as well.
Please if someone can bare with a newbie, I am having trouble proceeding from here. *Firstly, installing openfoam-1.6-extend, in this way, I take it, it has already been compiled and therefore no further compilation is necessary? I have openfoam 1.7.1 installed as well, and when I run wmake on e.g. icoLagrangianFoam, I get the following error /usr/bin/ld: cannot find -llduSolvers collect2: ld returned 1 exit status *Upon inspection, wmake uses the enviromental variables for openfoam 1.7.1 and therefore I am not accessing the extend version libraries. How do I run wmake pointed to the new libraries, located in /usr/lib/OpenFoam-1.6-extend/ ? Please pity this fool... |
Greetings lrunber,
Quoting the original instructions: Quote:
Code:
alias of171='source /opt/openfoam171/etc/bashrc' Good luck! Bruno |
Sincere thanks Bruno, working 100% now. In my frustration I never found that very helpful wiki. Thanks for aiding :)
|
problem starting openfoam16ext
I am trying to install OpenFOAM-1.5-dev an OpenFOAM-1.6-ext on ubuntu 10.04 Following the instructions at http://openfoamwiki.net/index.php/In...ucid_10.04_LTS. but when I want to start openfoam-1.6-ext I recive
bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: Aucun fichier ou dossier de ce type can any one help me |
Greetings Khaled,
OK, it seems to me that you didn't read the previous posts. Anyway, here's what you should do:
Best regards, Bruno |
Dear wyldckat
thanks a lot for your reply; I do the proposed correction on the bashrc but the error yet and I recive the response ?? can you help me |
I too am attempting to run 1.7.1 and 1.6-ext on the same (Suse 11.4) machine. My .bashrc is clean (free of FOAM references) and yet if I execute the 1.6-ext bashrc "by hand" from the etc/ folder I get the same problem.
It seems to be that there are certain environment variables that were set by my previous 1.7.1 install that are not being unset / overwritten when I source the 1.6-ext bashrc. I will try to unset these by hand and re-execute the 1.6-ext bashrc. I'll post an update if that works. Any suggestions? Thanks. |
Fixed it, at least for me
Everyone,
It turns out that the offending variable was $FOAM_INST_DIR. For me, unsetting this variable just before I source my bashrc of choice works. Now I can quickly edit my ~/.bashrc to reflect the install I want. This of course would also work with the shortcut method described above. A snippet from the relevant section of my ~/.bashrc file: Code:
unset FOAM_INST_DIR Mike |
Greetings Khaled and Michael,
Why do I get the feeling that my post #13 is too complicated :( I tried to keep it simple and easy to understand :( @Khaled: Have you managed to fix the problem yet? If not, does Michael's solution, or the one I'm writing below, work for you? @Michael: Instead of sourcing your "~/.bashrc" file every time you need to change OpenFOAM version, you can change your lines: Code:
unset FOAM_INST_DIR Code:
alias of171='unset FOAM_INST_DIR; source /opt/openfoam171/etc/bashrc' Then you can simply run of171 or of16ext on the command line, depending on the OpenFOAM version/variant you want to use, without having to change "~/.bashrc" whenever you want to change versions! Although I advise you to use different terminal windows whenever you need to use the other OpenFOAM version/variant! Best regards, Bruno |
Bruno,
Thanks for the explication. I was aware of and understood your previous post, and have since implemented the idea. I was more interested in the cause behind the problem, i.e. the FOAM_INST_DIR variable and how to fix it. The proper way to fix it would be to edit the 1.6-ext bashrc, but this is a quick workaround. Regards, Mike |
openfoam-1.5-dev
I Thank you Bruno, I am attempting to run 1.7.1 and 1.6-ext on Ububtu 10.04 (My .bashrc is clean from openfoam (free of FOAM references)).
I tried Michael's solution and the your solution (adding to my ~/.bashrc file): alias of171="unset FOAM_IST_DIR; source /opt/openfoam171/etc/bashrc" alias of15dev="unset FOAM_IST_DIR; source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc" but I get the same problem only when I use the of15dev alias. |
Khaled,
Did you make sure to re-source your .bashrc after making these changes? If so, would you please copy the error messages you get when you run 'of15dev'? Thanks, Mike |
of15dev
Thank you Bruno, I recive this message in the terminal window
khaled@khaled-laptop:~$ of15dev bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/etc/settings.sh: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/etc/aliases.sh: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/etc/apps/ensightFoam/bashrc: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Aucun fichier ou dossier de ce type khaled@khaled-laptop:~$ |
Isolate and conquer a rogue OpenFOAM environment :)
Hi Khaled,
Sorry for taking so long to answer you, but this week has been hectic for me... I don't know if you've already managed to fix this issue, but here's what I suggest you do:
Then uncomment the lines you've commented, while testing any suspicious commands in the mean time... in other words, go back some of the changes you've made, while keeping an eye out for suspicious lines! And don't forget that one shouldn't try to change the OpenFOAM environment to a different version on the same terminal that one is working on, unless one knows what one is doing! ;) Or in other words: minimum of 1 terminal window/tab per OpenFOAM version! Best regards and good luck! Bruno |
thank very much
Thank you bruno so much for this help. It's been a month since I'm stuck in this step. I find the suspect sentence . /opt/openfoam171/etc/bashrc in /etc/bash.bashrc file. After Commenting it and verifing that I do not recive in the terminal window /opt/openfoam171 when I run the command echo $WM_PROJECT_DIR, I added three aliases in bashrc file. It seem now that the three versions of OpenFOAM (1.7.1/1.5-dev/1.6-ext) works.
thank you again for this valuable assistance |
OF-1.6-ext
Wyldckat you seem to be my only hope right now!
I have read countless forums and instructions trying to install OF-1.6-ext and I still cannot get it to work after 3 weeks of painful work. I have Ubuntu 10.10 installed and OpenFOAM 1.6 is working fine. However I need OF-1.6-ext in order to use iciFsiFoam. I want to install it along side OF-1.6. I followed the procedure using the Synaptic Manager. When I run foamInstallationTest I get the following error: Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of OpenFOAM Supplied version: 4.3.3 User version : 4.4.5 Minimum required: 4.3.1 gcc 4.4.5 WARNING: Conflicting installations: OpenFOAM settings : /home/santiago/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.12 /bin/gzip tar 1.23 /bin/tar icoFoam /usr/lib/OpenFOAM-1.6-ext/applications/bin/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). This happens when my bashrc looks like this: alias startOF16ext='source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc' . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc I also tried changing : ${WM_COMPILER:=Gcc43}; export WM_COMPILER at OpenFoam-1.6-ext/bashrc and hit ./Allwmake but I can never get this thing to compile without errors: the errors are something like this one: /usr/bin/ld: cannot find -lreactionThermophysicalModels /usr/bin/ld: cannot find -lbasicThermophysicalModels collect2: ld returned 1 exit status make[2]: *** [/home/santiago/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linuxGccDPOpt/chemkinToFoam] Error 1 make[1]: *** [chemkinToFoam] Error 2 I would greatly appreciate any help. Thanks |
Hi Santiago,
OK, you've got this: Quote:
Code:
alias startOF16ext='source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc' Now, whenever you start a new terminal, run either startOF16ext or startOF16, depending on the version you want. If you then want the other version, start it on another terminal! This way you won't have these problems with one environment contaminating the other one. Last but not least, the 1.6-ext version you installed doesn't need further modifications. It should work right after you install it via Synaptic. If you modified it, then go to Synaptic, right click on the 1.6-ext packages and pick "re-install". Additionally, you should also install the openfoam-1.6-ext-dev package, since it gives you the development files for building other solvers! Good luck! Bruno |
Thanks so much for answering this post. I changed the bashrc file as you said. I also re-installed all three packages: openfoam-1.6-ext, openfoam-1.6-ext-dev and openfoam-1.6-ext-doc using Synaptic. The installation shows no error.
When I run foamInstallationTest for OF-1.6 everything is cool, but when I switch using StartOF-1.6-ext (in a brand new terminal) I get this message: Executing /usr/lib/OpenFOAM-1.6-ext/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <OpenFOAM installation dir>/OpenFOAM-1.6-ext/README to source the OpenFOAM environment. What should I do now? I really appreciate your help man. |
Hi Santiago,
I'm starting to hate foamInstallationTest... OK, maybe not hate, simply maybe disdain... :rolleyes: I'm going to quote myself once again :) Quote:
Bruno |
YOU ARE THE MAN! You are right! I tested the cavity case and it works no problem! I can't tell you how much I appreciate your help! Have a great day!:):):):):):)
|
Oops, there is one problem that I just noticed. When I use OF-1.6-ext everything is fine. When I switch to OF-1.6 in a new terminal and I execute paraFoam, I get this error:
/home/santiago/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc/bin/paraview-real: error while loading shared libraries: libQtAssistantClient.so.4: cannot open shared object file: No such file or directory Any idea of what to do? |
Hi Santiago,
If you can install OpenFOAM 2.0 for Ubuntu, here's what you can do: http://www.cfd-online.com/Forums/ope...tml#post314692 post #23. Well, in that post I explain how to make 1.5-dev and 1.6-ext use OF-2.0 version of ParaView. You simply have to adapt for your OF-1.6! Best regards, Bruno |
Hi again Wyldckat.
Thanks so much for your help so far. The main reason why I need OF-1.6-ext is to be able to use icoFsiFoam. However, when I try to use the solver as it comes (by installing it form the Synaptic Package manger) it does not work. When I try to run icoFsiFoam i get this error: http://www.cfd-online.com/Forums/ope...tml#post317273 I checked and the files that are listed to be missing are actually present. http://www.cfd-online.com/Forums/ope...tml#post317474 As I mentioned to you in another post, I also tried to compile icoFsiFoam and I get the following: http://www.cfd-online.com/Forums/ope...tml#post317475 Again, when I checked for the missing files (tetMatrices stuff) they are present in OpenFOAM-1.6-ext/SRC/tetDecompositionFiniteElement/tetFemMatrix. I'm starting to think that the compiler is not looking into the right place (I have OF-1.6 and OF-1.5-dev installed in my system as well). Do you have any idea or suggestion on how to proceed? Thanks in advance |
Hi Santiago,
:eek: 3 threads to choose from... I'll simply reply here what I did to get it working:
Best regards, Bruno |
Thanks man, you saved me again! It worked. For some reason the RunFunctions are not found at $WM_PROJECT_DIR/bin/tools/RunFunctions, so I did what you proposed. I did have to modify the Allrun file as indicated here http://www.cfd-online.com/Forums/ope...tml#post309684 though.
Thanks again:D |
Quote:
You're welcome! And I'm glad I didn't have to build 1.6-ext either, because by what I've seen on the forum, it's a doozy to build the 3rd Party folder :( |
Hi again Wyldckat
I think I'm starting to understand what the problem really is: As of now, I have OF-1.6-ext installed using the Synaptic Manager into the usr/lib folder. Now, I also downloaded the binary files and those are at $HOME/OpenFOAM/OpenFOAM-1.6-ext. I need to be able to compile some of the solvers since I need to modify them. For that I guess i need to use the binary files and therefore I need to compile OF-1.6-ext binaries. I'm trying to source the bashrc by using alias startOF16='. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc' alias startOF16ext ='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc however that does not work since I get : bash: alias: startOF16ext: not found bash: alias: =. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc: not found What should I include in to .bashrc? any idea of what to do? PD: it seems that some of the folders required to compile some of the solvers are missing in the OF-1.6-ext version that I installed using Synaptic |
Hi Santiago,
Quote:
When using Linux and OpenFOAM, one must pay very close attention to details! One wrong character somewhere and puff... Anyway, if you installed both packages for OF 1.6-ext, namely openfoam-1.6-ext and openfoam-1.6-ext-dev, then you shouldn't need to build your own version of 1.6-ext. Nonetheless, if you do need the latest version of 1.6-ext then yes, you will need to build it yourself! The following tutorial teaches (among other things) on how to create the solver for personal use, without the need to put it in the same folders as OpenFOAM's core code: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam The key details are:
Best regards, Bruno |
Thanks again Bruno, as usual very thorough and clear.
I followed your direction regarding the creation of my_icoFoam and I it works no problem. Now, I'm trying to compile a solver that can be downloaded here http://www.cfd-online.com/Forums/ope...tml#post315130 When I run "wmake all" I get the following error: santiago@santiago-laptop:~/OpenFOAM/santiago-1.6-ext/applications/solvers/testVorflexFoam$ wmake all SOURCE=testVorflexFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/turbulenceModel -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/testVorflexFoam.o testVorflexFoam.C:41: fatal error: tetFemMatrices.H: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/testVorflexFoam.o] Error 1 Now, I was told here http://www.cfd-online.com/Forums/ope...tml#post317808 that the symbolic link to tetFemMatrices.H is missing. That is exactly the case. The whole lnInclude folder is missing in usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement. I tried creating those links but when I try doing that I get "broken" links since I am "not the owner of the files and cannot change the permissions". In reality I am the owner of the system and I use my password every time I use "sudo" Any suggestions or ideas of what to do? Thanks again man, I really appreciate your help |
1 Attachment(s)
Hi Santiago,
:eek: I didn't know that 1.6-ext had so many rough edges.. OK, download the attached file and gunzip it. In my case, I put both packages on my user-1.6-ext folder and unpacked them both: Code:
tar -xzf solverAndTestCaseFSI.tar.gz Then applied the patch and built the thing: Code:
cd solverAndTestCaseFSI/testVorflexFoam/ Now all it's left is to apply the previous instructions to the testCase... Have fun! Bruno |
Thanks Bruno.
I already solved the problem by modifying the "files" file in the Make folder. I added the path to each of the "missing" symbolic link to the actual file location. I did this manually for each file. It took a little bit of time but eventually it worked. So I was able to successfully compile the solver. Thanks again |
Hi Guys,
I've been using OpenFoam for a few months now and thought I'd like to change to the git version (more up to date) and install the extended version (more functionality). I'm using Ubuntu 11.04. I successfully installed OF-2.0.x using the git distribution and hoped that the extended version would be along similar lines. I had problem after problem and eventually gave up and went for the cae-team package instead. That's just install and I assume it'll work fine. My problem is: The cae-team package looks quite out of date. I might be wrong but maybe 10 months or so old, so my questions are: 1) Are there any clearer instructions on how to install OF-1.6-ext on Ubuntu 11.04 using the git distribution. The OF-2.0.x instructions were quite clear and worked. I'm struggling with the third-party part of OF-1.6-ext as it's got lots of rpm related scripts that keep failing (even though rpm is stalled) 2) If I install the cae-team version, can I update it using git and recompile the updated parts, or do I have to wait for someone else to update it. Thanks in advance, EDIT: I just came across this thread and the link to the tutorial for Ubuntu 11.04. I've not tried it yet but it might at least answer my first point. Apologies for not seeing this earlier. Mark |
All times are GMT -4. The time now is 16:35. |