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

Compare with Current View Page History

Version 1 Next »

We start by creating a line geometry using the cell centers.

Set intial confitions
 lineGeometry = mf.CreateLineGeometry([cell.Center.X, cell.Center.Y] for cell in fmModel.Grid.Cells)
Set intial confitions
initialConditions = wps.GetTidalPredictForTime(startTime, lineGeometry, EPSGCode)



fmModel.InitialWaterLevels.SetValues(initialConditions)

 

 

Set dtMax and dtInitial
# 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()))
Set model times
# set model times
SetModelTimes(fmModel, startTime, endTime, time(6,0,0))

 

 

  • No labels