This example runs a simulation of the small molecule Alanine Dipeptide and streams logs and RMSD. RMSD is a metric for judging how similar two molecular states are for the same model.
The easiest way to install OpenMM is to use the Anaconda distribution of Python and run conda install -c https://conda.anaconda.org/omnia openmm
If you do not wish to use Anaconda, install OpenMM from source by following the instructions in the OpenMM docs
cd path/to/simstream/examples/openmm_examplepython openmm_log_consumer.pycd path/to/simstream/examples/openmm_examplepython openmm_rmsd_consumer.pycd path/to/simstream/examples/openmm_examplepython openmm_streamer.py application/sim.out application/trajectory.dcd application/input.pdb application/input.pdbcd path/to/simstream/examples/openmm_example/applicationpython alanine_dipeptide.py > sim.outThe Logfile Consumer should now be printing tagged log entries to the screen; the RMSD Consumer should be printing the calculated RMSD each time the trajectory file is written.