git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4648 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2010-09-01 18:55:48 +00:00
parent 7d832b4db1
commit 6ce7d46695
31 changed files with 40376 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Example of a hydrogen plasma, using pre-set velocities for a temperature of 20000K (nve), setting the velocities to 50000K (nvt), and an isobaric-isothermic case (npt) to show volume and density convergence at specified temperature (20000K) and pressure (1GPa).

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
variable sname index h2bulk
log ${sname}.npt.log
units electron
newton on
boundary p p p
atom_style electron
read_data data.${sname}
pair_style eff/cut 30.627847 0 0
pair_coeff * *
neigh_modify one 20000 page 200000
communicate single vel yes
compute effTemp all temp/eff
thermo 100
thermo_style custom step pe temp press vol
thermo_modify temp effTemp
# structure minimization
dump 1 all xyz 1 ${sname}.min.xyz
min_style cg
minimize 0 1.0e-4 1 10000
undump 1
# create initial velocities according to temp, w/out e radial dof
velocity all create 20000.0 4928459 rot yes dist gaussian
# npt
fix 1 all npt/eff temp 20000.0 20000.0 1.0 iso 1e9 1e9 1.0
variable density equal 11.2058851*mass(all)
thermo_style custom step pe temp press vol v_density
thermo_modify temp effTemp
dump 2 all xyz 10000 ${sname}.npt.xyz
dump 3 all custom 10000 ${sname}.npt.lammpstrj id type x y z spin eradius
run 10000000
unfix 1
undump 2
undump 3

View File

@ -0,0 +1,48 @@
variable sname index h2bulk
log ${sname}.nve.log
units electron
newton on
boundary p p p
atom_style electron
read_data data.${sname}
pair_style eff/cut 30.627847 0 0
pair_coeff * *
neigh_modify one 10000 page 100000
communicate single vel yes
compute effTemp all temp/eff
thermo 1000
thermo_style custom step pe temp press
thermo_modify temp effTemp
# structure minimization
min_style cg
minimize 0 1.0e-4 1000 10000
timestep 0.001
velocity all create 20000.0 4928459 rot yes mom yes dist gaussian
# nve
fix 1 all nve/eff
#fix 2 all imd 8888 trate 1 unwrap on nowait on
compute peatom all pe/atom
compute keatom all ke/atom/eff
dump 2 all xyz 1000 ${sname}.nve.xyz
dump 3 all custom 1000 ${sname}.nve.lammpstrj id type x y z spin eradius c_peatom c_keatom
run 100000
unfix 1
#unfix 2
undump 2
undump 3