Periodic

class hoomd.trigger.Periodic(period, phase)

Bases: Trigger

Trigger periodically.

Parameters:
  • period (int) – timesteps for periodicity

  • phase (int) – timesteps for phase

Periodic evaluates True every period steps offset by phase:

return (t - phase) % period == 0

Example:

trigger = hoomd.trigger.Periodic(period=100)

Members inherited from Trigger:

__call__()

Evaluate the trigger. Read more...

compute()

Evaluate the trigger. Read more...


Members defined in Periodic:

period

periodicity in time step.

Type:

int

phase

phase in time step.

Type:

int

__eq__(other)

Test for equivalent triggers.

__str__()

Human readable representation of the trigger as a string.