Fabian Neumann
b96207c73e
store config and wildcards in n.meta
2022-06-30 08:42:18 +02:00
lisazeyen
b4d0a8404c
change unit from carrier gas from MWh_th -> MWh_LHV
2022-06-29 08:57:08 +02:00
Irieo
7604bb1654
Document units of bus carriers
2022-06-28 18:31:45 +02:00
Ebbe Kyhl
e9f2d65cda
Indent by two layers
2022-06-28 13:35:44 +02:00
Ebbe Kyhl
5ae56cca7c
Apply suggestions from code review
...
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2022-06-27 18:06:59 +02:00
Fabian Neumann
2037534557
prepare: only add ammonia to spatial if config selected
2022-06-23 15:24:44 +02:00
Fabian Neumann
9f91af28e7
fix syntax errors
2022-06-23 15:17:41 +02:00
Fabian Neumann
37c052667a
handle absent ammonia config flag
2022-06-22 15:50:32 +02:00
Ebbe Kyhl
2a3b576cbd
Add coal with carbon capture
2022-06-14 15:00:53 +02:00
Fabian Neumann
4ecfccea6c
handle ammonia demand both regionalised and copperplated
2022-06-10 17:07:48 +02:00
Fabian Neumann
27ac40d2ea
use spatial namespace to manage ammonia resolution
2022-06-10 16:56:00 +02:00
Fabian Neumann
a2a4cf7c02
use config to manage conversion efficiencies
2022-06-10 16:43:29 +02:00
Fabian Neumann
6cfee1f98a
add ammonia as carrier: with Haber-Bosch, crackers, store, load
2022-06-10 14:46:39 +02:00
Fabian Neumann
b025622edf
fix agriculture machinery oil load with spatial.oil.nodes
2022-06-03 14:29:23 +02:00
Fabian Neumann
d4fd472762
Merge branch 'master' into transport
2022-04-12 14:48:57 +02:00
Fabian Neumann
d4a82a2a41
Merge pull request #217 from PyPSA/myopic-fix
...
Myopic fix
2022-04-12 14:47:22 +02:00
Fabian Neumann
1625d9db75
address recent deprecations ( #235 )
...
* address recent deprecations
* address recent deprecations in pd.read_csv
2022-04-12 14:37:05 +02:00
lisazeyen
408b494612
bug fix with augmentation object
2022-04-12 10:45:11 +02:00
Fabian Neumann
a4dab4306b
merge master
2022-04-11 17:10:17 +02:00
Fabian Neumann
6ed92475c9
Add basic CI for overnight and myopic ( #234 )
...
* Snakefile: add missing folders that are retrieved
* Snakefile: fix syntax error
* Add basic CI
* fix datafiles list to work with directories
* prepare: only add new gas pipes if augmentation not empty
* prepare: handle case where salt caverns dataframe is empty
* prepare: handle case where underwater faction not in link columns
* build_biomass: handle case where Balkan not in country list
* refer correct environment path
* fix Snakemake call
* make subworkflow dependency explicit again
* hashing pypsa-eur environment file does not seem to work
* change solver to glpk
* add data cache
* glpk without options
* try cbc
* alternative snakemake test workflow
* test: add exogenous pathways to config
2022-04-11 17:08:25 +02:00
Fabian Neumann
95d5d8f889
prepare: move build_heat_demand closer to add_heat
2022-04-03 18:55:53 +02:00
Fabian Neumann
b112da0565
prepare: separate code for transport demand and nodal energy totals
2022-04-03 18:49:35 +02:00
lisazeyen
03fca360ff
style improvement
2022-03-21 09:14:15 +01:00
lisazeyen
71a8bc6c96
use define spatial for all conventionals, add lifetime for H2 storage
2022-03-18 13:46:40 +01:00
lisazeyen
cfb5a797cb
start to extend define_spatial for conventional carriers
2022-03-18 10:22:00 +01:00
Fabian Neumann
4e3314acd8
bugfix: remove also retrofitted H2 network
2022-01-25 12:55:57 +01:00
Fabian Neumann
90c2c909cd
fix broken prepare_sector_network when running without gas grid ( #207 )
...
Co-authored-by: lisazeyen <lisa.zeyen@web.de>
Co-authored-by: lisazeyen <lisa.zeyen@web.de>
2021-12-03 17:22:06 +01:00
Fabian Neumann
a2459881ef
allow H2 retrofitting from CH4 pipelines without endogenous CH4 grid ( #204 )
...
* allow H2 retrofitting from CH4 pipelines without endogenous CH4 grid
* add small capital cost to gas pipelines to incentivise decommissioning
* add release notes
2021-11-29 12:42:10 +01:00
Fabian Neumann
d04f6c02a7
Merge branch 'master' into retrofit-gas-pipelines
2021-11-29 09:13:51 +01:00
Fabian Neumann
3ecb761b57
add regionalised hydrogen salt cavern storage potentials ( #191 )
...
* add regionalised hydrogen salt cavern storage potentials
* fix reading in salt-cavern potentials and typo in imports
* by default disable nearshore and offshore salt cavern potentials
Co-authored-by: lisazeyen <lisa.zeyen@web.de>
2021-11-29 09:12:07 +01:00
Fabian Neumann
67ba2fa813
address deprecation warnings
2021-11-14 12:57:46 +01:00
Fabian Neumann
4cd964b3bd
gas_network: use IGGIELGN scigrid dataset
2021-11-13 16:48:08 +01:00
Fabian Neumann
b39a852d3b
correct syntax errors
2021-11-12 12:50:46 +01:00
Fabian Neumann
44ea5ef48a
add local gas input capacities (p_nom) and disable p_nom_extendable
2021-11-10 18:24:13 +01:00
Fabian Neumann
57c0dd29d1
disentangle gas input nodes by lng, prod, entry with mmc/d#
2021-11-09 14:52:08 +01:00
Fabian Neumann
985705403e
revision gas infrastructure representation 2
2021-11-04 21:48:54 +01:00
Fabian Neumann
6a00d5bfca
revision gas infrastructure representation
2021-11-03 20:34:43 +01:00
Fabian Neumann
37e2e53486
Merge branch 'master' into retrofit-gas-pipelines
2021-11-02 19:03:26 +01:00
Fabian Neumann
19d128aafd
bugfix: take district heating progress not potential
2021-10-04 14:28:59 +02:00
Fabian Neumann
2e6e9c6802
Merge branch 'master' into agriculture-energy-co2
2021-10-02 10:51:28 +02:00
Fabian Neumann
a60f180f61
fix logging
2021-10-02 10:23:27 +02:00
lisazeyen
0d999a4991
prepare_sector_network: code formatting
...
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-10-01 17:10:42 +02:00
Fabian Neumann
18fabd930e
Apply suggestions from code review
2021-09-30 17:46:26 +02:00
Fabian Neumann
90079248a3
Merge branch 'master' into dh-share
2021-09-30 14:48:26 +02:00
lisazeyen
f6bb498730
include PR review
2021-09-29 16:13:23 +02:00
Fabian Neumann
1e248b314d
compatibility with biomass transport
2021-09-29 15:45:14 +02:00
lisazeyen
854bd80818
rename central_fraction->district heating potential, restructure district heating share implementation
2021-09-29 14:37:36 +02:00
lisazeyen
e27ec46878
add further comments
2021-09-29 09:23:39 +02:00
lisazeyen
234a32c504
bug fix
2021-09-29 09:23:39 +02:00
Fabian Neumann
8ecc54fbe6
Merge branch 'master' into dh-share
2021-09-28 17:29:29 +02:00
lisazeyen
53eab1ead2
slice biomass potentials with the pop_layout index instead of the country if biomass transport = True
2021-09-28 17:25:04 +02:00
lisazeyen
dadfa8691b
update mocksnakemake for testing
2021-09-28 16:36:40 +02:00
Fabian Neumann
385779fbbf
Merge branch 'master' into biomass-transport
2021-09-28 11:33:21 +02:00
Fabian Neumann
ec04d7909a
Merge pull request #148 from PyPSA/co2-network
...
Add CO2 network
2021-09-28 11:29:20 +02:00
lisazeyen
28264aa114
Small fixes ( #167 )
...
* update mocksnakemake for testing
* remove trailing whitespace in n.loads index
* add missing color for H2 liquification
* adjust to default lifetime 0 instead of NaN
2021-09-27 11:16:12 +02:00
lisazeyen
7ed20aba7a
Update prepare_sector_network.py
...
add logger info if CO2 network is added
2021-09-24 15:30:43 +02:00
Fabian Neumann
c4d4e88ba2
Merge pull request #161 from PyPSA/fix-build_carbon_budget
...
fix-build_carbon_budget
2021-09-09 16:07:11 +02:00
martavp
203a7f3df2
Add lifetime to solar-rooftop
...
Rooftop-solar generators are missing the lifetime attribute when they are added.
This avoids that they are saved as brownfield capacities installed in a previous timestep when running myopic optimization.
I.e, they are not captured in the following line
5b9f64354f/scripts/add_existing_baseyear.py (L31)
2021-08-24 18:58:42 +02:00
martavp
919c9d8b8d
Update prepare_sector_network.py
...
update build_carbon_budget to use budget estimation from 2020 onwards
2021-08-24 18:48:20 +02:00
Fabian Neumann
13251d33cc
no machinery electric share, fix add to madd
2021-08-18 16:17:59 +02:00
Fabian Neumann
351964b1e7
add logger.info for agriculture
2021-08-18 09:42:05 +02:00
Fabian Neumann
17c96edf72
agriculture: correctly convert units, fix efficiency gain, ICE aggregation for oil
2021-08-16 16:27:25 +02:00
Fabian Neumann
38352927fc
Merge branch 'master' into agriculture-energy-co2
2021-08-16 14:30:15 +02:00
Fabian Neumann
ad23a648c4
Merge branch 'master' into enspreso-biomass
2021-08-10 10:43:52 +02:00
Fabian Neumann
05c2332420
fix syntax error in master
2021-08-10 10:27:54 +02:00
Fabian Neumann
928d1f23ed
biomass_transport: improve spatial biomass potential handling
2021-08-09 18:03:20 +02:00
Fabian Neumann
3eb404ff68
biomass_transport: correct and simplify spatial management
2021-08-09 17:51:37 +02:00
Fabian Neumann
6711d721b9
biomass_transport: fix cost calculation and get from remote
2021-08-09 16:30:38 +02:00
Fabian Neumann
0da8f8f80e
Merge branch 'master' into biomass-transport
2021-08-06 15:58:23 +02:00
Fabian Neumann
54a509f3dd
Merge branch 'master' into co2-network
2021-08-06 15:51:40 +02:00
Fabian Neumann
3754643e81
add co2 sequestration potential global constraint
2021-08-06 12:46:03 +02:00
Fabian Neumann
e7c6b8c2c8
Merge branch 'master' into dh-share
2021-08-04 18:29:57 +02:00
Fabian Neumann
87596dd015
add H2 liquefaction cost to H2 shipping demand ( #145 )
...
* add H2 liquefaction cost to H2 shipping demand
* rename bus to 'H2 liquid'
* add release note
* make consideration of liquefaction costs for shipping optional
* update release notes
2021-08-04 18:28:18 +02:00
Fabian Neumann
96afff0487
Adapt to technology-data changes ( #146 )
...
* adapt to technology-data changes from https://github.com/PyPSA/technology-data/pull/35
* switch to new H2 (g) pipeline cost
2021-08-04 18:19:42 +02:00
martavp
fab31e6524
Exogenous transition path for shipping, Steel, and Aluminum production ( #136 )
...
* Update .gitignore
* Add fictitious load to account for non-transformed shipping emissions
The share of shipping demand that is transformed is defined now for different years to be used with the myopic code.
The carbon emission from the remaining share is treated as a negative load on the atmospheric carbon dioxide bus, just like aviation and land transport emissions.
* Split colours for H2 in Industry and H2 in shipping when plotting balances.
When plotting the balance for H2, the rename dictionary merges all the demands containing H2.
This commit disables such merging and keeps different colours for H2 in shipping and H2 in industry. This is useful when one wants to look at the H2 balance and have an overview of where the H2 is consumed in the model.
* Make transformation of Steel and Aluminum production depends on year
Previously, the transformation of the Steel and Aluminum production was assumed to occur overnight.
This commit enables the definition of a transformation path via the config.yaml file.
This requires adding the {planning_horizon} to the input and output file name of the following rules:
build_industrial_production_per_country_tomorrow
build_industrial_production_per_node
build_industry_energy_demand_per_node
prepare_sector_network
* small follow-up to merge
* Add oil consumed in shipping as a load to EU oil bus
* Update scripts/prepare_sector_network.py
* add planning_horizons wildcard to benchmark paths
* fixup: double fraction_primary for steel
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-08-04 18:19:02 +02:00
Fabian Neumann
50dd4ce285
prepare: fix syntax error
2021-08-04 18:13:01 +02:00
Fabian Neumann
67d40ae5d9
remove unused line
2021-08-04 14:54:00 +02:00
Fabian Neumann
f4aa345c74
apply spatial management of gas nodes
2021-08-04 14:47:13 +02:00
Fabian Neumann
e5c61c8cf0
With H2_retrofit, gas network can be removed for free, without it can be expanded for a cost
2021-08-04 11:09:31 +02:00
Fabian Neumann
6507526d22
add retrofitting costs from technology-data
2021-08-04 10:36:16 +02:00
Fabian Neumann
006a68b3cf
add option for retrofitted pipe capacity per CH4 capacity
2021-08-04 10:35:02 +02:00
Fabian Neumann
6a86a04743
add gas network spatial management
2021-08-04 09:48:23 +02:00
Fabian Neumann
3f43656a92
call define_spatial
2021-07-12 12:37:37 +02:00
Fabian Neumann
d1298fa93d
use spatial namespace to manage biomass transport resolution
2021-07-12 12:31:18 +02:00
Fabian Neumann
2563d1277a
spatially-explicit biomass potentials from ENSPRESO (NUTS2)
2021-07-11 17:52:32 +02:00
lisazeyen
9039b130fa
bug fix to avoid same link names for DAX
2021-07-09 15:30:21 +02:00
Fabian Neumann
36fdde7887
correctly name co2 submarine pipeline!
2021-07-09 14:36:13 +02:00
lisazeyen
0127c47035
Update prepare_sector_network.py
...
bug fix when calculating urban central heat demand
2021-07-09 13:56:44 +02:00
Fabian Neumann
d58a7f86a4
allow copperplated carbon capture to be distributed freely to co2 stores
2021-07-09 13:22:00 +02:00
Fabian Neumann
cd99089628
account for underwater fraction
2021-07-09 13:10:43 +02:00
Fabian Neumann
2b204c45e4
run define_spatial in __main__
2021-07-09 12:51:48 +02:00
Fabian Neumann
4f9d2f9d5f
add concept for management of spatial resolutions
2021-07-09 12:50:40 +02:00
Fabian Neumann
62bba87cda
add co2 network topology
...
Co-authored-by: lisazeyen <lisa.zeyen@web.de>
2021-07-09 10:44:29 +02:00
lisazeyen
76f36d0a1a
add option to take today's district heating share
2021-07-08 14:41:34 +02:00
Fabian Neumann
a98870e159
correction for .madd() and call co2_network
2021-07-07 18:07:57 +02:00
Fabian Neumann
d976a8faf7
add CO2 network [first draft]
2021-07-07 17:58:47 +02:00
Fabian Neumann
2bd9a3993b
fix typo
2021-07-06 18:36:04 +02:00
Fabian Neumann
67ee6cb86e
first step towards agriculture, forestry and fishing
2021-07-06 18:32:35 +02:00
martavp
3a6a1f90ab
Sensitivity e nom max ( #143 )
...
* Update .gitignore
* include e_nom_max sensitivity
* remove change in gitignore
* Update doc/release_notes.rst
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
2021-07-06 17:12:39 +02:00
Fabian Neumann
c3f554e442
Update scripts/prepare_sector_network.py
2021-07-06 10:54:34 +02:00