コード例 #1
0
ファイル: model_tests.py プロジェクト: snowdj/feedinlib
 def wind_result_test(self):
     wind_model = model.SimpleWindTurbine(
         required=list(self.required_parameter['wind_model'].keys()))
     wind_power_plant = plant.WindPowerPlant(model=wind_model, **self.site)
     wka_feedin = wind_power_plant.feedin(weather=self.weather)
     nt.eq_(round(wka_feedin.sum() / 1000), 1523340.0)
コード例 #2
0
pv_feedin1 = yingli_module.feedin(weather=my_weather, number=30000)
pv_feedin2 = yingli_module.feedin(weather=my_weather, area=15000)
pv_feedin3 = yingli_module.feedin(weather=my_weather, peak_power=15000)
pv_feedin4 = yingli_module.feedin(weather=my_weather)
pv_feedin5 = advent_module.feedin(weather=my_weather)

pv_feedin4.name = 'Yingli'
pv_feedin5.name = 'Advent'

# Output
if plt:
    pv_feedin4.plot(legend=True)
    pv_feedin5.plot(legend=True)
    plt.show()
else:
    print(pv_feedin5)

# Use directly methods of the model
w_model = models.SimpleWindTurbine()
w_model.get_wind_pp_types()
cp_values = models.SimpleWindTurbine().fetch_cp_values(
    wind_conv_type='ENERCON E 126 7500')
if plt:
    plt.plot(cp_values.loc[0, :][2:55].index, cp_values.loc[0, :][2:55].values,
             '*')
    plt.show()
else:
    print(cp_values.loc[0, :][2:55].values)

logging.info('Done!')