Parallel installation of OF1.6ext and OF220
Hello everyone,
I'm trying to install both OF 1.6ext and OF2.2.0 so I can run both. I have successfully installed OF 2.2.0 and it works fine. However, It's making problems when I try to install OF 1.6ext. I have followed the installation instructions and it works until I try to run ./Allwmake. As I see it, the installation folder is set to //opt/openFoam220 which wrong. The problem is that I'm relatively new to linux and I don't quite now whats going on here. The error: Error: Current directory is not $WM_PROJECT_DIRWhen I run: echo $WM_PROJECT_DIR He says: /opt/OpenFOAM-1.6-ext and sometimes he says /opt/openFoam220 I tried to change the path in etc/bashrc, but no effect. What exactly am I doing when I change that path? Thank you for help, sorry if topic exists, didn't find it. P.S. I'm running Ubuntu 12.04 |
Greetings Miro,
Quick answer - Read the instructions on this blog post: Advanced tips for working with the OpenFOAM shell environment Best regards, Bruno |
That's it. Thanks :)
|
Hi,
I am having problems installing the 1.6 ext alongside OF 2.2.0. When I try to source the bashrc file ( located in home/user/OpenFOAM/OpenFoam 1.6-ext/etc/) i get the following error: bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory bash: /opt/OpenFOAM-1.6-ext/etc/aliases.sh: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory which is true cause just OF2.2.0 is in opt whereas 1.6ext is in home folder. When I run: echo $WM_PROJECT_DIR He says: /opt/OpenFOAM-1.6-ext (which does not exist)! I read trough tens of post but could get around it. I might have understood that I have to add : alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc' somewhere but I dont know exactly where (linux newbie :( ) :confused::confused: Any suggestions? Thanks!! |
Greetings c0sk and welcome to the forum!
Uhm, did you read the instructions on this blog post: Advanced tips for working with the OpenFOAM shell environment ?? Best regards, Bruno |
Quote:
Thanks for the reply and the welcome message :D |
Quote:
With OpenFOAM, you need to have a very close attention to all details, or you'll end up trying to simulate a car larger than the planet Earth ;) Quote:
Code:
echo $HOME/.bashrc |
Quote:
|
It all depends on the Linux Distribution you are using, namely on how to edit the file.
The idea is that once you have the full path to the file (given by the echo command), you should use a text editor to open that file, by giving the full path to it. I was going to give a description on how to see the files in question, but since you said you are new to Linux, I suggest that you read this tutorial: http://linuxcommand.org/learning_the_shell.php In case you didn't notice, this is one of the first suggestions I make on the blog post. Happy reading! |
Quote:
I used that tutorial to learn the basic last week, I now tried gedit ~/.bashrc and a text editor opened which is full of text and the last lines now are #source /opt/openfoam220/etc/bashrc #source /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc #source /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc #source /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc #source /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc alias of220='. /opt/openfoam220/etc/bashrc' alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc' I did leave the rest of the text unchanged. Even after this if I try of16ext I still get the same error!:confused: :( edit: restarted my laptop and tried again, this is what i got this time : andc0sk@ubuntu:~$ of16ext Sourcing: /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh Environment variables defined for OpenMPI: OPENMPI_BIN_DIR : /usr/bin OPENMPI_LIB_DIR : /usr/lib/openmpi/lib OPENMPI_INCLUDE_DIR : /usr/lib/openmpi/include /usr/lib/openmpi/include/openmpi OPENMPI_COMPILE_FLAGS : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread OPENMPI_LINK_FLAGS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl MPI_HOME : /usr MPI_ARCH_PATH : /usr OPAL_PREFIX : /usr PINC : -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread PLIBS : -pthread -L/usr/lib/openmpi/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl MESQUITE_DIR is initialized to: METIS_DIR is initialized to: PARMETIS_DIR is initialized to: PARMGRIDGEN_DIR is initialized to: LIBCCMIO_DIR is initialized to: SCOTCH_DIR is initialized to: CMAKE_DIR is initialized to: M4_DIR is initialized to: BISON_DIR is initialized to: FLEX_DIR is initialized to: ZOLTAN_DIR is initialized to: PYTHON_DIR is initialized to: QT_DIR is initialized to: PARAVIEW_DIR is initialized to: Sourcing: /home/andc0sk/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh Is this what is supposed to look like? Can I keep going with the installation procedure even though I did restart my laptop at some point during the process? |
Details, you need to have a lot of attention to the details! ;)
I'll quote from my blog post: Quote:
As for the output you got: yes, that's normal for 1.6-ext to provide so much information by default. You can go forward with the building process. By the way, you can also find building instructions for 1.6-ext here: http://openfoamwiki.net/index.php/In...enFOAM-1.6-ext |
Thank you so much!!! Finally managed to get it working!:D
|
Got another problem :( In the tutorials/incompressible/icoDyMFoam/movingBlockRBF/ I tried to run the ./Allrun command but it just does not execute and goes back to the empty command line. Can it be related to something that went wrong with the installation procedure?:confused:
Edit: I do believe the problem is due to the fact that when I try ./Allrun, the wmake command which should compile the RBFMotionSolver is trying to source the files in the opt/openfoam220 directory. This is happening because I uncommented source /opt/openfoam220/etc/bashrc by removing the # (which I wrote last week) in the -bashrc file, otherwishe, I was not be able to run any OpenFoam tutorials. How can I correct this and get both things working? |
I thought you had everything under control... OK:
Bruno |
Ok my bashrc file last lines are:
Code:
#source /opt/openfoam220/etc/bashrc |
Code:
|
Hi c0sk,
Although you ran Allrun, something is broken in the function "compileLibrary" that Allrun is using, because of this output: Quote:
Check the contents of the file "OpenFOAM-1.6-ext/bin/tools/RunFunctions" and check if the function has this code: Code:
compileLibrary () Code:
compileLibrary RBFMotionFunction Code:
wmake libso RBFMotionFunction edit: I forgot to mention that even though regular forum members cannot delete posts, they can edit their own posts! So you didn't need to double-post ;) Best regards, Bruno |
Quote:
On the other hand, I checked the RunFunctions file and the code is there :rolleyes: |
You can always copy "Allrun" from the original folder at "$FOAM_TUTORIALS/incompressible/icoDyMFoam/movingBlockRBF", or from online: http://sourceforge.net/p/openfoam-ex...ovingBlockRBF/
|
Quote:
Code:
THANK YOU SO MUCH!!!!! :D |
Yes, it looks to be working properly now! Have fun with OpenFOAM! :)
|
Thanks again!!
Little OT: My project consists in simulating the wing of an hummingbird, therefore applying that movement via the RBF motion function. What would you recommend as a starting point? Any guide/tutorial which can help me in doing this? I am currently going through Frank Bos Thesis which is a good start. How do you create the geometry (a simple ellipse) in a CAD software ( I mean just the ellipse, or the ellipse in a "box")? Thanks ;) Andrea |
Hi Andrea,
I'll post in the thread you've got on this topic: http://www.cfd-online.com/Forums/ope...ggestions.html Best regards, Bruno |
All times are GMT -4. The time now is 11:29. |