How to differentiate each component in an oil mixture

Dear users, I created an oil phase mixture in MS and imported it into Lammps to run molecular dynamics. I want to analyze its density distribution on the wall surface, but there is currently no way to distinguish each component in the oil phase.Is there any way to distinguish the components? Hope your reply sincerely.

That mostly depends on your data file and how the different components are ordered and defined in there.

Please have a look at the group command documentation, which explains different ways to group atoms.

Thank you for your comment ! I’ll have a try.