Skip to content

Commit e8e26ae

Browse files
committed
Make some progress
1 parent 29dd72a commit e8e26ae

File tree

7 files changed

+311
-46
lines changed

7 files changed

+311
-46
lines changed

examples/o3-averaging/data/in-mol.lmp

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
units electron
2+
atom_style full
3+
4+
pair_style lj/cut/tip4p/cut 1 2 1 1 0.278072379 17.001
5+
# high-pppm precision and shift to get meaningful fd estimates
6+
# kspace_style none
7+
# kspace_style pppm/tip4p 1e-5
8+
pair_modify shift yes
9+
bond_style class2
10+
angle_style harmonic
11+
12+
13+
read_data water_1_data.lmp
14+
pair_coeff * * 0 0
15+
pair_coeff 1 1 0.000295147 5.96946
16+
17+
neighbor 2.0 bin
18+
19+
20+
timestep 0.00025
21+
22+
#velocity all create 298.0 2345187
23+
24+
#thermo_style multi
25+
#thermo 1
26+
27+
#fix 1 all nvt temp 298.0 298.0 30.0 tchain 1
28+
#fix 1 all nve
29+
fix 1 all ipi h2o-lammps 32342 unix
30+
31+
32+
#dump 1 all xyz 25 dump.xyz
33+
34+
run 100000000
35+
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
3
2+
Lattice="100.0 0.0 0.0 0.0 100.0 0.0 0.0 0.0 100.0" Properties=species:S:1:pos:R:3:momenta:R:3 ipi_comment="Step: 200000 Bead: 0 positions{angstrom} cell{angstrom}" pbc="T T T"
3+
O -2.89770838 6.76492149 25.78733892 0.41094839 -0.09429088 0.29861888
4+
H -3.22693259 6.92327461 24.89600383 -0.31547195 0.04597911 -0.02131858
5+
H -3.73951469 6.82619967 26.21403556 -0.09547645 0.04831177 -0.27730030
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- safe_stride is the frequency at which i-PI makes internal snapshots for restarting -->
2+
<simulation verbosity='medium' threading='false' safe_stride='10'>
3+
<ffsocket name='lmpserial' mode='unix' pbc='false'>
4+
<address>h2o-lammps</address> <latency> 1e-4 </latency>
5+
</ffsocket>
6+
<ffrotations name='driver-noo3' mode='unix' pbc='false'>
7+
<address>h2o-noo3</address>
8+
<grid_order> 3 </grid_order>
9+
<grid_mode> legendre </grid_mode>
10+
<inversion> True </inversion>
11+
</ffrotations>
12+
<total_steps>10000</total_steps>
13+
<output prefix='nve-mol'>
14+
<trajectory stride='20' filename='pos' format='xyz'> positions </trajectory>
15+
<properties stride='20'> [ step, time, conserved, temperature{kelvin}, kinetic_md, potential, pressure_md ] </properties>
16+
</output>
17+
<prng>
18+
<seed>32123</seed>
19+
</prng>
20+
<system>
21+
<forces>
22+
<force forcefield='lmpserial'></force>
23+
<force forcefield='driver-noo3' weight="1.0"/>
24+
</forces>
25+
<initialize nbeads='1'>
26+
<file mode='ase'> init-mol.xyz </file>
27+
</initialize>
28+
<ensemble>
29+
<temperature units='kelvin'> 300 </temperature>
30+
</ensemble>
31+
<motion mode='dynamics'>
32+
<fixcom> True </fixcom>
33+
<dynamics mode='nve'>
34+
<timestep units='femtosecond'> 0.5 </timestep>
35+
</dynamics>
36+
</motion>
37+
</system>
38+
</simulation>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!-- safe_stride is the frequency at which i-PI makes internal snapshots for restarting -->
2+
<simulation verbosity='medium' threading='false' safe_stride='10'>
3+
<ffsocket name='lmpserial' mode='unix' pbc='false'>
4+
<address>h2o-lammps</address> <latency> 1e-4 </latency>
5+
</ffsocket>
6+
<ffsocket name='driver-noo3' mode='unix' pbc='false'>
7+
<address>h2o-noo3</address>
8+
</ffsocket>
9+
<total_steps>10000</total_steps>
10+
<output prefix='nve-mol'>
11+
<trajectory stride='20' filename='pos' format='xyz'> positions </trajectory>
12+
<properties stride='20'> [ step, time, conserved, temperature{kelvin}, kinetic_md, potential, pressure_md ] </properties>
13+
</output>
14+
<prng>
15+
<seed>32123</seed>
16+
</prng>
17+
<system>
18+
<forces>
19+
<force forcefield='lmpserial'></force>
20+
<force forcefield='driver-noo3' weight="1.0"/>
21+
</forces>
22+
<initialize nbeads='1'>
23+
<file mode='ase'> init-mol.xyz </file>
24+
</initialize>
25+
<ensemble>
26+
<temperature units='kelvin'> 300 </temperature>
27+
</ensemble>
28+
<motion mode='dynamics'>
29+
<fixcom> True </fixcom>
30+
<dynamics mode='nve'>
31+
<timestep units='femtosecond'> 0.5 </timestep>
32+
</dynamics>
33+
</motion>
34+
</system>
35+
</simulation>
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<simulation verbosity='medium' safe_stride='100'>
2+
<output prefix='water-noo3'>
3+
<properties filename='out' stride='1'>
4+
[ step, time{picosecond}, conserved, potential, kinetic_cv,
5+
scaledcoords(fd_delta=5e-3) ]
6+
</properties>
7+
</output>
8+
<ffsocket name='lmpserial' mode='unix' pbc='false'>
9+
<address>h2o-lammps</address> <latency> 1e-4 </latency>
10+
</ffsocket>
11+
<ffrotations name='noo3' mode='unix' pbc='false'>
12+
<address>h2o-noo3</address> <latency> 1e-4 </latency>
13+
</ffrotations>
14+
<system>
15+
<initialize nbeads='1'>
16+
<file mode='ase' units='angstrom'> init-mol.xyz </file>
17+
</initialize>
18+
<forces>
19+
<force forcefield='lmpserial'/>
20+
<force forcefield='noo3'/>
21+
</forces>
22+
<motion mode='replay'>
23+
<file mode='ase'> replay.xyz </file>
24+
</motion>
25+
</system>
26+
</simulation>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
LAMMPS Description
2+
3+
3 atoms
4+
2 bonds
5+
1 angles
6+
7+
2 atom types
8+
1 bond types
9+
1 angle types
10+
11+
-19 19.38859 xlo xhi
12+
-10 19.38859 ylo yhi
13+
-19 19.38859 zlo zhi
14+
15+
Masses
16+
17+
1 15.9994
18+
2 1.0080
19+
20+
Bond Coeffs
21+
22+
1 1.78 0.2708585 -0.327738785 0.231328959
23+
24+
Angle Coeffs
25+
26+
1 0.0700 107.400000
27+
28+
Atoms
29+
30+
1 1 1 -1.1128 7.098 8.901 17.941
31+
2 1 2 0.5564 8.700 8.073 18.276
32+
3 1 2 0.5564 7.555 10.053 16.607
33+
34+
Bonds
35+
36+
1 1 1 2
37+
2 1 1 3
38+
39+
Angles
40+
41+
1 1 2 1 3

0 commit comments

Comments
 (0)