feedinlib icon indicating copy to clipboard operation
feedinlib copied to clipboard

Problems while running the feedin function

Open goncasado6 opened this issue 3 years ago • 7 comments

Hello, after I have done correctly all the previous steps of the weather and setting up the photovoltaic object(which work correctly), when I do the calculate the feedin part it doesnt work, it appears two errors and I dont know why. Please reply me if you know the error and what I have to do, Thank you

CapturaA CapturaB CapturaC

goncasado6 avatar May 05 '22 09:05 goncasado6

I think the error described results from the issue #62 opened by @uvchik.

It is possible using the deprecated standard of pvlib version 0.0.9 if the module_type is set to "glass_glass" and the racking_model is set to "open_rack" while initiating the poweplants.Photovoltaic class. The other possible types can be found in the temperature.py of pvlib-python (https://github.com/pvlib/pvlib-python/blob/master/pvlib/temperature.py).

GregorBecker avatar Jun 03 '22 13:06 GregorBecker

I have the same problem, I think that it refers to the King temperature model in pvlib that needs a, b and deltaT parameters, but I'm not able to input these parameters properly to feedinlib

jesuspolo avatar Jun 08 '22 09:06 jesuspolo

Did you try to use pvlib v0.8.x instead of v0.9.x or higher?

uvchik avatar Jun 15 '22 18:06 uvchik

Downgrading pvlib to v0.8.1 is an option, but not a good one.

I am currently trying to update an existing pv model to 0.9.1 but I'm having a hard time with different errors. The documentation and release notes are only helping a bit. I will post what I found out here. I also opened a discussion on the pvlib GitHub

- temperature model

from pvlib.temperature import TEMPERATURE_MODEL_PARAMETERS
tm_gg = TEMPERATURE_MODEL_PARAMETERS['sapm']['open_rack_glass_glass']
tm_gp = TEMPERATURE_MODEL_PARAMETERS['sapm']['open_rack_glass_polymer'] 

-> see https://pvlib-python.readthedocs.io/en/stable/_modules/pvlib/temperature.html gg={'a': -3.47, 'b': -.0594, 'deltaT': 3} gp={'a': -3.56, 'b': -0.075, 'deltaT': 3}

- PVSystem

module_type='glass_glass', # 'glass_polymer'
racking_model='open_rack',

Ludee avatar Jun 16 '22 08:06 Ludee

Downgrading pvlib to 0.8.x is meant as a workaround not as a solution.

@Ludee Did you take a look at PR #73

uvchik avatar Jun 16 '22 08:06 uvchik

Yes, I already had a look at the PR. Not sure if the temperature_module_parameters is required or only additional?

Ludee avatar Jun 16 '22 08:06 Ludee

If you set module type and racking model when initializing the PV plant, the temperature model parameters are obtained from the dictionary in pvlib's temperature.py. To set these values (a, b, delta T) from the feedinlib is difficult at first sight.

Without setting the parameters the pv plant cannot be initialized.

GregorBecker avatar Jun 16 '22 11:06 GregorBecker