Example #1
0
 def test_pv_model(self):
     plant.Photovoltaic(model=model.PvlibBased(required=["missing"]))
Example #2
0
 def pv_result_test(self):
     pv_model = model.PvlibBased(
         required=list(self.required_parameter['pv_model'].keys()))
     pv_plant = plant.Photovoltaic(model=pv_model, **self.site)
     pv_feedin = pv_plant.feedin(weather=self.weather)
     nt.eq_(round(pv_feedin.sum() / 1000), 31.0)
Example #3
0
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
# Write out all possible wind turbines.
windmodel.get_wind_pp_types()

# Write out all possible pv-converters
print(models.PvlibBased().fetch_module_data(module_name='all',
                                            lib='sandia-modules').keys())

# Plot the cp curve of a wind turbine.
e126 = windmodel.SimpleWindTurbine(**enerconE126)

if plt:
    e126.cp_values.plot(style='*')
    plt.show()
else:
    # The value for 8 m/s
    print(e126.cp_values.loc[8])

logging.info('Done!')