File: in.pair_python_harmonic

package info (click to toggle)
lammps 20251210%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 465,808 kB
  • sloc: cpp: 1,031,565; python: 26,771; ansic: 8,808; f90: 7,302; sh: 5,316; perl: 4,171; fortran: 2,442; xml: 1,613; makefile: 1,119; objc: 238; lisp: 188; yacc: 58; csh: 16; awk: 14; tcl: 6; javascript: 2
file content (84 lines) | stat: -rw-r--r-- 1,793 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 3d soft repulsive particles

units           real
atom_style      atomic

lattice         fcc 5.0 origin 0.1 0.1 0.1
region          box block -5 5 -5 5 -5 5
create_box      2 box
create_atoms    1 box
set type 1 type/ratio 2 0.5 424662346
mass            * 1.0

velocity        all create 3.0 87287

pair_style      python 9.0
pair_coeff      * * py_pot.Harmonic A B

neighbor        1.0 bin
neigh_modify    every 2 delay 4 check yes

fix             1 all nve

thermo          50
run             250 post no

write_restart   repulsive.restart

clear

read_restart    repulsive.restart

pair_style      python 10.0
pair_coeff      * * py_pot.Harmonic A B

shell rm -f python.dat
pair_write 1 1 1000 rsq 0.1 10.0 python.dat PYTH_A_A
pair_write 2 2 1000 rsq 0.1 10.0 python.dat PYTH_B_B
pair_write 1 2 1000 rsq 0.1 10.0 python.dat PYTH_A_B

fix             1 all nve

thermo          50
run             250 post no

clear

read_restart    repulsive.restart

pair_style      harmonic/cut
pair_coeff      1 1 0.2 9.0
pair_coeff      2 2 0.4 9.0

shell rm -f harmonic.dat
pair_write 1 1 1000 rsq 0.1 10.0 harmonic.dat HARM_1_1
pair_write 2 2 1000 rsq 0.1 10.0 harmonic.dat HARM_2_2
pair_write 1 2 1000 rsq 0.1 10.0 harmonic.dat HARM_1_2

neighbor        1.0 bin
neigh_modify    every 2 delay 4 check yes

fix             1 all nve

thermo          50
run             250 post no

clear

read_restart    repulsive.restart

pair_style      table spline 1000
pair_coeff      1 1 python.dat PYTH_A_A
pair_coeff      1 2 python.dat PYTH_A_B
pair_coeff      2 2 python.dat PYTH_B_B

neighbor        1.0 bin
neigh_modify    every 2 delay 4 check yes

fix             1 all nve

thermo          50
run             250 post no

# remove temporary files
shell rm repulsive.restart harmonic.dat python.dat