How does one the combine lattice and read_data commands?

Hi all,

I have a question regarding using the lattice command and using the read_data command together for a granular simulation. I would like to dictate grain locations based on the lattice command, but their densities and radii based on the file read using the read_data command. I understand the lattice command to act as a “ruler” or simply a grid of lattice points. I am new to LAMMPS, so thank you for any tips you can provide. Apologies if this question is a silly one. Thanks again for any advice.

O. Wala

You cannot do what you ask for. The data file is an all-or-nothing deal in that respect.

But you can set density and diameter after creating their location with create_atoms using the set command.

Thank you for you reply @akohlmey. I see that you are very active on this forum and I would like to say that you are a huge help to beginners of LAMMPS. Thank you and I appreciate your time.