2022年9月18日
VASP
VASP安装与编译
[toc]
VASP5.4.4安装一、安装 Intel® oneAPI Base Toolkit 和 Intel® oneAPI HPC来替代
在安装之前需要安装一系列依赖包:
12sudo apt-get install libgtk-3-0 libxss1 libnss3 libgtk2 ...
Read more
2022年9月18日
Python
argparse
[toc]
基本用法
位置参数
123456import argparseparser = argparse.ArgumentParser()parser.add_argument("square", help="display a square of a g ...
Read more
2022年9月2日
Comsol
[toc]
Comsol基本
模型下载
视频教程
用户模拟
导入COMSOL网格
.mphbin,.mphtxt网格格式
基于MRI和扫描数据的网格上创建COMSOL Multiphysics
下列软件支持导入COMSOL网格
Materialise的Mimics
Simplewa ...
Read more
2022年7月24日
Fortran
Fortran Tutorial
[toc]
数据类型
F90程序中的数据都有三个特征:类型、种别、属性.
一般形式:类型说明[(种别说明)][,属性说明] :: 变量名[=初值]
例:REAL(KIND=2), DIMENSION(1:10):: X,Y
种别说明与属性说明可以省略,类型说明:: 变量名
类型说明> ...
Read more
2022年7月23日
Fortran
Fortran Tutorial
[toc]
停止语句PAUSE
一般形式是:PAUSE [暂停值],暂停值为字符串常量或5位数以下的整型数,当程序运行至断点处将输出暂停值。
PAUSE语句(在F90中不推荐使用,在F95中被废除)暂时中止程序的运行,将系统挂起,使程序操作员可以执行其它操作系统命令。
STOP
STOP语 ...
Read more
2022年7月17日
Fortran
Fortran Tutorial
[toc]
IF ELSE THEN 语句12345678910PROGRAM MAIN REAL :: x; READ *, x IF(x>0.0 .and. x<1.0) THEN PRINT *, " 在区间(0, 1)中" EL ...
Read more
2022年7月16日
Fortran
Fortran Tutorial
[toc]
Sublime Text配置Fortran高亮
下载插件fortran.tmbundle
解压到C:\Users\xxx\AppData\Roaming\Sublime Text\Packages,通过Sublime Text面板中Preferences>Browse Pa ...
Read more
2022年6月16日
Python
Tutorials
[toc]
图像处理旋转图片1234567891011121314151617181920212223import cv2def Rotation(image,degree): src= image rows, cols, channel = src.shape # 绕中心 ...
Read more
2022年6月16日
Python
Tutorials
[toc]
PyWebIO
https://github.com/pywebio/PyWebIO
https://pywebio.readthedocs.io/zh_CN/latest/
pyqtgraph绘图库
123pip install pyqtgraph #安装import py ...
Read more
2022年6月8日
Linux学习
Ubuntu手动搭建Web服务器
[toc]
使用Ubuntu手动搭建Web服务器安装Apache21sudo apt-get install apache2
然后即可打开刘浏览器访问127.0.0.1或Ubuntu ip地址
安装MySQL123sudo apt-get install mysql-serversudo ...
Read more