CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Ubuntu AMD64 Installation Troubles (https://www.cfd-online.com/Forums/openfoam-installation/57395-ubuntu-amd64-installation-troubles.html)

waynezw0618 April 9, 2008 09:25

Hi Christian your installati
 
Hi Christian
your installation still face the problem of LAM,MPICH,RSH,which i also met,so it can not run in parallel model? how to resolve it?


wayne

dmoroian April 9, 2008 09:29

In order to let OpenFOAM to ru
 
In order to let OpenFOAM to run in parallel on different nodes, you need to setup a passwordless account for ssh (public key with an empty passphrase).

Dragos

waynezw0618 April 10, 2008 02:36

Hi Dragos how to setup up a p
 
Hi Dragos
how to setup up a passwordless account for rsh?
why there is no env varible for LAM and OPENMPI.
wayne

dmoroian April 10, 2008 04:03

Hi Wayne, Just google for "pa
 
Hi Wayne,
Just google for "passwordless rsh" and you will get lots of examples. This is the first I got: passwordless rsh/ssh

Dragos

wese April 10, 2008 04:31

Hi Wayne, sorry for my late r
 
Hi Wayne,
sorry for my late reply.
As Dragos said, you should google for passwordless rsh/ssh (I've done so too).
After that parallel run works fine.
The only problem I still was unable to solve is, that I can't run simultaneously on 32 and 64 Bit machines (we have some old one running here, which I would be able to use nearly permanently for calculations).
Due to the fact, that we use an nfs for our /home directory I tried to install both versions in my account, so that I'm now able to run calculations on the 32 or on the 64 Bit machines.
I haven't spent much time on that so far, because I guess, that both versions use different sizes for variables and therefore a parallel run on different environments just would be possible with some coding work.

Greetings
Christian

dmoroian April 10, 2008 05:18

Hi Christian, If I may sugges
 
Hi Christian,
If I may suggest, check this on google: openmpi heterogeneous

Dragos

waynezw0618 April 10, 2008 07:19

Hi Christian and Dragos thank
 
Hi Christian and Dragos
thanks for your help,i will try rsh later.but now i am running my case with the 2 cpu which both on the sam architecture.
i try run my case as
mpirun -np 2 MRFSimpleFoam . mycase -parallel > log without "&" at the end of the commond, but it still run in the backgroud. why?


and according to the user guide there is another option to run :
</dev/null>& log &
what is this?
and in this option there are two "&", why ? and could i move the fisrt & before the >

Thanks
Wayne

wese April 10, 2008 07:50

Hi Wayne and Dragos, sorry, b
 
Hi Wayne and Dragos,
sorry, but I can't help you an the problem with the background process.
I p.e. run my simulation with the following command
mpirun --hostfile /home/wagner/cwe/OpenFOAM/cwe-1.4.1/run/tutorials/gitterinvarianz/324000/system/ rechner -np 5 -v interFoam /home/wagner/cwe/OpenFOAM/cwe-1.4.1/run/tutorials/gitterinvarianz 324000 -parallel > 324000.log
It's ot in background and puts it's outputs to 324000.log

Thank's a lot for the idea with google.
I'll check this, when I'll have some time.

Greetings
Christian

dmoroian April 10, 2008 08:05


 
</dev/null - the standard input is redirected from the keyboard to the file /dev/null (if the program needs to read something it will try to do that from the /dev/null file);

>& log - the standard output and standard error is redirected to the file log (if the program wants to write something on the screen it will do that in the log file).

The last & send the job in the background, if somebody else did not do it already.

All this things are very nicely described in the manual page of the bash shell: man bash.

Dragos

waynezw0618 April 10, 2008 11:29

Hi Christian and Dragos: than
 
Hi Christian and Dragos:
thanks!

Wayne

chegdan April 25, 2008 14:28

First of all thank you to ever
 
First of all thank you to everyone who posts, you have saved me more times than I can count. Also, thank you for those that develop OpenFOAM as it is an incredibly useful tool. I managed to spend a lot of time yesterday making OF work and I would like to post some help to those that might follow. This is not a step by step, only what I remember

since I spent a great deal of yesterday getting the OpenFOAM to work on amd64 Ubuntu 8.04 fresh install. I thought I might post some help/tips that I found.

1) in the 64 bit version of OpenFOAM, the "linux" sub-folder must be named "linux64". You might get a few error that tell you that OF can't find gcc or java.

2) make sure that in your home .bashrc file, you have WM="on" above the source line like this
export WM_64="on"
. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

This will make sure that OF knows you are using 64 bit.

3) When starting FoamX, I received errors saying that java could not be found. and that there was an error with libxp.so.6 being shared. A similar issue was discussed at http://www.cfd-online.com/OpenFOAM_D...tml?1194651563

I found that the problem was not that the libxp.so.6 was "not there" it was that the 32 bit version was not there. I attempted to place links between the versions of libxp.so.6 in other /usr/lib64 or usr/lib folders, but I eventually figured that i needed the 32 bit version. I found this handy tool called getlibs.Getlibs can be found at

http://ubuntuforums.org/showthread.php?t=474790

and it downloads the 32 bit version of the library you specify...there is documentation on that post. After several iterations of FoamX and then finding an error that needed a 32bit lib I was able to get OF to work.

4) Paraview. I ran into some more problems on paraview ( forgot to save the message board post i found) and it was solved by downloading the tk8.4 (and the dev package too) along with tk8.5 to be sure. I also downloaded the tcl8.4, tcl8.5, and both dev packages. after that Paraview worked.

I think thats it. I was here til 4 am but it worked. Good luck.

chegdan April 27, 2008 13:59

N.B to my previous post in ste
 
N.B to my previous post in step 3.

If you are on 64 bit and receive the "java not found error" then you are missing a library. the short explanation can be found here.

http://www.zend.com/forums/index.php?t=msg&goto=8855&S=47b9d5fd8f211c8c9083fe 55a 877ba90

you are basically missing the libc6-i386 library and can be downloaded using

getlibs libc6-i386

lastly, I am on an intel machine so your "linux64" folder might actually need to be "linuxAMD64" if you have an AMD processor...I'm not sure.


All times are GMT -4. The time now is 03:42.