ningshuxia
2024-03-20 785c92f5078cb7aeb05b13f6da627defb6525b36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace IStation.Epanet.Network.Structures
{
 
    ///<summary>Node demand category.</summary>
    public class Demand
    {
        public Demand(double @base, Pattern pattern)
        {
            Base = @base;
            Pattern = pattern;
        }
 
        ///<summary>Baseline demand (Feet^3/t)</summary>
        public double Base { get; set; }
 
        ///<summary>Pattern reference.</summary>
        public Pattern Pattern { get; set; }
 
#if NUCONVERT
        public double GetBaseNu(FlowUnitsType units) { return NUConvert.RevertFlow(units, Base); }
 
        public void SetBaseNu(FlowUnitsType units, double value) { Base = NUConvert.ConvertFlow(units, value); }
#endif
 
    }
 
}