test


installation

Table of Contents

1 installation guide

saturne_installation.html

  1. Install the following packages before running install_saturne.py

  • C, C++, and Fortran compilers

    • on Ubuntu OS, type in:

      • sudo apt install gcc
      • sudo apt install gfortran
  • Python
    • python 3.6.7 is default installed on Ubuntu
  • MPI (optional)
  • Create a directory named saturne_build run install_saturne.py
    1. mkdir /home/kaiming/Documents/Code-saturne/saturne_build
    2. cd /home/kaiming/Documents/Code-saturne/code_saturne_5_build
    3. /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.
  1. /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

  1. vi .bash_aliases

b. Then define a alias as below

  1. cspath=/home/kaiming/Code_Saturne/5.0.9/code_saturne-5.0.9/arch/Linux_x86_64/bin
  2. alias code_saturne="$cspath/code_saturne"

c. To load .bash_aliases , add the following commands in the ~/.bashrc

  1. if [ -f ~/.bash_aliases ]; then
  2. . ~/.bash_aliases
  3. fi

d. source ~/.bashrc

  1. >> 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

  1. now, you can lauch code_saturne in any terminal >> codesaturne

to launch the GUI of code saturne

  1. >> code_saturne gui

The documentation should then be available through the commands:

  1. >> code_saturne info -g refcard #reference card
  2.  
  3. >> code_saturne info -g user
  1. How to run a python script on Ubuntu

  2. PyQt installation
    1. 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

Author: kaiming

Created: 2019-05-10 五 10:23

Emacs 25.2.2 (Org mode 8.2.10)

Validate

saturne installation on Ubuntu的更多相关文章

  1. Pangolin 安装测试 Installation & Examination (Ubuntu 20.04)

    Pangolin 安装测试 Installation & Examination (Ubuntu 20.04) 如题所述,这是一个比较轻松的 Pangolin 安装配置方法,同样是基于 WSL ...

  2. docker installation on ubuntu

    Ubuntu Docker is supported on these Ubuntu operating systems: Ubuntu Xenial 16.04 (LTS) Ubuntu Trust ...

  3. Installation Guide Ubuntu 16.04

    Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly in ...

  4. 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 ...

  5. Ruby and gnuplot installation on Ubuntu 16.04

    sudo apt install ruby gnuplot

  6. ubuntu 安装apache2并配置cgi,搭建mimetex转化公式图片的服务

    一.Apache的安装 在终端输入: sudo apt-get install apache2 二.启动.停止Apache服务 Apache的启动和停止文件是:/etc/init.d/apache2 ...

  7. windows ubuntu双系统启动

    开始安装系统 1.安装系统 首先安装windows8和ubuntu12.04,安装先后顺序可以不用管,只是安装到ubuntu的分区时需要注意device for boot loader install ...

  8. Motion on Ubuntu

    Motion is a program that monitors the video signal from one or more cameras and is able to detect if ...

  9. (转) How to install eclipse in ubuntu 12.04

    源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...

随机推荐

  1. go语言---defer

    go语言---defer https://blog.csdn.net/cyk2396/article/details/78885135 defer 是在函数退出前调用,多个defer遵循 先进后出 的 ...

  2. DNS的主从、子域授权和转发服务器

    DNS的主从.子域授权和转发服务器 主从DNS 注意: 1.全局配置options{} 里面的内容,其中 listen-on port 53 {any or local:}:或者直接注释掉,或删掉 a ...

  3. UVaLive 6834 Shopping (贪心)

    题意:给定 n 个商店,然后有 m个限制,去 c 之前必须先去d,问你从0到n+1,最短路程是多少. 析:我们我们要到c,必须要先到d,那么举个例子,2 5, 3 7,如果我们先到5再到2,再到7再到 ...

  4. 一张图带你了解-常见面试之JUC包详解

    面试时经常问到JUC包下的类及特性,现在用一张图总结下

  5. Proteus中的 PIC10/12/16 MCUs编译器无法下载的问题

    当你打开网站时,点击该软件下载会发现如下页面: google一下会出现这个界面,大意是这个版本的编译器太老了,已经被某些更加高级的编译器给取代了(qaq心痛) 然后我就开始FQ到处google,Sou ...

  6. px-em-rem单位转换

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  7. jQuery.fn.extend和jQuery.extend

    <script src="http://www.cssrain.cn/demo/JQuery+API/jquery-1[1].2.1.pack.js" type=" ...

  8. 【笔记JS/HTML/CSS】web中的HTTP协议(1)

    最近都在coursera刷课,加上自己课业也忙起来了,总是忘记写学习笔记ORZ 自省ing... 在写HTML的时候,form表单需要通过HTTP协议向服务器提交.查询数据(如下图) 客户端通过HTT ...

  9. HDU_1561_The more, The Better_树型dp

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1561 The more, The Better Time Limit: 6000/2000 MS (J ...

  10. POJ_3041_Asteroids

    参考自: http://user.qzone.qq.com/289065406/blog/1299322465 解题思路: 把方阵看做一个特殊的二分图(以行列分别作为两个顶点集V1.V2,其中| V1 ...