[lammps-users] triangular geometry

Hi all users,
I would like to ask u how i could impose a triangular region with atoms in my input file. Is this possible to make with the region command (style prism) or do i have to write a data file? Thank u very much in advance.Dorothy

You could write a region_triangle.cpp and add it to the code.
Or you could create your geometry outside LAMMPS and just
read it in via read_data.

See the attached file for an example region_triangle which I
use in training classes for LAMMPS sometimes.

Steve

region_triangle.cpp (1.93 KB)

region_triangle.h (920 Bytes)

Thank u very much for your answer.It was really very helpful.
Quoting Steve Plimpton <[email protected]>: