How to fix (anchor/constraint ) one end of the CNT?

Dear lammps user

I have generated the coordinates of CNT (through VMD). Now I am interseted to calculate the Young’s Modulus for CNT. Therefore I want to know how to constraint(or make it fixed) from one end and apply a force to other end.

Thanking you,

See fix setforce and fix addforce.

Steve