Hi,
I’m simulating gold nanoparticle by lammps.
My in.file is showed below.
units metal
dimension 3
atom_style atomic
boundary p p p
lattice fcc 4.07
region box sphere 0 0 0 0.708 units lattice
create_box 1 box
change_box triclinic
create_atoms 1 region box
mass 1 196.96
pair_style eam
pair_coeff * * Au_u3.eam
velocity all create 310.0 234242
fix 1 all nvt temp 300 300 1
fix 2 all temp/berendsen 300.0 300.0 1
timestep 0.000001
thermo 500
thermo_modify lost ignore norm no
dump 1 all xyz 100 dump.xyz
run 10000
neigh_modify every 1 delay 0 check yes
min_style hftn
minimize 1.0e-4 1.0e-6 1000 1000
variable natoms equal “count(all)”
print “Number of atoms = ${natoms};”
in simulations I’ve encountered with a few problems:
1 - When i consider the radius of region 0/708, 13 gold atoms are placed in it but when Iconsider it 0/707 gives the following error:
ERROR: Attempting to rescale a 0.0 temperature
2-I want to simulate the gold nanoparticles with 1-300 atoms. It is the only way to determine the number of atoms through the region command
, or is there another solution?
3-my system is in NVT ensemble, but when I use
fix 1 all nvt temp 300 300 0.1
temperture is variable during the simulation, and also when i use
fix 1 all nvt temp 300 300 0.1
fix 2 all temp/berendsen 300.0 300.0 10.0
the same result is repeated.
Thank you for your attention
Fatemeh Ramezani