Restarting rigid body simulations, molecules breaking up

90 views
Skip to first unread message

Ramanish Singh

unread,
Jul 2, 2021, 1:01:49 PM7/2/21
to hoomd-users
Hi,

I want to simulate a box of rigid molecules at a fixed density and temperature.
I first start with a very big box with the desired number of molecules, shrink it to the desired density and save the last frame. I then use that frame to start an NVT MD simulation.  The problem is that my rigid bodies are breaking up in the NVT simulatin (i.e. I do not know how to make them rigid in the NVT simulation).

The manual says : " You still need to specify the same local body space environment to rigid as you did in the earlier simulation". But I am not able to understand how to execute it.

I have attached my python files.
shrink-md.py : Generates the system and brings it to the target density
md.py : NVT MD file that uses out-shrink.gsd to create initial structure

Thanks.

Thanks,
Ramanish
md.py
shrink-md.py

Joshua Anderson

unread,
Jul 2, 2021, 1:07:30 PM7/2/21
to hoomd...@googlegroups.com
Ramanish,

You are missing the `constrain.rigid` and the relevant parameters in your `md.py` file. This is what defines the rigid bodies.

rigid = hoomd.md.constrain.rigid();
rigid.set_param('V',
types=['CH3']*2,
positions=[(-0.106,0,0),(0.106,0,0)],
charges=[0,0])
------
Joshua A. Anderson, Ph.D.
Research Area Specialist, Chemical Engineering, University of Michigan
> --
> You received this message because you are subscribed to the Google Groups "hoomd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hoomd-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hoomd-users/a8ae5a8d-b0ad-40da-a124-440bb4ac5a31n%40googlegroups.com.
> <md.py><shrink-md.py>

Ramanish Singh

unread,
Jul 2, 2021, 1:12:23 PM7/2/21
to hoomd-users
Thanks Josh!
Reply all
Reply to author
Forward
0 new messages