# How to perform the oscillatory shear by gromacs?

**URL:** <https://gromacs.bioexcel.eu/t/how-to-perform-the-oscillatory-shear-by-gromacs/11643>\
**Category:** User discussions\
**Tags:** mdp-parameters\
**Created:** [February 27, 2025, 7:06am UTC](https://gromacs.bioexcel.eu/t/how-to-perform-the-oscillatory-shear-by-gromacs/11643 "2025-02-27T07:06:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanJik](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@SanJik](https://gromacs.bioexcel.eu/u/SanJik)\
**Post date:** [February 27, 2025, 7:06am UTC](https://gromacs.bioexcel.eu/t/how-to-perform-the-oscillatory-shear-by-gromacs/11643/1 "2025-02-27T07:06:14Z")

</div>

GROMACS version:2023.5  
GROMACS modification: Yes/No  
Hi all,  
I have read some papers about the viscoelasticity of liquid by doing oscillatory shear via non-equilibrium molecular  
dynamics simulations.  
I want to do some same research. But I don’t konw how to build the system.  
Now I have built the liquid molecular box, and done NPT process. But I don’t konw how to set the oscillatory shear.  
I try to use the “deform” option. Does this option can set oscillatory shear like sinusoidal form?  
If “deform” option cannot do this research, how can I doing the viscoelasticity of liquid simulations?  
A quick help will be appreciated.  
Thanks
