2024年6月22日
Python
Tutorials
[toc]
给字体添加红色框ax.text()12345678910111213import matplotlib.pyplot as plt# 创建一个简单的图fig, ax = plt.subplots()ax.plot([1, 2, 3], [4, 5, 6])# 添加带有红色边框的文 ...
Read more
2024年6月17日
Lammps
相图
[toc]
dCCI method
dynamic Clausius–Clapeyron integration (dCCI)
dCCI方法的优点在于,它使用相对较短的单次非平衡模拟,提供了跨越大范围热力学状态的共存曲线
安装配置环境Clone DCCI库到src文件12cd ./l ...
Read more
2024年6月4日
向日葵远程
向日葵远程远程连接键盘鼠标失控
问题描述
向日葵远程连接时,ctrl键或者其他键失控,导致滚动变成了缩放等问题。
解决方法:
(1)按住 Alt 键3秒左右松开,键盘就会恢复正常;
(2)Ctrl+Alt+Delete 启动任务管理器,键盘就会恢复正常;
参考:[1] 工具向日葵远程控制之后键盘失效、自动锁定按住Alt ...
Read more
2024年5月29日
PALABOS
LBM
[toc]
userInput主要读取参数代码位置123456palabos/examples/codesByTopic/userInput├── build├── CMakeLists.txt├── demo.xml├── readParameters.cpp└── tmp
代码分析12 ...
Read more
2024年5月28日
PALABOS
LBM
[toc]
ShanChen模型
Shan-Chen模型是一种常用的多相流模型,它可以很好地描述流体中的相变现象和界面运动。
Shan/Chen模型在Palabos中实现了2D和3D,广泛用于非混相多组分流体和单组分多相流体的。
可以有效地模拟多相流体系统中的各种复杂现象,比如气 ...
Read more
2024年4月28日
PALABOS
LBM
[toc]
代码风格基本数据类型
采用plint和pluint代替int和unsigned int
为了64位的兼容性;
采用pcout代替cout;采用pcerr代替cerr;采用pclog代替clog;采用ofstream代替ofstream;
In an MPI-parall ...
Read more
2024年4月23日
PALABOS
LBM
[toc]
软件简介
Palabos 库是通用计算流体动力学 (CFD) 的框架,其内核基于格子玻尔兹曼 (LB) 方法。 它既可用作研究工具,也可用作工程工具:其编程界面简单明了,可以相对轻松地设置流体流动模拟,或者,如果您了解格子玻尔兹曼方法,则可以使用自己的方法扩展该库 楷模。 Pal ...
Read more
2024年3月28日
LAMMPS
TIP4P
温度分布
[toc]
计算温度分布脚本12345678910compute ke all ke/atomvariable kB equal 1.3806504e-23 # [J/K] Boltzmannvariable kcalpermol2J equal 4186.0/6.0 ...
Read more
2024年2月26日
机器学习
论文复现
[toc]
论文简介
Renewable and Sustainable Energy Reviews 173 (2023) 113103
题目
A reliable model to predict the methane-hydrate equilibrium: An updat ...
Read more
2024年1月22日
git push
Connection timed out
报错信息:12345ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.Please make sure you have the ...
Read more