Hello,
I wanted to ask if there is a way to add ions to neutralize the system without using the addSolvent function.
Best,
Hassan
Adding ions in OpenMM
- Peter Eastman
- Posts: 2611
- Joined: Thu Aug 09, 2007 1:25 pm
Re: Adding ions in OpenMM
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.
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.
- Hassan Nadeem
- Posts: 11
- Joined: Tue Apr 04, 2023 8:20 am
Re: Adding ions in OpenMM
Got it, thanks!
Yes, the systems are already solvated.
Yes, the systems are already solvated.