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

Installation of OpenFOAM 1.7.x on openSUSE 11.4

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2011, 04:54
Default Installation of OpenFOAM 1.7.x on openSUSE 11.4
  #1
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
OpenSUSE 11.4 is being released in these hours, and some OpenFOAM user might be curious to try it (it looks like a very promising release to me).

The installation of OpenFOAM 1.7.x is straightforward, however, paraview 3.8.0 cannot be easily compiled. I put together a few steps to be able to install ParaView 3.10.0

http://albertopassalacqua.com/?p=920

You will notice the steps to install paraview are clearly a temporary hack, however they did the job on openSUSE 11.4 - 64 bit.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   March 10, 2011, 11:40
Default
  #2
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Yeah, 11.4 is out now!
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   March 10, 2011, 15:39
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Yes, and it is working well too at least here during a couple of days of testing (KDE installation).
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   March 11, 2011, 14:24
Default
  #4
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
I have installed opensuse 11.4, gnome, gnome3 and then 1.6-ext.

When installing the paraview 3.10.0, during it was still compiling the paraview, because this takes quite a long time, so I went to modify "cmake_install.cmake" file immediately.
Comment out the line witt ParaViewLibraryDepends.cmake as you have said, don't know why.

And it works now.

One smal note, the video card must be firstly installed, or paraview might not behave very correctly when trying to save the screenshot.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   May 6, 2011, 05:05
Default
  #5
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi,

Wednesday we have installed openSUSE 11.4 (KDE installation).

I have experienced a strange thing.

If I don't comment the following 3 lines of my .cshrc file I am no more able to log in !

#setenv FOAM_INST_DIR /shared/OpenFOAM
#setenv foamDotFile $FOAM_INST_DIR/OpenFOAM-1.7.x/etc/cshrc
#if ( -f $foamDotFile ) source $foamDotFile

Has someone encountered such a problem or can give me advices to solve it ?

Until openSUSE 11.3 it was OK and openFOAM 1.7.x was running fine.!

Best regards,

Stephane
openfoam_user is offline   Reply With Quote

Old   May 6, 2011, 05:56
Default
  #6
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi again,

Now I can log in without commenting the 3 lines of my .cshrc file.
But I have to comment the following line
set foamInstall = $HOME/$WM_PROJECT

which is located in the following file
/shared/OpenFOAM/OpenFOAM-1.7.x/etc/cshrc

Why ?

Regards,

Stephane.
openfoam_user is offline   Reply With Quote

Old   May 6, 2011, 16:09
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Stephane,

Disclaimer: I'm not a korn shell user, so I haven't fully tested some of these commands. I'm basing myself on my experiences with bash shell.

It seems you've already done a lot of "isolate and conquer" on your shell, but have you checked if the OpenFOAM environment is activated automatically by the common profile?

In other words, I suggest doing the following steps:
  1. Create an alias for the initialization of the OpenFOAM environment; more specifically, in the file "$HOME/.cshrc" change this:
    Code:
    source /shared/OpenFOAM/OpenFOAM-1.7.x/etc/cshrc
    (I oversimplified the three lines you had) Change it to this:
    Code:
    alias of17x_shared='source /shared/OpenFOAM/OpenFOAM-1.7.x/etc/cshrc'
    Or in your more complex case:
    Code:
    alias of17x_shared='setenv FOAM_INST_DIR /shared/OpenFOAM ; setenv foamDotFile $FOAM_INST_DIR/OpenFOAM-1.7.x/etc/cshrc ; if ( -f $foamDotFile ) source $foamDotFile'
  2. Start a new terminal.
  3. Now, check if there is an OpenFOAM environment already activated or not:
    Code:
    echo $FOAM_INST_DIR
    If nothing is outputted, skip to the next point. If something is outputted, then somewhere else the environment is already being defined! So, you'll have to do some more isolate and conquer, probably on the common "profile" file.
  4. Now, when all has been cleared up, run this on your new login/shell:
    Code:
    of17x_shared
    Now, it either doesn't work, or somehow logs you out or something like that... or it works and you're free to go on working with OpenFOAM
Either way, using alias commands gives you more control over what you want to be really activated when you want to activate it, instead of being automatic when you log in or start a new terminal!

Further than this, I would have to test my theories and do some more debugging in a korn shell... which I would very much rather not try, since my past experiences with it have been sort-of traumatic

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 10, 2011, 05:23
Default
  #8
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Dear Bruno,

I have redone a complete installation of OpenFOAM (OpenFOAM-1.7.x and ThirdParty-1.7.x) with openSUSE 11.4.
I have followed the steps described by Alberto:
http://albertopassalacqua.com/?p=920

Now it works in parallel.

Thanks Bruno and Alberto.
Best regards,

Stephane.
openfoam_user is offline   Reply With Quote

Reply


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
Installation how-to's - OpenFOAM 1.7 - openSUSE 11.2 and 11.3 alberto OpenFOAM Installation 24 August 4, 2010 01:48
Openfoam installation on OpenSuse 11.1 Bufacchi OpenFOAM Installation 1 June 15, 2010 20:55
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 13:09.