I want to create a triangular lattice connected with spring potential. How do i do that?
Hi @Aakash_singh,
I don’t know what a “triangular lattice” means and this is not really a LAMMPS related question but you can have a look at the molecular builder software provided on the dedicated page of the LAMMPS website.
There is no such thing as a “triangular” lattice. Fully periodic lattices must have a parallelogram as basic shape (in 2d; in 3d you need a parallelepiped). So, at best you can have a lattice made from triangles and since you need at least two of them to form a parallelogram you need to define a suitable custom unit cell with the lattice command.
This sounds a bit like you don’t really want a lattice but rather want to construct a sheet from atoms in a triangular geometry with bonds between the atoms outlining the triangles.
This can be done with LAMMPS directly, but it requires two steps:
- create a geometry with atoms in the desired places (read the documentation of and experiment with the commands: lattice, region, create_atoms)
- create bonds between the atoms (read the documentation of the create_bonds command)