Example #1
0
        ///<summary>
        /// Create helper class for calculating total inflow to a reach
        ///</summary>
        ///<param name="engineNet"></param>
        public static DAWaterVolumeChangeCalculator Create(EngineNet engineNet)
        {
            DAWaterVolumeChangeCalculator res = new DAWaterVolumeChangeCalculator(engineNet, QuantVolChangeDa);

            res.SetupDataForNodes(engineNet);
            res.SetupDataForReaches(engineNet, (gp) => (gp is HGridPoint));
            res.GenericData = new EngineDataGeneric <double>()
            {
                Values = new double[1]
            };

            return(res);
        }
Example #2
0
 public void CreateVolCalculator(EngineNet engineNet)
 {
     _daWaterVolumeChangeCalculator = DAWaterVolumeChangeCalculator.Create(engineNet);
     engineNet.DataModule.AddDataItem(_daWaterVolumeChangeCalculator);
 }