In order to test our workflows, we might want to implement a very fast Protocol that generates valid nonequilibrium cycling data with analytically known results and very fast execution times.
To do this, we can sample from two harmonic oscillators with a specific free energy difference and transformation difficulty (which arises from the stddev of work values).
To make sure the free energies are reproducible, we could extract the dimensionless harmonic oscillator centers (O_k) and spring constants (K_k) for each harmonic oscillator from the transformation inputs so that they are deterministic and depend on the inputs for each ligand.
In order to test our workflows, we might want to implement a very fast
Protocol
that generates valid nonequilibrium cycling data with analytically known results and very fast execution times.To do this, we can sample from two harmonic oscillators with a specific free energy difference and transformation difficulty (which arises from the stddev of work values).
We can use
HarmonicOscillatorsTestCase
frompymbar.testsystems
to do this, using code like this:To make sure the free energies are reproducible, we could extract the dimensionless harmonic oscillator centers (
O_k
) and spring constants (K_k
) for each harmonic oscillator from the transformation inputs so that they are deterministic and depend on the inputs for each ligand.