Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions python/BioSimSpace/Sandpit/Exscientia/Protocol/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,8 @@ def generateGromacsConfig(
protocol_dict["pcoupl"] = "Berendsen" # Berendsen barostat.
# Do the MC move every 100 steps to be the same as AMBER.
protocol_dict["nstpcouple"] = 100
# 4ps time constant for pressure coupling.
# As the tau-p has to be 10 times larger than nstpcouple * dt (4 fs)
protocol_dict["tau-p"] = 4
# 25 times larger than nstpcouple * dt.
protocol_dict["tau-p"] = 2500 * timestep
protocol_dict["ref-p"] = (
f"{self.protocol.getPressure().bar().value():.5f}" # Pressure in bar.
)
Expand Down
6 changes: 4 additions & 2 deletions python/BioSimSpace/_Config/_gromacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ def createConfig(self, version=None, extra_options={}, extra_lines=[]):
protocol_dict["pcoupl"] = "c-rescale"
else:
protocol_dict["pcoupl"] = "berendsen"
# 1ps time constant for pressure coupling.
protocol_dict["tau-p"] = 1
# Do the MC move every 100 steps to be the same as AMBER.
protocol_dict["nstpcouple"] = 100
# 25 times larger than nstpcouple * dt.
protocol_dict["tau-p"] = 2500 * timestep
# Pressure in bar.
protocol_dict["ref-p"] = (
f"{self._protocol.getPressure().bar().value():.5f}"
Expand Down
Loading