How to group some atom IDs from a specific atom type?

Dear All,

I want to apply a force to the top 10 atoms of a chain, knowing that the chain atoms are type two, how do I group them?

According to LAMMPS documentation , I know that I can group an atom type or I can group atom ids

group chain type 2
group sub-chain id 1:10

But I do not know how to group atom Id’s from a specific atom type number.

Thanks.

You can define a group that is an intersection of two groups.