Skip to content

Commit c26aae8

Browse files
author
IlkaCu
authored
Copy links for future scenarios
1 parent 2a50bf8 commit c26aae8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

dataprocessing/sql_snippets/ego_dp_powerflow_grid_future_scenarios.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ FROM model_draft.ego_grid_pf_hv_line a
3535
WHERE scn_name= 'Status Quo';
3636

3737

38+
-- Include all links from SQ scenario in the NEP 2035 scenario
39+
40+
DELETE FROM model_draft.ego_grid_pf_hv_link WHERE scn_name = 'NEP 2035';
41+
42+
INSERT INTO model_draft.ego_grid_pf_hv_link
43+
SELECT 'NEP 2035', a.link_id, a.bus0, a.bus1, a.efficiency, a.marginal_cost, a.p_nom, a.p_nom_extendable,
44+
a.p_nom_min, a.p_nom_max, a.capital_cost, a.length, a.terrain_factor, a.geom, a.topo
45+
FROM model_draft.ego_grid_pf_hv_link a
46+
WHERE scn_name= 'Status Quo';
47+
48+
3849
-- Include transformers from Status Quo into new scenario 'NEP 2035'
3950

4051
DELETE FROM model_draft.ego_grid_pf_hv_transformer WHERE scn_name = 'NEP 2035';
@@ -69,6 +80,16 @@ SELECT 'eGo 100', a.line_id, a.bus0, a.bus1, a.x, a.r, a.g, a.b, a.s_nom, a.s_no
6980
FROM model_draft.ego_grid_pf_hv_line a
7081
WHERE scn_name= 'Status Quo';
7182

83+
-- Include all links from SQ scenario in the eGo 100 scenario
84+
85+
DELETE FROM model_draft.ego_grid_pf_hv_link WHERE scn_name = 'eGo 100';
86+
87+
INSERT INTO model_draft.ego_grid_pf_hv_link
88+
SELECT 'eGo 100', a.link_id, a.bus0, a.bus1, a.efficiency, a.marginal_cost, a.p_nom, a.p_nom_extendable,
89+
a.p_nom_min, a.p_nom_max, a.capital_cost, a.length, a.terrain_factor, a.geom, a.topo
90+
FROM model_draft.ego_grid_pf_hv_link a
91+
WHERE scn_name= 'Status Quo';
92+
7293

7394
-- Include transformers from Status Quo into new scenario 'eGo 100'
7495

0 commit comments

Comments
 (0)