The simulate Method

The simulate method for the PID model is shown below. Notice that the force is deactivated after the first 10 seconds.

  def simulate(self):
    """
    Run a trial simulation
    """
    self.run = self.model.simulate(end=10,dtout=0.01,returnResults=True,output='on')
    self.model.force.active = False
    self.run = self.model.simulate(end=100,dtout=0.01,returnResults=True,output='on')