当前位置:网站首页>Homogeneous nucleation of ice by lammps
Homogeneous nucleation of ice by lammps
2022-04-22 03:51:00 【Mr. Material】
Column browsing 《LAMMPS Example tutorial —In File, 》

Lammps Achieve homogeneous nucleation of ice
One 、 Preface
Take homogeneous nucleation as an example , Realize the curing process of water .
Two 、Lammps Realization
1、 Core commands and force field settings
# Define SW potentials parameters.
pair_style sw
pair_coeff * * mW.sw H2O
fix 1 all npt temp ${
T_fi} ${
T_fi} ${
damp_T} iso 1.0 1.0 ${
damp_P}
2、 All the code
###################################### General Variables #######################################
# Initalizes random number generator.
#variable rnd equal round(random(0,999999,${
RANDOM}))
# Initial definitions.
variable T equal 350 # Simulation temperature (K).
variable T_fi equal 200 # Supercooling temperature temperature (K).
variable kB equal 8.617343e-05 # Boltzmann constant (eV/K).
# Time variables.
variable t_eq equal 20000 # Equilibration steps.
variable t_c equal 100000 # Temperature change steps.
variable dt equal 0.005 # Timestep (ps).
variable damp_T equal 100*${
dt} # Damp parameter for the thermostat (ps).
variable damp_P equal 1000*${
dt}
#------------------------------------------------------------------------------------------------------#
######################################## Atomic setup ##########################################
# Defines the style of atoms, units and boundary conditions.
dimension 3
atom_style atomic
units metal
boundary p p p
# Read atoms positions, velocities and box parameters.
read_data ini_system.data
neigh_modify delay 0
#mass 1 18.01528
group water type 1
velocity all create 200 97287 dist gaussian
# Define SW potentials parameters.
pair_style sw
pair_coeff * * mW.sw H2O
timestep ${
dt}
minimize 1.0e-6 1.0e-8 1000 1000
minimize 1.0e-5 1.0e-7 1000 10000
minimize 1.0e-5 1.0e-7 1000 10000
reset_timestep 0
#------------------------------------------------------------------------------------------------------#
################################ Fixes, computes and constraints ###############################
# Integrator & thermostat.
#fix f1 all nve
#fix f2 all langevin $T $T ${
damp_T} ${
rnd}
#variable rnd equal round(random(0,999999,0)) # Generates new rnd #.
# Compute****.
compute KE all ke/atom
compute PE all pe/atom
#compute c2 all pair ufm
#------------------------------------------------------------------------------------------------------#
########################################## Output setup ########################################
# Output variables.
#variable step equal step
#variable dU equal (c_c1-c_c2)/atoms # Driving-force during NEHI procedure.
# Thermo output.
thermo_style custom step temp press pe ke etotal enthalpy epair vol density
thermo 1000
#------------------------------------------------------------------------------------------------------#
########################################## Run simulation ######################################
fix 1 all npt temp ${
T_fi} ${
T_fi} ${
damp_T} iso 1.0 1.0 ${
damp_P}
dump 1 all custom 1000 equilibrate.dump id type x y z vx vy vz fx fy fz c_KE c_PE
run ${
t_c} # 20ps
undump 1
unfix 1
write_data 200K.data
# Ice procress.
fix 2 all nvt temp ${
T_fi} ${
T_fi} ${
damp_T}
dump 2 all custom 10000 ice.dump id type x y z vx vy vz fx fy fz c_KE c_PE
run 5000000
write_data fianl.data
3、 ... and 、 Ice structure analysis
1. Q 6 M a t l a b \rm Q6\ Matlab Q6 Matlab Calculation
Please refer to the blog :《 Key sequence parameter MATLAB—— Ice nucleation recognition 、 Melt identification (Steinhardt bond orientational order parameters)》

2. Ovito Calculation


版权声明
本文为[Mr. Material]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220350526782.html
边栏推荐
- Rasa dialogue robot serial 1 lesson 121: the whole process demonstration of e-commerce retail dialogue robot operation process debugging of Rasa dialogue robot debugging project - 1
- "Select command denied to user 'nature' @ '192.168.1.49' for table 'user_variables_by_thread" is solved in MySQL‘“
- Senet | attention mechanism - source code + comments
- JDBC使用预编译执行DQL语句输出都是占位符内容,这是为什么呢?
- JS dynamically generates a table and adds a scroll bar
- Uninstall Oracle
- The third year after the epidemic: technical management and teamwork under the changing times!
- Installation team and installation free version
- 2021-11-06 database
- 虚拟dom
猜你喜欢

Deep learning and image recognition: principle and practice notes day_ ten

Zabbix5 series - making topology map (XIII)

Botu monitor floating-point variable display 16 7fc0_ 0000 exception

Common tool NC Wireshark rebound shell

Leetcode1615. Maximum network rank (medium)

How to generate PCB real-time snapshot in 3D in Ad

Nacos 为什么这么强

Solution of stm32i2c

2022-04-21: given a blacklist containing non repeating integers in [0, n), write a function to return a random integer not in the blacklist from [0, n), and optimize it to minimize the number of calls

DO447Ansible Tower导航
随机推荐
【C】猜数字,关机小程序,一些分支循环的练手题
Vscode shell
7-Zip exposes zero day security vulnerabilities! Provide administrator privileges to attackers by "impersonating file extensions"
Redis persistence
Virtual DOM
机器学习理论之(6):由逻辑回归(对数几率)方法到 SVM;为什么 SVM 是最大间隔分类器
解决方案| 快对讲调度系统:高效协作
查看应用程序内存使用情况
Use of logical backup MySQL dump in MySQL
1 ActiveMQ introduction and installation
染色法判定二分图
Understanding and analyzing log files
Une solution pour enregistrer l'échec de la connexion à distance MySQL dans la configuration du serveur Cloud
[server data recovery] a data recovery case in which multiple hard disks of server raid6 are offline successively
Go gin framework configuration log output to file
容联七陌赋能企业智能化服务,重新定义客服价值
Deep learning and image recognition: principle and practice notes day_ fourteen
Wonderful linkage! Principle and practice of openmldb pulsar connector
记一次云服务器配置mysql 远程连接失败的解决方案
博图监视浮点型变量显示16#7FC0_0000异常