Beispiel #1
0
    def __init__(self, period=1, phase=0):

        # initialize base class
        _updater.__init__(self);

        # create the c++ mirror class
        self.cpp_updater = _md.ZeroMomentumUpdater(hoomd.context.current.system_definition);
        self.setupUpdater(period, phase);

        # store metadata
        self.period = period
        self.metadata_fields = ['period']
Beispiel #2
0
 def _attach(self):
     # create the c++ mirror class
     self._cpp_obj = _md.ZeroMomentumUpdater(
         self._simulation.state._cpp_sys_def)
     super()._attach()