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. ...
随机推荐
- 【410】Linux 系统 makefile 文件
makefile 主要是用来合并编译文件 CC = gcc puzzle: puzzle.c boardADT.o $(CC) puzzle.c boardADT.o -o puzzle -lm bo ...
- golang——strconv包常用函数
1.func ParseBool(str string) (value bool, err error) 返回字符串表示的bool值.它接受1.0.t.f.T.F.true.false.True.Fa ...
- 倒计时,短信发送后倒计时效果js
<div class="input-group-addon"><a style="width: 100%;height: 100%" href ...
- 从实际案例聊聊Java应用的GC优化--转
https://tech.meituan.com/jvm_optimize.html 当Java程序性能达不到既定目标,且其他优化手段都已经穷尽时,通常需要调整垃圾回收器来进一步提高性能,称为GC优化 ...
- 喜欢Swift编程语言的人主要是初学者?
一早一起来,朋友圈除了被苹果发布会刷屏外,还漫天散布着一条类似的招聘消息:“招聘iOS程序员,要求拥有5年的Swift开发经验,有狼性,待遇月薪20K+,专车接送.” 随后身边的朋友很快就开始调侃:& ...
- Spring.Net学习笔记(4)-属性及构造器注入
一.开发环境 操作系统:Win10 编译器:VS2013 .Net版本:.net framework4.5 二.涉及程序集 Spring.Core.dll:1.3.1 Common.Logging.d ...
- 为什么我的对象被 IntelliJ IDEA 悄悄的修改了?
背景 最近,在复习JUC的时候调试了一把ConcurrentLinkedQueue的offer方法,意外的发现Idea在debug模式下竟然会 "自动修改" 已经创建的Ja ...
- C# 客户端读取共享目录文件
控制台应用程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...
- 如何利用sql注入进行爆库
SQL注入能做什么 在<SQL注入基础>一文介绍了SQL注入的基本原理和实验方法,那接下来就要问一下,SQL注入到底能什么? 估计很多朋友会这样认为:利用SQL注入最多只能获取当前表中的所 ...
- day15-模块的基础及导入
目录 模块 什么是模块 使用模块 import 循环导入问题 解决方案一 解决方案二 模块的搜索路径 Python文件的两种用途 包 导入包内包 导入包内包的模块 绝对导入与相对导入 绝对导入 相对导 ...