Adding ions in OpenMM

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Hassan Nadeem
Posts: 10
Joined: Tue Apr 04, 2023 8:20 am

Adding ions in OpenMM

Post by Hassan Nadeem » Thu Jun 22, 2023 1:01 pm

Hello,

I wanted to ask if there is a way to add ions to neutralize the system without using the addSolvent function.


Best,
Hassan

User avatar
Peter Eastman
Posts: 2552
Joined: Thu Aug 09, 2007 1:25 pm

Re: Adding ions in OpenMM

Post by Peter Eastman » Thu Jun 22, 2023 1:07 pm

Sure, you can call modeller.add() to add anything you want. You'll need to pick the ion positions yourself in that case.

Is the reason for not using addSolvent() just that you don't want to add any water? If you set numAdded to the number of ions, that will ensure it doesn't add anything else.

User avatar
Hassan Nadeem
Posts: 10
Joined: Tue Apr 04, 2023 8:20 am

Re: Adding ions in OpenMM

Post by Hassan Nadeem » Thu Jun 22, 2023 1:20 pm

Got it, thanks!

Yes, the systems are already solvated.

POST REPLY