[CIG-SHORT] Time step

Birendra jha bjha7333 at yahoo.com
Sun May 13 14:06:22 PDT 2012


Dear Brad,

In TimeDependent.py run(self, app), delta t is retrieved as:

      # Get time step for advancing in time
      dt = self.formulation.getTimeStep()

What if this dt takes the simulator beyond the final time, i.e., beyond self.formulation.getTotalTime()?

Is following a good idea:

      if t+dt>self.formulation.getTotalTime():
        dt = self.formulation.getTotalTime()-t

Thanks
Birendra



More information about the CIG-SHORT mailing list