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 gccsudo 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_buildruninstall_saturne.pymkdir /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_saturnefrom 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_saturnein 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中一些小众但很实用的功能
dubbo功能非常完善,很多时候我们不需要重复造轮子,下面列举一些你不一定知道,但是很好用的功能: 直连Provider 在开发及测试环境下,可能需要绕过注册中心,只测试指定服务提供者,这时候可能需要 ...
- GitLab: API is not accessibl
git push -u origin masterGitLab: API is not accessiblefatal: Could not read from remote repository. ...
- KeepAlived的配置
KeepAlived的相关配置 KeepAlived 配置 参考帮助 man keepalived.conf 配置文件组件部分: top hierachy(层次) global configurati ...
- 2008提权之突破系统权限安装shift后门
大家都知道08权限的系统权限设置很严格,且在2003系统中常用到的溢出工具都失效.面对限制IP连接的情况 我们及时拿到system权限 有账号也上不去 这种情况下只能弄shift后门 或者放大镜了.但 ...
- Thinkphp模板标签if和eq的区别和比较
在TP模板语言中.if和eq都可以用于变量的比较.总结以下几点: 1.两个变量的比较: <if condition=”$item.group_id eq $one.group_id”> & ...
- bzoj 1627: [Usaco2007 Dec]穿越泥地【bfs】
在洛谷上被卡了一个点开了O2才过= = bfs即可,为方便存储,把所有坐标+500 #include<iostream> #include<cstdio> #include&l ...
- P4971 断罪者
传送门 首先,不难看出可以给每个集合开一个可并堆,然后乱搞就可以了 主要的问题就是将罪恶值清零和减少罪恶值该怎么搞 罪恶值清零可以直接找到这个节点然后把值变为零,再把它的左右儿子分别并到这个节点所在的 ...
- [App Store Connect帮助]五、管理构建版本(2)查看构建版本和文件大小
您可以查看您为某个 App 上传的所有构建版本,和由 App Store 创建的变体版本的大小.一些构建版本在该 App 发布到 App Store 上后可能不会显示. 必要职能:“帐户持有人”职能. ...
- Juicer.js模板引擎问题
由于jsp中的EL表达式语法和jquery.tmpl十分类似,,所以单纯的使用${name},数据是渲染不上tmpl的. SO.. 要加上转义: ${'${'}amount} 或者 \${amount ...
- Linux C编程 GCC的使用
本篇文章面向一些会linux文件操作与vim基本命令,编程大佬请移步勿喷. gcc是默认安装的,但是其还缺少常用的头文件和库文件,所以还需要build-essential这个包,可以在联网状态下使用如 ...