saturne installation on Ubuntu

saturne Installation on Ubuntu 16.04

1 installation guide on Ubuntu 16.04

  1. Install pre-packages before running install_saturne.py
    • Zlib (optional, not installed in this case)
    • BLAS (optional, not installed in this case)
    • Python
    • PyQt (optional, required for the GUI) sudo apt-get install python-pyqt5

      sudo apt-get install python3-pyqt5

      pyqt5 reference guide

    • C, C++, and Fortran compilers
      • on Ubuntu OS, type in:
        • sudo apt install gcc
        • sudo apt install gfortran
    • MPI (optional)
  2. compiling Create a directory named saturne_build run install_saturne.py
    mkdir /home/kaiming/Documents/Code-saturne/saturne_build
    cd /home/kaiming/Documents/Code-saturne/code_saturne_5_build
    /home/kaiming/Documents/Code-saturne/code_saturne_5/install_saturne.py
    
  3. Launch the package code_saturne from a terminal Two methods are available
    • 4
    • 1 of code_saturne,i.e. /home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
  4. from: https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias a. define a alias named code_saturne in a file, .bash_aliases

    >> vi .bashaliases

    Then define a alias as below

    >>cspath=/home/kaiming/CodeSaturne/5.0.9/codesaturne-5.0.9/arch/Linuxx8664/bin >> alias codesaturne="$cspath/codesaturne" alias.png

c. To load .bash_aliases

  • add the following commands in the ~/.bashrc
    if [ -f ~/.bash_aliases ]; then
         . ~/.bash_aliases
    fi
    

    bashrc.png

then source ~/.bashrc

>> source ~/.bashrc

  1. http://www.linfo.org/path_env_var.html
  2. lauch code_saturne in any terminal >> codesaturne

to launch the GUI of code saturne

>> codesaturne gui

The documentation should then be available through the commands:

>> codesaturne info -g refcard #reference card

>> codesaturne info -g user

Author: kaiming

Created: 2019-03-31 Sun 12:33

Emacs 24.5.1 (Org mode 8.2.10)

Validate

猜你喜欢

转载自www.cnblogs.com/code-saturne/p/10630856.html
今日推荐