You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The model is now almost ready to run, but there are still three more things we must do. Starting with generating an computational grid for the network. This is done by using the "CreateComputationalGrid" call:

Create computational grid
CreateComputationalGrid(flowModel, gridAtFixedLength = True, fixedLength = 200)

This creates an grid that has a calculation point at every 200 meters.

Secondly we need to set the calculation times (start and stop time and the timestep)

Set model times
from datetime import datetime, time

SetModelTimes(flowModel, datetime(2007, 1, 15, 1, 0, 0), datetime(2007, 1, 17, 1, 0, 0), time(0,10,0,))

 

The last thing we need to do is to rename a gridpoint location called "stadsgrachten Zwolle Midden_0.000" to "Gauging Station". This is because we use this later on in the tutorial (we will have measurements for this point)

Rename gridpoint location "stadsgrachten Zwolle Midden_0.000" to "Gauging Station"
dataPoint = GetComputationGridLocationByName(flowModel, "stadsgrachten Zwolle Midden_0.000")
dataPoint.Name = "Gauging Station"

 

  • No labels