Skip to content

Remove osmotic ensemble support #62

Closed

Description

@lohedges

Loch only samples water, and the osmotic (μpT) ensemble isn't valid for water as the solvent of a dilute system, such as a solvated protein, which is loch's main use. Water's chemical potential is then almost that of pure water: the number of waters is fixed only by a tiny osmotic term, so the free energy is almost flat in that number. Any mismatch between the excess chemical potential and the water model's chemical potential at that temperature and pressure then drives the total water count steadily one way, until the ghost waters run out or the box dries out.

Sampling only within a GCMC sphere doesn't avoid this. Water diffuses between the sphere and the bulk during MD, so sphere moves with a barostat still sample the μpT ensemble for the whole system. They just drift more slowly than bulk moves. This has been seen in practice: an ABFE bound leg with GCMC under NPT used up all 80 ghost waters while the sphere never held more than 37.

The osmotic ensemble is valid for water only when its chemical potential depends strongly on how much is present, e.g. adsorption into a porous solid or water in a non-aqueous solvent. These aren't loch's target use.

Activity

  1. self-assigned this
    on Nov 9, 2026
  2. lohedges commented on Nov 12, 2026

    @lohedges
    ContributorAuthor

    Closed via #63.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions