示例#1
0
        public static ITimeSpaceComponent CreateRainfallRunoffInstance(string instanceId)
        {
            RainRrCfTestComponent rainfallRunoffInstance = new RainRrCfTestComponent();
            List <IArgument>      arguments = new List <IArgument>();

            AddArgument(arguments, "id", instanceId);

            AddArgument(arguments, "quantity", "rain;mm/day");
            AddArgument(arguments, "quantity", "runoff;m3/s");
            AddArgument(arguments, "quantity", "waterlevel;m");

            // rainfall catchment area's (polygons) will be created by component
            AddArgument(arguments, "elementSet", "catchment-polygons");
            AddArgument(arguments, "inputItem", "areaGelderland.rain");
            AddArgument(arguments, "inputItem", "areaUtrecht.rain");
            AddArgument(arguments, "inputItem", "areaZuidholland.rain");
            AddArgument(arguments, "inputItem", "areaBrabant.rain");

            AddArgument(arguments, "elementSet", "outputLoc-1");
            AddArgument(arguments, "elementSet", "outputLoc-2");
            AddArgument(arguments, "elementSet", "outputLoc-3");
            AddArgument(arguments, "outputItem", "outputLoc-1.runoff");
            AddArgument(arguments, "outputItem", "outputLoc-2.runoff");
            AddArgument(arguments, "outputItem", "outputLoc-3.runoff");
            AddArgument(arguments, "inputItem", "outputLoc-1.waterlevel");
            AddArgument(arguments, "inputItem", "outputLoc-2.waterlevel");
            AddArgument(arguments, "inputItem", "outputLoc-3.waterlevel");

            rainfallRunoffInstance.Initialize(arguments);
            return(rainfallRunoffInstance);
        }
示例#2
0
        public static ITimeSpaceComponent CreateChannelFlowInstance(string instanceId)
        {
            RainRrCfTestComponent channelFlowInstance = new RainRrCfTestComponent();
            List <IArgument>      arguments           = new List <IArgument>();

            AddArgument(arguments, "id", instanceId);

            AddArgument(arguments, "quantity", "waterlevel;m");
            AddArgument(arguments, "quantity", "discharge;m3/s");

            AddArgument(arguments, "elementSet", "lateral-1");
            AddArgument(arguments, "elementSet", "lateral-2");
            AddArgument(arguments, "elementSet", "lateral-3");
            AddArgument(arguments, "elementSet", "lateral-4");
            AddArgument(arguments, "elementSet", "node-1");
            AddArgument(arguments, "elementSet", "node-2");
            AddArgument(arguments, "elementSet", "node-3");
            AddArgument(arguments, "elementSet", "node-4");
            AddArgument(arguments, "elementSet", "node-5");

            AddArgument(arguments, "inputItem", "lateral-1.discharge");
            AddArgument(arguments, "inputItem", "lateral-2.discharge");
            AddArgument(arguments, "inputItem", "lateral-3.discharge");
            AddArgument(arguments, "inputItem", "lateral-4.discharge");

            AddArgument(arguments, "outputItem", "node-1.discharge");
            AddArgument(arguments, "outputItem", "node-1.waterlevel");
            AddArgument(arguments, "outputItem", "node-2.discharge");
            AddArgument(arguments, "outputItem", "node-2.waterlevel");
            AddArgument(arguments, "outputItem", "node-3.discharge");
            AddArgument(arguments, "outputItem", "node-3.waterlevel");
            AddArgument(arguments, "outputItem", "node-4.discharge");
            AddArgument(arguments, "outputItem", "node-4.waterlevel");
            AddArgument(arguments, "outputItem", "node-5.discharge");
            AddArgument(arguments, "outputItem", "node-5.waterlevel");

            channelFlowInstance.Initialize(arguments);
            return(channelFlowInstance);
        }