lammps绘制温度云图
1 命令
compute 1 all chunk/atom bin/2d x lower 0.05 z lower 0.05 units reduced discard yes #X,Z方向分为20块
compute 2 all temp/chunk 1 temp com yes #去除chunk质心速度的温度
fix 1 all ave/chunk 10 100 1000 1 temp bias 2 file tempC.profile #每个块的平均温度
命令的使用可查手册
2 origin绘图
导出的数据存在tempC.profile文件中,打开如下。第一列为块序号,第二列为x方向,第三列为z方向,第四列为该块中的原子数,第五列为块温度。
数据导入到origin中,仅需第二列 第三列和第五列
数据网格化,以便做温度云图。
之后绘制云图二维云图即可。