If the points listed below were added to the INTERNAL wrapper, the adding of some points (close or at the simulation box margin) fail.
script:
from simlammps import read_data_file
from simphony.core.cuba import CUBA
from simphony.engine import lammps
# define the wrapper to use.
wrapper = lammps.LammpsWrapper(use_internal_interface=True)
# define the CM component of the SimPhoNy application model:
wrapper.CM_extension[lammps.CUBAExtension.THERMODYNAMIC_ENSEMBLE] = "NVE"
wrapper.CM[CUBA.NUMBER_OF_TIME_STEPS] = 10
wrapper.CM[CUBA.TIME_STEP] = 0.005
# Define the BC component of the SimPhoNy application model:
wrapper.BC_extension[lammps.CUBAExtension.BOX_FACES] = ["periodic",
"fixed",
"periodic"]
for particles in read_data_file("restart_lammps_small.data"):
data = particles.data
data[CUBA.MATERIAL_TYPE] = 1
particles.data = data
wrapper.add_particles(particles)
wrapper.run()
orthogonal box = (0 -0.00766309 -8.51455) to (34.0582 76.6386 8.51455)
change_box all x final 0.0000000000000000e+00 3.4058196995269022e+01 y final -7.6630943239355308e-03 7.6638606333679235e+01 z final -8.5145492488172554e+00 8.5145492488172554e+00
orthogonal box = (0 -0.00766309 -8.51455) to (34.0582 76.6386 8.51455)
orthogonal box = (0 -0.00766309 -8.51455) to (34.0582 76.6386 8.51455)
orthogonal box = (0 -0.00766309 -8.51455) to (34.0582 76.6386 8.51455)
create_atoms 1 single 3.40581969953 0.0 -8.51454924882 units box
Created 0 atoms
create_atoms 1 single 2.55436477465 0.0 -7.66309432394 units box
Created 1 atoms
create_atoms 1 single 0.851454924882 0.851454924882 -8.51454924882 units box
Created 0 atoms
create_atoms 1 single 1.70290984976 0.0 -8.51454924882 units box
Created 0 atoms
create_atoms 1 single 1.70290984976 0.851454924882 -7.66309432394 units box
Created 1 atoms
create_atoms 1 single 0.851454924882 0.0 -7.66309432394 units box
Created 1 atoms
create_atoms 1 single 0.0 0.0 -8.51454924882 units box
Created 0 atoms
create_atoms 1 single 0.0 0.851454924882 -7.66309432394 units box
Created 1 atoms
create_atoms 1 single 2.55436477465 0.851454924882 -8.51454924882 units box
Created 0 atoms
If the points listed below were added to the INTERNAL wrapper, the adding of some points (close or at the simulation box margin) fail.
script:
lammps data file "restart_lammps_small.data"
lammps log