How to create pyramid diamond tools ?
You can use an intersection of multiple “plane” regions.
1 Like
Here is a quick example script that will create the geometry shown here:
units metal
atom_style atomic
lattice diamond 3.52 origin 0.1 0.1 0.1
region box block -20.0 20.0 -20.0 20.0 -20.0 20.0
create_box 1 box
region top plane 0.0 0.0 20.0 0.0 0.0 -1.0
region side1 plane 0.0 0.0 0.0 1.5 0.0 1.0
region side2 plane 0.0 0.0 0.0 -1.5 0.0 1.0
region side3 plane 0.0 0.0 0.0 0.0 1.5 1.0
region side4 plane 0.0 0.0 0.0 0.0 -1.5 1.0
region pyramid intersect 5 top side1 side2 side3 side4
create_atoms 1 region pyramid
write_dump all image pyramid.png type type size 960 960 zoom 1.4 view 75 15 ssao yes 4624256 0.6 modify adiam 1 2.5
1 Like