How to apply sinusoidal deformation

Dear Everyone,

I have a periodic polymer system, and I want to deform one direction sinusoidally.

I know “fix deform” can perform monotonic deformation, is there any way to control the deformation as a sinusoidal function?

Many thanks,

Lili Zhang

hi,

you can use the wiggle keyword with fix deform to change the box size sinusoidally. it’s described on the doc page - http://lammps.sandia.gov/doc/fix_deform.html

best,
nikita

More generally, fix deform has a variable option, so you can define whatever
function you like that specifies the box length as a function of time.
The doc page has details.

Steve