Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
scrollbar |
---|
We start by creating a line geometry using the cell centers.
Code Block | ||||
---|---|---|---|---|
| ||||
coordinates = [cell.Center.X, cell.Center.Y] for cell in fmModel.Grid.Cells |
Code Block | ||||
---|---|---|---|---|
| ||||
initialConditions = wps.GetTidalPredictForTime(startTime, lineGeometry, EPSGCode) fmModel.InitialWaterLevels.SetValues(initialConditions) |
Code Block | ||||
---|---|---|---|---|
| ||||
# set model max and initial timestep size timeStep = timedelta(hours=1) SetModelProperty(fmModel, KnownProperties.DtMax, str(timeStep.total_seconds())) SetModelProperty(fmModel, KnownProperties.DtInit, str(timeStep.total_seconds())) |
Code Block | ||||
---|---|---|---|---|
| ||||
# set model times
SetModelTimes(fmModel, startTime, endTime, time(6,0,0)) |
scrollbar |
---|