compress a polymer chain


I have a polymer chain of polyvinyl alcohol of 2o monomers,along y axis

i want to compress it to density 1.26gm/cm3( experimental density)

can anybody tell me to how we can compress a chain using Lammps to desired density

any comments will be appreciated!!

See the fix deform command.