-
Notifications
You must be signed in to change notification settings - Fork 13
/
profile.lmp
47 lines (42 loc) · 1.59 KB
/
profile.lmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
################################################################################
# GRAPHENE: POTENTIAL PROFILE
################################################################################
#
# Input script for lammps to calculate the potential energy in function of the
# distance between carbon atoms in a graphene layer.
#
# When using this script, make sure that lammps is installed with the USER-REAXC
# and the MANYBODY packages.
#
# Date: 28/03/2016
# Author: Jeroen Mulkers
# Mail: [email protected]
#
################################################################################
# UNITS
# 'real' units are needed when using reax/c. A useful energy conversion factor
# is defined.
units real
variable fenergy equal 0.043 # Kcal/mole -> eV
# GRAPHENE SHEET
# The atom positions and the simulation box size will be read from a data file.
# Reactive force fields (reaxFF) are used to describe the interaction between
# the carbon atoms.(The pair_style reax is deprecated. so we use the modern
# reax/c implementation)
dimension 2
boundary p p p
atom_style charge
read_data graphene.dat
pair_style reax/c NULL checkqeq no
pair_coeff * * ffield.reax C
# OUTPUT
# Calculate the average total energy per atom and the distance 'a' between
# carbon atoms in two ways (should give the same size)
variable energy equal etotal/atoms*${fenergy}
variable a1 equal lx/3
variable a2 equal ly/sqrt(3)
thermo_style custom step etotal pe ke v_energy v_a1 v_a2 pxx pyy
# DEFORMATION
fix 1 all deform 1 x erate 0.001 y erate 0.001 remap x
thermo 1
run 2000