Skip to content

Allow for other barostats in SystemGenerator #413

@hannahbaumann

Description

@hannahbaumann

Currently, the barostat in _modify_forces is hard coded to be the MonteCarloBarostat (

# TODO: Make sure we can support other kinds of barostats?
barostat = openmm.MonteCarloBarostat(pressure, temperature, frequency)
).
For protein membrane simulations I want to use the MonteCarloMembraneBarostat. Would it be possible to allow for that here?

Additionally, it may be nice to throw a warning here if no box vectors are found and that it's switching the ff kwargs to nonperiodic:

if topology.getPeriodicBoxVectors() is None:
forcefield_kwargs.update(self.nonperiodic_forcefield_kwargs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions