mirror of
https://asciireactor.com/otho/lammps-graphene.git
synced 2024-11-24 07:45:07 +00:00
31 lines
840 B
Plaintext
31 lines
840 B
Plaintext
|
# Relax atoms and box
|
||
|
|
||
|
units metal
|
||
|
atom_style atomic
|
||
|
dimension 3
|
||
|
boundary p p m
|
||
|
|
||
|
read_data _DATA_FILE
|
||
|
|
||
|
pair_style sedrebo 0.0 0 0
|
||
|
pair_coeff * * _POTENTIAL_FILE C
|
||
|
|
||
|
velocity all create 0. 493838
|
||
|
|
||
|
compute bond_length all pair/local dist
|
||
|
compute crd all coord/atom 2.0
|
||
|
compute atomic_energy all pe/atom
|
||
|
compute atomic_stress all stress/atom
|
||
|
variable atomic_pressure atom (c_atomic_stress[1]+c_atomic_stress[2])/2
|
||
|
#compute total_stress all reduce sum c_atomic_stress
|
||
|
|
||
|
timestep 0.0002
|
||
|
thermo 1
|
||
|
thermo_style custom step etotal press
|
||
|
thermo_modify format float %.10f
|
||
|
|
||
|
#dump RDUMP all custom 1 _OUTPUT_DIR/*.dump id x y z c_crd c_atomic_energy c_atomic_stress v_atomic_pressure c_atomic_stress[4]
|
||
|
dump RDUMP all custom 1 _OUTPUT_DIR/*.dump id x y z c_atomic_energy
|
||
|
|
||
|
minimize 1.0e-12 1.0e-6 10000 600000
|
||
|
min_style cg
|