10 October 2016 8 10K Report

I am a new lammps user (rpm version 4.11.2, Jul 25 2016). I have a

problem with my first script. I want to calculate lattice parameter

as a function of temperature (1 step) and then the stress generated by rapid cooling (2 step). For this I have  to stabilize system at high temperature - especially pressure (1 step). And here (1 step) I have a problem with the pressure fluctuation at high temperature that are very much higher than the temperature fluctuation. I attach my script (for 1 step) for a constant temperature (600 K) and pressure (1 bar). Attached script is for Al because  result can be compared with the experimental data from the literature. My goal is a intermetalic  compound that does not have such data.

I know that two fixes are not physical but fix2 (when active) significantly reduces pressure fluctuations. Can I do anything more or increase the system is the only way to improve?  I will also be grateful for other corrections,  especially information how to enter internal fix 1 data (temperature, pressure, volume) into output  file.

Greetings

Mirek

-----------------------

units metal

boundary p p p

atom_style atomic

pair_style meam

lattice fcc 4.078

region box block 0 16 0 16 0 16

create_box 1 box

lattice fcc 4.078 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1

create_atoms 1 box

mass 1 26.98

pair_style eam/alloy

pair_coeff * * Al99.eam.alloy Al

neighbor 2.0 bin

neigh_modify delay 0 every 1

compute eng all pe/atom

compute eatoms all reduce sum c_eng

reset_timestep 0

timestep 0.0001

velocity all create 1000 12345678 mom yes rot no

fix 1 all npt temp 600 600 1.0 iso 1.0 1.0 1.20 drag 0.5

# fix 2 all press/berendsen iso 1.0 1.0 10000.0

compute 2 all temp

thermo 500

thermo_style custom step temp press vol lx xlat

minimize 1e-30 1e-30 1000000 1000000

run 1000000

unfix 1

# unfix 2

variable natoms equal "count(all)"

variable teng equal "c_eatoms"

variable length equal "lx/10"

variable ecoh equal "v_teng/v_natoms"

print "Total energy (eV) = ${teng};"

print "Number of atoms = ${natoms};"

print ${length}

print "Lattice constant (Angstoms) = ${length};"

print "Cohesive energy (eV) = ${ecoh};"

print "All done!".

Similar questions and discussions