Closed Ragzouken closed 3 months ago
Problem is that forces added after the system is constructed aren't recognised, but it seems we can reinitialise the context after adding it in the runner? https://github.com/IRL2/nanover-protocol/blob/main/python-libraries/nanover-omni/src/nanover/omni/openmm.py#L19-L44
nanover.omni.omm.OpenMMSimulation now does this
nanover.omni.omm.OpenMMSimulation
Problem is that forces added after the system is constructed aren't recognised, but it seems we can reinitialise the context after adding it in the runner? https://github.com/IRL2/nanover-protocol/blob/main/python-libraries/nanover-omni/src/nanover/omni/openmm.py#L19-L44