~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to examples/streitz/in.streitz.ewald

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Streitz-Mintmire potential with alpha-alumina
 
2
# option to use with Ewald or Wolf sum
 
3
# EAM (AlO.eam.alloy) includes 1994 SM and 2004 Zhou versions
 
4
# Streitz Mintmire (coul/streitz) does not include 2004 Zhou modifications
 
5
# Contributing authors: Ray Shan, Chris Weinberger (Sandia)
 
6
 
 
7
units           metal
 
8
atom_style      charge
 
9
dimension       3
 
10
boundary        p p p
 
11
 
 
12
read_data       data.streitz
 
13
 
 
14
group           type1 type 1
 
15
compute         charge1 type1 property/atom q
 
16
compute         q1 type1 reduce ave c_charge1
 
17
group           type2 type 2
 
18
compute         charge2 type2 property/atom q
 
19
compute         q2 type2 reduce ave c_charge2
 
20
 
 
21
variable        qcat equal 2.8
 
22
variable        qani equal -${qcat}*count(type1)/count(type2)
 
23
set             group type1 charge ${qcat}
 
24
set             group type2 charge ${qani}
 
25
variable        qsum equal count(type1)*c_q1+count(type2)*c_q2
 
26
 
 
27
# Ewald sum for coul/streitz
 
28
pair_style      hybrid/overlay coul/streitz 12.0 ewald eam/alloy
 
29
kspace_style    ewald 1e-6
 
30
 
 
31
# Wolf sum for coul/streitz
 
32
#pair_style     hybrid/overlay coul/streitz 12.0 wolf 0.31 eam/alloy
 
33
 
 
34
pair_coeff      * * coul/streitz AlO.streitz Al O
 
35
pair_coeff      * * eam/alloy AlO.eam.alloy Al O
 
36
 
 
37
neighbor        1.0 bin
 
38
neigh_modify    every 10 delay 0 check yes
 
39
timestep        0.0004
 
40
 
 
41
thermo_style    custom step temp etotal pe evdwl ecoul elong &
 
42
                c_q1 c_q2 v_qsum press spcpu
 
43
thermo_modify   norm yes
 
44
thermo          10
 
45
 
 
46
velocity        all create 300.0 42128
 
47
fix             1 all qeq/slater 1 12.0 1.0e-6 100 coul/streitz
 
48
fix             2 all nve
 
49
 
 
50
run             100