1

I want to run the pvlib modelchain with a pvwatts model:

pvwatts_module={'pdc0':250,'gamma_pdc':-0.005}
pvwatts_inverter={'pdc0':4600,'eta_inv_nom':0.93}

location=Location(latitude,longitude, tz, altitude)
system = PVSystem(surface_tilt = surface_tilt, surface_azimuth = surface_azimuth, albedo = albedo,\
                           surface_type = None, module = None, module_parameters = pvwatts_module,\
                           modules_per_string = 21, strings_per_inverter = 1,\
                           inverter = None, inverter_parameters = pvwatts_inverter,\
                           racking_model = 'roof_mount_cell_glassback', name = None)

mc = ModelChain(system, fx_model.location, dc_model='pvwatts',ac_model='pvwatts',aoi_model='physical',spectral_model='no_loss',temp_model='sapm')

mc.run_model(fx_data.index, weather=fx_data);

modules_per_string = 21 has no effect on the resulting ac-power. Does the modelchain not support this parameter with pvwatts or is there a mistake in my code? My workaround is now

pvwatts_module={'pdc0':5250,'gamma_pdc':-0.005}

Thank you

Biomusli
  • 13
  • 6
  • It seems to me that something is not adding up here. Can you post the minimum amount of code needed to reproduce? Your ``PVSystem`` call sets ``module_parameters=None``, so it's not clear what your code is actually doing. – Will Holmgren Mar 29 '18 at 16:31
  • I edited the question, hopefully it is clear now. – Biomusli May 02 '18 at 13:00

1 Answers1

0

ModelChain does not support those parameters for the pvwatts model.

For the other models, pvlib python uses modules_per_string and strings_per_inverter to scale voltage and current. But PVWatts doesn't have a concept of voltage and current, so the same scaling cannot be applied. Feel free to open an issue and pull request on GitHub if you'd like to see a power scaling applied that is equal to the product of the parameters.

Will Holmgren
  • 696
  • 5
  • 12