BesAsm.Swsp.PacSizingTool.RainfallEvent.GetScsOneAEvent C# (CSharp) Method

GetScsOneAEvent() public static method

Provides a 24-hour SCS Type 1A RainfallEvent, given the total depth of the design storm.
public static GetScsOneAEvent ( string name, double totalRainfallInches ) : RainfallEvent
name string /// The name of the rainfall event. e.g. "2-year storm" ///
totalRainfallInches double /// The total rainfall depth for the entire storm, disregarding initial abstraction. ///
return RainfallEvent
        public static RainfallEvent GetScsOneAEvent(string name, double totalRainfallInches)
        {
            double[] rainfall = new double[RainfallEvent.ScsOneARainfallDistribution.Length];

              for (int i = 0; i < RainfallEvent.ScsOneARainfallDistribution.Length; i++)
            rainfall[i] = RainfallEvent.ScsOneARainfallDistribution[i] * totalRainfallInches;

              return new RainfallEvent(name, ScsOneARainfallDistribution.Select(p => p * totalRainfallInches), 10);
        }

Usage Example

Example #1
0
        /// <summary>
        /// Performs the SBUH calculations for the Pollution Reduction storm event
        /// </summary>
        /// <param name="catchment">A Catchment object</param>
        /// <returns>A Hydrograph object containing the results of the SBUH calculations</returns>
        public static Hydrograph CalculateSbuhPr(Catchment catchment)
        {
            //Define design storms
            RainfallEvent pollutionReduction = RainfallEvent.GetScsOneAEvent("Pollution Reduction", 0.83);

            Hydrograph imperviousHydrographPR = SantaBarbaraUrbanHydrograph.CalculateHydrograph
                                                    (catchment, pollutionReduction);

            return(imperviousHydrographPR);
        }
All Usage Examples Of BesAsm.Swsp.PacSizingTool.RainfallEvent::GetScsOneAEvent