예제 #1
0
 def __init__(self,
              name=None,
              section=None,
              mannings=None,
              length=None,
              invert1=None,
              invert2=None,
              node1=None,
              node2=None):
     super(Inlet, self).__init__(name, section, mannings, length, invert1,
                                 invert2, node1, node2)
     self.weirs = ob.ObjectList(weir.Weir)
     self.report = inp.InputReport(self)
예제 #2
0
 def __init__(self,
              name=None,
              duration=None,
              interval=None,
              rainfall=None,
              distribution=None):
     self.name = name
     self.duration = duration  # hours
     self.interval = interval  # hours
     self.rainfall = rainfall  # inches
     self.distribution = distribution
     self.networks = obj.ObjectList(nw.Network)
     self.report = inp.InputReport(self)
     self.result = None
예제 #3
0
 def __init__(self,
              name=None,
              section=None,
              mannings=None,
              length=None,
              invert1=None,
              invert2=None,
              node1=None,
              node2=None):
     super(Pipe, self).__init__(name, node1, node2, section)
     self.mannings = mannings
     self.length = length  # feet
     self.invert1 = invert1  # feet
     self.invert2 = invert2  # feet
     self.report = inp.InputReport(self)
예제 #4
0
 def __init__(self, name=None, rainfall_ratios=None):
     self.name = name
     self.rainfall_ratios = cpl.CoupleList('Time-Rainfall Ratios', ('Time', 'Rainfall'), rainfall_ratios)
     self.report = inp.InputReport(self, self.rainfall_ratios)
예제 #5
0
 def __init__(self, name=None, start_stage=None, contours=None):
     super(Reservoir, self).__init__(name, start_stage)
     self.contours = cpl.CoupleList('Contours', ('Stage (ft)', 'Area (ac)'),
                                    contours)
     self.report = inp.InputReport(self, self.contours)
예제 #6
0
 def __init__(self, name=None, section=None, orif_coef=None, weir_coef=None, invert=None, node1=None, node2=None):
     super(Weir, self).__init__(name, node1, node2, section)
     self.orif_coef = orif_coef
     self.weir_coef = weir_coef
     self.invert = invert
     self.report = inp.InputReport(self)
예제 #7
0
 def __init__(self, name=None, start_stage=None, stage_volumes=None):
     super(Storage, self).__init__(name, start_stage)
     self.stage_volumes = cpl.CoupleList('Stage-Volumes',
                                         ('Stage (ft)', 'Volume (ac-ft)'),
                                         stage_volumes)
     self.report = inp.InputReport(self, self.stage_volumes)
예제 #8
0
파일: basin.py 프로젝트: benjiyamin/nimbus
 def __init__(self, name=None, area=None, cn=None, tc=None, uh=None):
     self.name = name
     self.tc = tc  # minutes
     self.uh = uh
     self.shapes = ob.ObjectList(Shape)
     self.report = inp.InputReport(self)
예제 #9
0
 def __init__(self, name=None, start_stage=None, time_stages=None):
     super(Boundary, self).__init__(name, start_stage)
     self.time_stages = cpl.CoupleList('Time-Stages',
                                       ('Time (hr)', 'Stage (ft)'),
                                       time_stages)
     self.report = inp.InputReport(self, self.time_stages)