[lammps-users] region plane and rotate

Dear All,

I tried to build a layer using region plane command, but it failed with error message
“ERROR: Invalid region style”

units real
boundary p p p
atom_style charge

lattice diamond 5.43
region space block 0 10 0 10 0 10

region diamondplane plane 5 5 5 1 1 1 units box

create_box 1 diamondplane
create_atoms 1 region diamondplane
mass 1 28.086

delete_atoms region vacuum

pair_style reax 10.0 1.0e-6
pair_coeff * * ffield.reax 6
group si type 1

what’s wrong with that above input?

I also tried to rotate box using rotate argument. It encountered the same error message:
units real
boundary f f f
atom_style charge

lattice diamond 5.43
region space block 0 10 0 10 0 10 rotate 10 0 5 0 10 5 1


so what’s wrong with this input?
than you in advance

with best wishes,

Are you running the most current version of LAMMPS,
that has the region plane option?

region diamondplane plane 5 5 5 1 1 1 units box
create_box 1 diamondplane

Also, this will be a problem. You can't make a box out
of an infinite plane.

Steve