oemof / feedinlib

This repository contains implementations of photovoltaic models to calculate electricity generation from a pv installation based on given solar radiation. Furthermore it contains all necessary pre-calculations.
MIT License
99 stars 44 forks source link

Problems while running the feedin function #72

Open goncasado6 opened 2 years ago

goncasado6 commented 2 years ago

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

GregorBecker commented 2 years ago

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).

jesuspolo commented 2 years ago

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

uvchik commented 2 years ago

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

Ludee commented 2 years ago

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',
uvchik commented 2 years ago

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

@Ludee Did you take a look at PR #73

Ludee commented 2 years ago

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

GregorBecker commented 2 years ago

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.