Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This will run the whole model from start to end time time, so this can take some time.

There is also an alternative way to run a your model, like this :

Code Block
titleRun model with your own control flow
numberOfTimeSteps = int((fmModel.StopTime - fmModel.StartTime).TotalSeconds  / fmModel.TimeStep.TotalSeconds)

fmModel.Initialize()

for i in range(numberOfTimeSteps):
    fmModel.Execute()

fmModel.Finish()
fmModel.Cleanup()

Here you can control the run by calling the model run functions yourself , and maybe add your own logic for every timestep.