Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 75

Thread: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

  1. #41
    Join Date
    Nov 2007
    Beans
    6

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    This worked fine for me with one modification. The line below:

    export WM_COMPILER_DIR=/usr$WM_COMPILER_ARCH

    was changed to:

    export WM_COMPILER_DIR=/usr

    and then running foamInstallationTest worked just fine. I'm running on an AMD 64-bit system.


    Quote Originally Posted by in_flu_ence View Post
    For those who would like to use the system installed gcc and java, I have done the following by editing the ~/OpenFOAM/OpenFOAM-1.3/.bashrc (where ~ refers to your home path, e.g. /home/username)

    Edit the following lines (the bold part)
    Code:
    if [ "$WM_COMPILER" = "Gcc4" ]; then
        export WM_COMPILER_DIR=/usr$WM_COMPILER_ARCH
        WM_COMPILER_BIN="$WM_COMPILER_DIR/bin:$WM_COMPILER_DIR/../gdb-6.4/bin"
        WM_COMPILER_LIB=$WM_COMPILER_DIR/lib${WM_COMPILER_LIB_ARCH}:$WM_COMPILER_DIR/lib:
    &

    Code:
    # Java
    # ~~~~
    
    # Linux workstation
    # ~~~~~~~~~~~~~~~~~
    if [ "$machineTest" = "Linux" ]; then
    
        export JAVA_HOME=/usr
    
        processor=`uname -m`
    
        if [ "$processor" = "ia64" ]; then
            export JAVA_HOME=/usr/java/j2sdk1.4.2
        fi
    With this, I can delete the gcc and java folders that were unzippd to the /linux folder or for those going to install, you don't have to download that two package.

    Hope it helps.

    If someone else has tested this, I guess we can edit the wiki to reflect the changes.

  2. #42
    Join Date
    Mar 2006
    Location
    Sheffield, UK
    Beans
    322

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Hello Folks!, I hope all is well with you...

    This is a quick note to Windows users: There is an alternative way to install OpenFOAM in a windows system (XP/VISTA) apart from the CYGWIN build. You need to install adlinux (http://www.andLinux.org) (colinux+ubuntu) and follow the guide as usual. The solvers work perfectly but in my particular case I have a problem with paraView (you may o may not have this problem) in which the visualisation window is not working at all. Rather strange because the GUI works fine... anyway I will post any progress here if any...

    cheers

  3. #43
    Join Date
    Mar 2006
    Location
    Sheffield, UK
    Beans
    322

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    OK folks... this is for **windows** Users... please read the following thread at the andLinux forum regarding the problem of paraview visualisation... hope this solve your problem...

    http://www.andlinux.org/forum/viewtopic.php?t=44

    I haven't tried yet but I will do it as soon as I can...

    cheers
    j

  4. #44
    Join Date
    Mar 2007
    Location
    St. Louis
    Beans
    Hidden!
    Distro
    Gutsy Gibbon Testing

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    First of all, I used this thread a few months ago when I installed OF on 7.10 and it help immensely. Now, I'm compiling OF-1.4.1-dev on 8.04...and man do I have problems with it. I have read the OF wiki on how to compile openfoam, but it is difficult to do. That particular wiki post was based on someone who had successfully compiled OF on opensuse before and therefore had all of the required libraries and such on their computer. Therefore, this makes the compiling of OF straightforward (not really but ok). So I ask, has anyone compiled OF on ubuntu from a completely vanilla version of 8.04? If so, did you document it? If you did...how about a nice descriptive post? I really need this compiled in order to access a few of the additional models offered only in the dev version...and I kinda prefer to use Ubuntu over opensuse. Any help is much appreciated.

  5. #45
    Join Date
    Mar 2006
    Location
    Sheffield, UK
    Beans
    322

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Perhaps a bit late but OpenFOAM-1.5 has been released...

    http://www.opencfd.co.uk/openfoam/ve...tml#version1.5

    Comments about the installation have been added to the guide...

    cheers

  6. #46
    Join Date
    Oct 2007
    Beans
    740
    Distro
    Ubuntu Development Release

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    I thought I would make myself useful and contribute to this thread. Thanks to this thread, a few fresh installs and extensive googling OpenFOAM 1.5 now runs well in my 32 bit box.

    in order to make paraview read the foam files, it needs to be compiled.

    to do that you need those two packages:
    Code:
    libmpfr-dev
    
    libmpfr1|dbl
    you can just get them in synaptic, if you don't get them the compilation is going to give you errors. then enter the following commands in terminal

    for paraview


    Code:
    cd $FOAM_INST_DIR/ThirdParty
    rm -rf ParaView3.3-cvs/platforms
    buildParaView3.3-cvs
    The compilation is going to take a while, a very long while. just leave you machine running and go do something else.

    now for the reader



    Code:
    cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    ./Allwclean
    ./Allwmake
    don't try to navigate to the directories yourself, just copy and paste the terminal cd commands above and all should run smoothly.

    cheers

  7. #47
    Join Date
    Jun 2007
    Location
    Abuja,Nigeria
    Beans
    499
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Thanks for the great how to .. am the system admin for the African University of Science and technology we run ubuntu on all our lab computers and i would like to add OpenFOAM to our list of softwares .1 question though .. how do i install OpenFOAM so that its accessible by more than one user . if i follow your guide and do the installation in /home/username .. then other users to the system wont have access to the program .. is it a must to use /home or can i use /opt instead . and if i did would it work ? sorry for my bad english
    servant of the secret fire, wielder of the flame of Anor!

    Blog identica twitter lastfm

  8. #48
    Join Date
    Oct 2008
    Location
    Sydney, Australia
    Beans
    1
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Hello
    I am new to ubuntu (have first year uni computing knowledge and C, C++ programming) and also new to OpenFOAM. I am running openfoam 1.5 on hardy and when i try to run it i get this message....
    james@ubuntu:~$ icoFoam

    /*---------------------------------------------------------------------------*\

    | ========= | |

    | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |

    | \\ / O peration | Version: 1.5 |

    | \\ / A nd | Web: http://www.OpenFOAM.org |

    | \\/ M anipulation | |

    \*---------------------------------------------------------------------------*/

    Exec : icoFoam

    Date : Oct 07 2008

    Time : 15:23:31

    Host : ubuntu

    PID : 6465

    Case : /home/james

    nProcs : 1


    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    Create time




    cannot open file


    file: /home/james/system/controlDict at line 0.


    From function regIOobject::readStream(const word&)

    in file db/regIOobject/regIOobjectRead.C at line 66.



    FOAM exiting



    james@ubuntu:~$ grrrrrr!

    I was just wondering if i installed it incorrectly or if i need to change the directory for something etc and how to do it

    (i am also new to web forums so hope i posted in right section etc etc etc)

    Thankyou in advance for your help

  9. #49
    Join Date
    Mar 2006
    Location
    Sheffield, UK
    Beans
    322

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Quote Originally Posted by bigbrovar View Post
    ...how do i install OpenFOAM so that its accessible by more than one user . if i follow your guide and do the installation in /home/username .. then other users to the system wont have access to the program .. is it a must to use /home or can i use /opt instead . and if i did would it work ? sorry for my bad english
    hello there, you can install OpenFOAM in any directory, you can install it in /opt, /share, /etc or any other suitable directory perhaps as a root or using sudo. However you will need to modify the environment variables since the installation scripts are using $HOME as the main path... I haven't done this but it is not difficult to do it...

    good luck

    j

  10. #50
    Join Date
    Apr 2006
    Beans
    11

    Re: HowTo: Scientific Ubuntu - Installing OpenFOAM CFD software

    Quote Originally Posted by waspbr View Post
    Code:
    cd $FOAM_INST_DIR/ThirdParty
    rm -rf ParaView3.3-cvs/platforms
    buildParaView3.3-cvs

    I am trying this on my amd64, but it end up with the error message

    "make: *** No targets specified and no makefile found. Stop."

    any ideas?

    but the same command runs well on 32bit

Page 5 of 8 FirstFirst ... 34567 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •