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

Compare with Current View Page History

« Previous Version 3 Next »

When adding boundary conditions to the model you must first declare the type of the boundary you want to add. This is done as follows for a waterlevel timeseries:

Creare timeseries boundaries
flowLeftBoundaryCondition = AddFlowBoundaryCondition(fmModel, leftBoundary.Name, FlowBoundaryQuantityType.WaterLevel, BoundaryConditionDataType.TimeSeries)
flowTopBoundaryCondition = AddFlowBoundaryCondition(fmModel, topBoundary.Name, FlowBoundaryQuantityType.WaterLevel, BoundaryConditionDataType.TimeSeries)

This can be seen on the map on the boundary :

Add timeseries to boundary supportpoint
boundaryTimeSeries = [[datetime(2014,1,1, 12,0,0), 2.0],
              [datetime(2014,1,2, 12,0,0), 2.2],
              [datetime(2014,1,3, 12,0,0), -1.8],
              [datetime(2014,1,4, 12,0,0), 2.0],
              [datetime(2014,1,5, 12,0,0), -2.0],
              [datetime(2014,1,6, 12,0,0), 2.0],
              [datetime(2014,1,7, 12,0,0), -2.0],
              [datetime(2014,1,8, 12,0,0), 2.0]]

AddTimeSeriesToSupportPoint(fmModel, flowLeftBoundaryCondition, 0, boundaryTimeSeries)
AddTimeSeriesToSupportPoint(fmModel, flowLeftBoundaryCondition, 2, boundaryTimeSeries)
AddTimeSeriesToSupportPoint(fmModel, flowLeftBoundaryCondition, 5, boundaryTimeSeries)

AddTimeSeriesToSupportPoint(fmModel, flowTopBoundaryCondition, 0, boundaryTimeSeries)

 

 

 

 

 

  • No labels