Beispiel #1
0
        public void Update(DateTime time, M1DSimulatorRtc m1Dmodel)
        {
            var outflows = m1Dmodel.ReadReaches(Selection["Link"], Quantity, atFromNode: true);

            Value = outflows.Sum();
            Time  = time;
        }
Beispiel #2
0
        public void Update(DateTime time, M1DSimulatorRtc m1Dmodel)
        {
            var inflows = m1Dmodel.ReadReaches(Selection["Link"], Quantity, atFromNode: false);

            Values = Selection["Link"].Zip(inflows, (k, v) => new { k, v }).ToDictionary(x => x.k, x => x.v);
            Time   = time;
        }
Beispiel #3
0
        public void Update(DateTime time, M1DSimulatorRtc m1Dmodel)
        {
            var overflowReaches = Selection["Link"].Union(Selection["Weir", "Weir:"]).ToArray();
            var overflows       = m1Dmodel.ReadReaches(overflowReaches, Quantity, atFromNode: false);

            Value = overflows.Sum();
            Time  = time;
        }
Beispiel #4
0
        public void Update(DateTime time, M1DSimulatorRtc m1Dmodel)
        {
            var linkVolumes = m1Dmodel.ReadReaches(Selection["Link"], Quantity);
            var nodeVolumes = m1Dmodel.ReadNodes(Selection["Node"], Quantity);

            Value = linkVolumes.Sum() + nodeVolumes.Sum();
            Time  = time;
        }
Beispiel #5
0
        public void Update(DateTime time, M1DSimulatorRtc m1Dmodel)
        {
            var inflows              = m1Dmodel.ReadReaches(Selection["Link"], Quantity, atFromNode: false);
            var inflowsCatchments    = m1Dmodel.ReadCatchmentsRes1D(Selection["Catchment"]);
            var inflowsCatchmentsDWF = m1Dmodel.ReadCatchmentsRes1D(Selection["Catchment"], "CatchmentDischarge");

            Value = inflows.Sum() + inflowsCatchments.Sum() + inflowsCatchmentsDWF.Sum();
            Time  = time;
        }