Acellera / htmd

HTMD: Programming Environment for Molecular Discovery
https://software.acellera.com/docs/latest/htmd/index.html
Other
253 stars 58 forks source link

Switch from NVT to NPT (Equilibration) #1066

Closed H-EKE closed 1 year ago

H-EKE commented 1 year ago

Hi,

Im new usign ACEMD. I have seen that it is possible to define the equilibration protocol as in the tutorial:

from htmd.protocols.equilibration_v3 import Equilibration
from htmd.mdengine.acemd.acemd import GroupRestraint

# Use a 10A flat bottom potential to prevent the ligand from diffusing from original position during equilibration
width = np.array([10, 10, 10])
flatbot = GroupRestraint('segname L and noh', width, [(5, '0ns')])

md = Equilibration()
md.runtime = 40
md.timeunits = 'ns'
md.temperature = 300
md.restraints = [flatbot] + md.defaultEquilRestraints('20ns')
md.useconstantratio = True
md.write(os.path.join(path,'build'), os.path.join(path,'equil'))

Is there a fast way to specify to do a certain amounts in NVT, and the shift to NPT? Im trying to adapt some NAMD scripts that I had where I combined cycles of NVT-NPT-NVT-NPT.

Thanks in advance!

stefdoerr commented 1 year ago

No sorry, you will need to run individual simulations in a row, ACEMD does not allow switching from NVT to NPT during runtime