saturne installation on Ubuntu
Posted code-saturne
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了saturne installation on Ubuntu相关的知识,希望对你有一定的参考价值。
saturne Installation on Ubuntu 16.04
Table of Contents
1 installation guide on Ubuntu 16.04
- 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
- C, C++, and Fortran compilers
- on Ubuntu OS, type in:
sudo apt install gcc
sudo apt install gfortran
- on Ubuntu OS, type in:
- MPI (optional)
- compiling Create a directory named
saturne_build
runinstall_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
- Launch the package
code_saturne
from a terminal Two methods are available - 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"
c. To load .bash_aliases
- add the following commands in the
~/.bashrc
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
then source ~/.bashrc
>> source ~/.bashrc
- http://www.linfo.org/path_env_var.html
- 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
以上是关于saturne installation on Ubuntu的主要内容,如果未能解决你的问题,请参考以下文章