saturne installation on Ubuntu
test
installation
Table of Contents
1 installation guide
- Install the following packages before running
install_saturne.py
- Zlib (optional)
- BLAS
- PyQt (optional, required for the GUI)
pip3 install pyqt5
; pyqt5 installation, use pip3 package- pyqt5 reference guide
- C, C++, and Fortran compilers
- on Ubuntu OS, type in:
sudo apt install gcc
sudo apt install gfortran
- on Ubuntu OS, type in:
- Python
- python 3.6.7 is default installed on Ubuntu
- MPI (optional)
- 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 - setup environment path– lauch the package
code_saturne
from a terminal
two methods:
- defining a permanent alias
- add the installation path of
code_saturne
, i.e.
/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
method 1: defining a permanent alias
a. define a alias named code_saturne
in a file, .bash_aliases
vi .bash_aliases
b. Then define a alias as below
cspath=/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
alias code_saturne="$cspath/code_saturne"
c. To load
.bash_aliases
, add the following commands in the ~/.bashrc
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
d. source
~/.bashrc
>> source ~/.bashrc
https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias
method 2: add path environment variable http://www.linfo.org/path_env_var.html
- now, you can lauch
code_saturne
in any terminal >> codesaturne
to launch the GUI of code saturne
>> code_saturne gui
The documentation should then be available through the commands:
>> code_saturne info -g refcard #reference card >> code_saturne info -g user
- How to run a python script on Ubuntu
$ python3 /path/to/script.py
https://askubuntu.com/questions/590410/how-do-i-run-python-code-as-a-script - PyQt installation
- log
kaiming@127:~$ pip3 install pyqt5
Collecting pyqt5
Downloading https://files.pythonhosted.org/packages/d4/bf/d884da8e2f7096d201c891d515eb6813a8e85df5eb6f5e12e867bf1d831c/PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (117.8MB)
100% |████████████████████████████████| 117.8MB 22kB/s
Collecting PyQt5sip<4.20,>=4.19.11 (from pyqt5)
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 377, in _makerequest
httplibresponse = conn.getresponse(buffering=True)TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
solution: try it again
which returns:
Installing collected packages: PyQt5-sip, pyqt5
Successfully installed PyQt5-sip-4.19.13 pyqt5-5.11.3
- log
saturne installation on Ubuntu的更多相关文章
- Pangolin 安装测试 Installation & Examination (Ubuntu 20.04)
Pangolin 安装测试 Installation & Examination (Ubuntu 20.04) 如题所述,这是一个比较轻松的 Pangolin 安装配置方法,同样是基于 WSL ...
- docker installation on ubuntu
Ubuntu Docker is supported on these Ubuntu operating systems: Ubuntu Xenial 16.04 (LTS) Ubuntu Trust ...
- Installation Guide Ubuntu 16.04
Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly in ...
- Latest node.js & npm installation on Ubuntu 12.04
转自:https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/ Compiling is way to go for many b ...
- Ruby and gnuplot installation on Ubuntu 16.04
sudo apt install ruby gnuplot
- ubuntu 安装apache2并配置cgi,搭建mimetex转化公式图片的服务
一.Apache的安装 在终端输入: sudo apt-get install apache2 二.启动.停止Apache服务 Apache的启动和停止文件是:/etc/init.d/apache2 ...
- windows ubuntu双系统启动
开始安装系统 1.安装系统 首先安装windows8和ubuntu12.04,安装先后顺序可以不用管,只是安装到ubuntu的分区时需要注意device for boot loader install ...
- Motion on Ubuntu
Motion is a program that monitors the video signal from one or more cameras and is able to detect if ...
- (转) How to install eclipse in ubuntu 12.04
源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...
随机推荐
- dubbo和SpringCould
作为常用的微服务框架,这两者经常会被对比,但实际上两者有不少差异. dubbo好比组装电脑,很多东西可以自己选配,自由度高但对于小白难入门,很可能因为某个组件没选好,导致完全用不起来. SpringC ...
- nginx开发(四)调用ffmpeg,搭建rtmp直播流。
1: 修改conf文件,配置rtmp直播 打开usr/local/nginx/conf/nginx.conf,添加红色内容: rtmp {#rtmp点播配置 server { li ...
- 9. Ext基础1 -- Ext中 getDom、get、getCmp的区别
转自:https://blog.csdn.net/huobing123456789/article/details/7982061 要学习及应用好Ext框架,必须需要理解Html DOM.Ext El ...
- ruby on rails, api only, 脚手架
rails new connector_api --api --database=postgresql bundle install rake db:create rails g scaffold i ...
- 2-4 原生小程序 - 自带组件及API
获取用户的信息有两种,一种是不需要登录的,我们只需要获取用户的头像,还有微信的名.还有一种是登录的,就是登录后台校验的,就是获取用户的openid. webview,可以内嵌一个网页,类似于原生的开发 ...
- 利用XStream实现对象XML话
使用Java原生的序列化的方式来表示一个对象.总结一下这种对象表示方式的优缺点: 1.纯粹的Java环境下这种方式可以很好地工作,因为它是Java自带的,也不需要第三方的Jar包的支持 2.多语言环境 ...
- P2570 [ZJOI2010]贪吃的老鼠
传送门 →_→唯一一篇能看得懂的题解---->这里 很容易想到二分+网络流,然而并没有什么卵用--出题人的思路太神了-- 首先考虑如果一块奶酪在同一时间可以被多只老鼠吃的话,该如何建图.首先不难 ...
- [ZJOI2008]杀蚂蚁
题意翻译 注意在(0,0)已经有蚂蚁的时候是不会生成新蚂蚁的 还有如果有蚂蚁扛着蛋糕,但是不在某个炮的范围内,炮仍然会打最近的蚂蚁 题目描述 最近,佳佳迷上了一款好玩的小游戏:antbuster. 游 ...
- 题解报告:poj 1321 棋盘问题(dfs)
Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别.要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子 ...
- 2016天池-O2O优惠券使用预测竞赛总结
第一次参加数据预测竞赛,发现还是挺有意思的.本文中的部分内容参考第一名“诗人都藏在水底”的解决方案. 从数据划分.特征提取.模型设计.模型融合/优化,整个业务流程得到了训练.作为新手在数据划分和模型训 ...