CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Ubuntu AMD64 Installation Troubles

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2008, 10:25
Default Hi Christian your installati
  #21
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
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
waynezw0618 is offline   Reply With Quote

Old   April 9, 2008, 10:29
Default In order to let OpenFOAM to ru
  #22
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
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
dmoroian is offline   Reply With Quote

Old   April 10, 2008, 03:36
Default Hi Dragos how to setup up a p
  #23
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi Dragos
how to setup up a passwordless account for rsh?
why there is no env varible for LAM and OPENMPI.
wayne
waynezw0618 is offline   Reply With Quote

Old   April 10, 2008, 05:03
Default Hi Wayne, Just google for "pa
  #24
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Wayne,
Just google for "passwordless rsh" and you will get lots of examples. This is the first I got: passwordless rsh/ssh

Dragos
dmoroian is offline   Reply With Quote

Old   April 10, 2008, 05:31
Default Hi Wayne, sorry for my late r
  #25
New Member
 
Christian Wesemeyer
Join Date: Mar 2009
Posts: 19
Rep Power: 17
wese is on a distinguished road
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
wese is offline   Reply With Quote

Old   April 10, 2008, 06:18
Default Hi Christian, If I may sugges
  #26
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Christian,
If I may suggest, check this on google: openmpi heterogeneous

Dragos
dmoroian is offline   Reply With Quote

Old   April 10, 2008, 08:19
Default Hi Christian and Dragos thank
  #27
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
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
waynezw0618 is offline   Reply With Quote

Old   April 10, 2008, 08:50
Default Hi Wayne and Dragos, sorry, b
  #28
New Member
 
Christian Wesemeyer
Join Date: Mar 2009
Posts: 19
Rep Power: 17
wese is on a distinguished road
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
wese is offline   Reply With Quote

Old   April 10, 2008, 09:05
Default
  #29
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
</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
dmoroian is offline   Reply With Quote

Old   April 10, 2008, 12:29
Default Hi Christian and Dragos: than
  #30
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi Christian and Dragos:
thanks!

Wayne
waynezw0618 is offline   Reply With Quote

Old   April 25, 2008, 15:28
Default First of all thank you to ever
  #31
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
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 is offline   Reply With Quote

Old   April 27, 2008, 14:59
Default N.B to my previous post in ste
  #32
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
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.
chegdan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF troubles Rachel FLUENT 1 June 30, 2008 00:02
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25
Paraview installation troubles jjhall OpenFOAM Installation 3 April 17, 2008 13:59
3d VOF troubles... Mac FLUENT 0 March 12, 2007 09:41
Installation on AMD64 Special considerations olwi OpenFOAM Installation 2 September 10, 2006 15:17


All times are GMT -4. The time now is 00:58.