Page 1 of 1

Adding ions in OpenMM

Posted: Thu Jun 22, 2023 1:01 pm
by hnadeem2
Hello,

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


Best,
Hassan

Re: Adding ions in OpenMM

Posted: Thu Jun 22, 2023 1:07 pm
by peastman
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.

Re: Adding ions in OpenMM

Posted: Thu Jun 22, 2023 1:20 pm
by hnadeem2
Got it, thanks!

Yes, the systems are already solvated.