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

Battery electric vehicle meta facade #152

Open
wants to merge 28 commits into
base: feature/battery-electric-vehicle
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8a274ae
add individual mobility sector facade from example (commit 6383a86)
JonasJeckstadt Jan 16, 2024
e62800c
adjust parameters (WIP)
JonasJeckstadt Jan 16, 2024
1d8365f
work on test for mobility_facade.
JonasJeckstadt Jan 18, 2024
199ee82
remove pkm_demand from IndividualMobilitySector facade.
JonasJeckstadt Jan 18, 2024
dde0974
remove transport_commodity_bus definition within IndividualMobilitySe…
JonasJeckstadt Jan 18, 2024
3ceb07e
fix label for Bev within IndividualMobilitySectror facade
JonasJeckstadt Jan 18, 2024
2f4d818
adjust IndividualMobilitySector facade to run with mobility_facade test
JonasJeckstadt Jan 18, 2024
9e50cad
Fix errors in docstring of Bev().
JonasJeckstadt Jan 22, 2024
660ba2c
Adjust parameters in IndividualMobilitySector facade (WIP).
JonasJeckstadt Jan 24, 2024
741c8cf
Update docstring of IndividualMobilitySector facade.
JonasJeckstadt Jan 25, 2024
2b75daa
Fix error with calculation of storage capacity.
JonasJeckstadt Feb 5, 2024
619e59a
Add invest_c_rate selection function to Bev() component.
JonasJeckstadt Feb 5, 2024
2dfb14f
Test _invest_c_rate method and fix issues.
JonasJeckstadt Feb 6, 2024
9d0ec2f
Adjust parameter definition of Bev and IndividualMobilitySector facad…
JonasJeckstadt Feb 8, 2024
39aa985
Update mobility_facade test.
JonasJeckstadt Feb 8, 2024
ffbad2f
Remove unused parameters from Bev facade and improve docstring.
JonasJeckstadt Feb 14, 2024
f90d68b
Add parameter availability_flex and availability_inflex.
JonasJeckstadt Feb 15, 2024
9210969
Merge branch 'feature/battery-electric-vehicle' into feature/battery-…
nailend Feb 26, 2024
81656fb
Fix minor error.
JonasJeckstadt Feb 26, 2024
638de45
Change processing of capacity value so it is used for flex and inflex…
JonasJeckstadt Mar 4, 2024
e169c37
Rename Bev classes
nailend Mar 13, 2024
8cf7a93
Adhere to pep8
nailend Mar 13, 2024
90faf86
Adjust BevTech name
nailend Mar 13, 2024
de58761
Update typemap
nailend Mar 13, 2024
85d350b
Add new imports
nailend Mar 27, 2024
5684b35
Bulk commit all changes
nailend Mar 27, 2024
eec7361
Test BEV fleet
nailend Mar 27, 2024
88e268b
Update graph plotting
nailend Mar 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/oemof/tabular/constraint_facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from oemof.solph.constraints.integral_limit import generic_integral_limit
from pyomo.environ import Constraint

from oemof.tabular.facades import Bev
from oemof.tabular.facades import BevTech


def var2str(var):
Expand Down Expand Up @@ -88,7 +88,7 @@ class BevShareMob(ConstraintFacade):
def map_share2vars(model, share_mob, period):
invest_vars = []
for node in model.es.nodes:
if isinstance(node, Bev):
if isinstance(node, BevTech):
invest_vars.extend(
[
inv
Expand Down Expand Up @@ -172,7 +172,7 @@ def double_with_offset(lst):
def get_bev_invest_vars(model, period):
all_invest_vars = {}
for node in model.es.nodes:
if isinstance(node, Bev):
if isinstance(node, BevTech):
invest_vars_bev = list(
set(
inv
Expand Down
3 changes: 2 additions & 1 deletion src/oemof/tabular/datapackage/reading.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,13 @@ def unpack_sequences(facade, period_data):
facade
"""

yearly_values = ["fixed_costs", "marginal_costs"]
yearly_values = ["fixed_costs", "marginal_cost"]
periodical_values = [
"capacity",
"capacity_cost",
"capacity_potential",
"storage_capacity",
"year",
]

for value_name, value in facade.items():
Expand Down
6 changes: 3 additions & 3 deletions src/oemof/tabular/facades/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .conversion import Conversion
from .dispatchable import Dispatchable
from .excess import Excess
from .experimental.battery_electric_vehicle import Bev
from .experimental.battery_electric_vehicle import BevFleet, BevTech
from .extraction_turbine import ExtractionTurbine
from .generator import Generator
from .heatpump import HeatPump
Expand Down Expand Up @@ -36,7 +36,8 @@
"shortage": Shortage,
"storage": Storage,
"volatile": Volatile,
"bev": Bev,
"bev_tech": BevTech,
"bev_fleet": BevFleet,
}

TECH_COLOR_MAP = {
Expand All @@ -60,7 +61,6 @@
"reservoir": "slateblue",
"biomass": "olivedrab",
"storage": "lightsalmon",
"battery": "lightsalmon",
"import": "crimson",
}

Expand Down
Loading