Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuel price and annual fuel price change might not be implemented correctly #172

Open
Bachibouzouk opened this issue Oct 12, 2022 · 1 comment

Comments

@Bachibouzouk
Copy link
Collaborator

Bachibouzouk commented Oct 12, 2022

Simulations of @a-linke and @KatLamm indicate some wierd behavior if the annual fuel price is not set to 0 and even if it is, then diesel is massively preferred in defavor of other technologies, which is not expected.

The only use of the input variabe FUEL_PRICE_CHANGE_ANNUAL is in the module D0:

fuel_price_change_annual=experiment[FUEL_PRICE_CHANGE_ANNUAL],

It is then used in the function present_value_of_changing_fuel_price

In the function call (that I copied under for convenience):

        present_value_changing_fuel_price = economics.present_value_of_changing_fuel_price(
            fuel_price=experiment[FUEL_PRICE],
            project_lifetime=experiment[PROJECT_LIFETIME],
            wacc=experiment[WACC],
            crf=experiment[CRF],
            fuel_price_change_annual=experiment[FUEL_PRICE_CHANGE_ANNUAL],
        ) 

it seems that all arguments stem directly from input variables from the .xlsx file.
Whatever comes out of the function present_value_of_changing_fuel_price is then reassigned to the variable PRICE_FUEL (note that it is not FUEL_PRICE)

Looking into the function, one can see that if fuel_price_change_annual is set to 0, then what comes out of the function present_value_of_changing_fuel_price should be exactly equal to the what value was provided to the argument fuel_price

The variable PRICE_FUEL is then used to compute the EXPENDITURES_FUEL_ANNUAL (results):

EXPENDITURES_FUEL_ANNUAL: oemof_results[CONSUMPTION_FUEL_ANNUAL_L]

As well as the variable_costs of the fuel energy source:

variable_costs=experiment[PRICE_FUEL]

It is given by
experiment[PRICE_FUEL]/ experiment[COMBUSTION_VALUE_FUEL]
experiment[PRICE_FUEL] has unit currency/unit and experiment[COMBUSTION_VALUE_FUEL] kWh/unit so the variable_costs have unit currency/kWh as expected (one unit is for example one gallon, or one liter)

@Bachibouzouk
Copy link
Collaborator Author

Apparently this was issue might be fixed by #92 which would indicate that the problem would be due to outdated version of oemof-solph for offgridders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant