This document is for OpenStructure version 2.3, the latest version is 2.7 !

Observers

Observers can be registered to a Simulation and get called at a defined interval.

Trajectory observers

class TrajObserver(rhythm)

Stores and updates the md trajectory produced by a Simulation in memory

Parameters:

rhythm (int) – Frequency, at which the observer gets notified by the simulation

GetTraj()

Get current Trajectory

Returns:

ost.mol.CoordGroupHandle

Rhythm()
Returns:

int calling rythm

class TrajWriter(rythm, pdb_filename, dcd_filename)

Writes the MD trajectory produced by a Simulation directly to disk in dcd format

Parameters:
  • rythm (int) – Frequency, at which the observer gets notified by the simulation

  • pdb_filename (str) – Name of produced pdb file

  • dcd_filename (str) – Name of produced dcd file

Rhythm()
Returns:

int calling rhythm

Finalize()

Obligatory function to be called after the last simulation step to write missing information into the dcd header

Search

Enter search terms or a module, class or function name.

Contents

Documentation is available for the following OpenStructure versions:

dev / 2.7 / 2.6 / 2.5 / 2.4 / 2.3.1 / (Currently viewing 2.3) / 2.2 / 2.1 / 2.0 / 1.9 / 1.8 / 1.7.1 / 1.7 / 1.6 / 1.5 / 1.4 / 1.3 / 1.2 / 1.11 / 1.10 / 1.1

This documentation is still under heavy development!
If something is missing or if you need the C++ API description in doxygen style, check our old documentation for further information.