Ejemplo n.º 1
0
 def test_shift_turbine_curve_lower_hub(self):
     original = self.power_curves["IEC class 2"]
     shifted = _shift_turbine_curve(original,
                                    hub_height=260,
                                    maxspd=29,
                                    new_curve_res=0.02)
     self._check_curve_structure(shifted, maxspd=29, new_curve_res=0.02)
     self.assertTrue(_first_one(shifted) > _first_one(original))
     self.assertTrue(_last_one(shifted) > _last_one(original))
Ejemplo n.º 2
0
 def test_shift_turbine_curve_sameheight_hub(self):
     original = self.power_curves["IEC class 2"]
     shifted = _shift_turbine_curve(original,
                                    hub_height=262.467,
                                    maxspd=30,
                                    new_curve_res=0.05)
     self._check_curve_structure(shifted, maxspd=30, new_curve_res=0.05)
     self.assertTrue(_first_one(shifted) == _first_one(original))
     self.assertTrue(_last_one(shifted) == _last_one(original))
Ejemplo n.º 3
0
 def test_shift_turbine_curve_higher_hub(self):
     original = self.PowerCurves["IEC class 2"]
     shifted = _shift_turbine_curve(original,
                                    hub_height=270,
                                    maxspd=26,
                                    new_curve_res=0.01)
     self._check_curve_structure(shifted, maxspd=26, new_curve_res=0.01)
     self.assertTrue(_first_one(shifted) < _first_one(original))
     self.assertTrue(_last_one(shifted) < _last_one(original))