vicelab / cen-sierra-pywr

Code base for modeling the central Sierra Nevada hydropower systems
4 stars 7 forks source link

IFR bl New Spicer Meadow Reservoir Logic #52

Closed drheinheimer closed 4 years ago

drheinheimer commented 4 years ago

Need to add ramping rate to IFR. See #43

drheinheimer commented 4 years ago

Mission accomplished.

        ifr_val = 0.4672  # cms (16.5 cfs)
        if self.model.mode == 'scheduling':
            self.get_down_ramp_ifr(timestep, ifr_val, initial_value=171/35.31, rate=0.25)
        elif self.model.mode == 'planning':
            ifr_val *= self.days_in_month()
        return ifr_val