Skip to content

Commit a5f1b6d

Browse files
starting SIPS case studies
journal started, residential scenarios defined - haven't yet run.
1 parent 99d43f3 commit a5f1b6d

File tree

8 files changed

+530
-4101
lines changed

8 files changed

+530
-4101
lines changed
Binary file not shown.

docs/baseline development documentation/(baseline dev) Energy - Copper.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,9 @@
12831283
"cell_type": "code",
12841284
"execution_count": 25,
12851285
"id": "5c172e28",
1286-
"metadata": {},
1286+
"metadata": {
1287+
"scrolled": true
1288+
},
12871289
"outputs": [
12881290
{
12891291
"name": "stderr",

docs/dev/Untitled.html renamed to docs/dev/SIPS2025-CaseStudies.html

Lines changed: 114 additions & 1820 deletions
Large diffs are not rendered by default.

docs/dev/SIPS2025-CaseStudies.ipynb

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "badb9b1e-e3ab-46ab-835d-46aec0dc01ac",
6+
"metadata": {},
7+
"source": [
8+
"# SIPS: QUIP SERIES\n",
9+
"This journal explores the case studies of the SIPS 2025 project understanding the implications of repowering and module reuse. This compliments analyses conducted in SAM and PV Watts. Below are the Residential, Commercial, and Utility scale case studies"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"id": "51c46971-8cdf-4836-8418-0469123f3ab9",
16+
"metadata": {},
17+
"outputs": [],
18+
"source": [
19+
"#setup\n",
20+
"import numpy as np\n",
21+
"import pandas as pd\n",
22+
"import os,sys\n",
23+
"from pathlib import Path\n",
24+
"import matplotlib.pyplot as plt\n",
25+
"import plotly.express as px\n",
26+
"\n",
27+
"import PV_ICE\n",
28+
"\n",
29+
"cwd = os.getcwd() #grabs current working directory\n",
30+
"\n",
31+
"testfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'TEMP' / 'MESC-NRELStdScens')\n",
32+
"inputfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'baselines'/'NRELStdScenarios')\n",
33+
"baselinesfolder = str(Path().resolve().parent.parent /'PV_ICE' / 'baselines')\n",
34+
"supportMatfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'baselines' / 'SupportingMaterial')\n",
35+
"#altBaselinesfolder = str(Path().resolve().parent.parent / 'PV_ICE' / 'baselines' / 'Energy_CellModuleTechCompare')\n",
36+
"\n",
37+
"if not os.path.exists(testfolder):\n",
38+
" os.makedirs(testfolder)\n",
39+
"\n",
40+
"print(\"Python version \", sys.version)\n",
41+
"print(\"Pandas version \", pd.__version__)\n",
42+
"print(\"pyplot \", plt.matplotlib.__version__)\n",
43+
"print(\"PV_ICE version \", PV_ICE.__version__)"
44+
]
45+
},
46+
{
47+
"cell_type": "code",
48+
"execution_count": null,
49+
"id": "613f82f3-f393-43dc-9386-0b9329ab0804",
50+
"metadata": {},
51+
"outputs": [],
52+
"source": [
53+
"sim1 = PV_ICE.Simulation(name='SIPS', path=testfolder)"
54+
]
55+
},
56+
{
57+
"cell_type": "markdown",
58+
"id": "a43f9553-be86-4a17-92d2-b32c65992b15",
59+
"metadata": {},
60+
"source": [
61+
"## Residential Case Study\n",
62+
"This case study considers a residential system where the PV system is not at technical end of life (installed 2015), but the roof needs replacing in 2024. The owner has the option of keeping the old system or replacing the PV system."
63+
]
64+
},
65+
{
66+
"cell_type": "code",
67+
"execution_count": null,
68+
"id": "93a52417-0815-46cc-8b4f-c86fc2b6e556",
69+
"metadata": {},
70+
"outputs": [],
71+
"source": [
72+
"#c-Si\n",
73+
"MATERIALS = ['glass','aluminium_frames','silver','silicon', 'copper', 'encapsulant', 'backsheet']\n",
74+
"moduleFile = os.path.join(baselinesfolder, 'baseline_modules_mass_US_updatedT50T90.csv')\n",
75+
"#CdTe\n",
76+
"#MATERIALS_CdTe = ['glass_cdte','aluminium_frames_cdte', 'copper_cdte', 'encapsulant_cdte','cadmium','tellurium']\n",
77+
"#moduleFile_CdTe = os.path.join(baselinesfolder, 'baseline_modules_mass_US_CdTe.csv')"
78+
]
79+
},
80+
{
81+
"cell_type": "code",
82+
"execution_count": null,
83+
"id": "5ee5a3e3-29a3-4eea-94c5-e5ae75fb1da6",
84+
"metadata": {},
85+
"outputs": [],
86+
"source": [
87+
"#residential system parameters\n",
88+
"resi_sys1_size = 0.00552 #MW, first system on roof (degrades to 5 kW in 2024 after 9 years (2024-2015))\n",
89+
"resi_sys1_deg = 1.1 #%/yr, corresponds to 20 yr life\n",
90+
"resi_sys1_life = 20 #years of life\n",
91+
"resi_sys1_life_repower = 9 #years of life but remove for repowering\n",
92+
"\n",
93+
"resi_sys2_size = 0.0073 #MW, 2nd system on roof\n",
94+
"resi_sys2_deg = 0.7 #%/yr, corresponds to 30 yr life\n",
95+
"resi_sys2_life = 30 #years of life"
96+
]
97+
},
98+
{
99+
"cell_type": "code",
100+
"execution_count": null,
101+
"id": "efedbc4b-0216-48aa-a884-dbc8ce255975",
102+
"metadata": {},
103+
"outputs": [],
104+
"source": [
105+
"#Residential case study\n",
106+
"sim1.createScenario(name='Resi_keep', massmodulefile=moduleFile) #create the scenario, name and mod file attach\n",
107+
"for mat in MATERIALS:\n",
108+
" materialfile = os.path.join(baselinesfolder, 'baseline_material_mass_'+str(mat)+'.csv')\n",
109+
" sim1.scenario['Resi_keep'].addMaterial(mat, massmatfile=materialfile) # add all materials listed in MATERIALS"
110+
]
111+
},
112+
{
113+
"cell_type": "code",
114+
"execution_count": null,
115+
"id": "7be01ab2-6824-4687-a1b8-23b68dbeb4ac",
116+
"metadata": {},
117+
"outputs": [],
118+
"source": [
119+
"#Residential case study\n",
120+
"sim1.createScenario(name='Resi_repower', massmodulefile=moduleFile) #create the scenario, name and mod file attach\n",
121+
"for mat in MATERIALS:\n",
122+
" materialfile = os.path.join(baselinesfolder, 'baseline_material_mass_'+str(mat)+'.csv')\n",
123+
" sim1.scenario['Resi_repower'].addMaterial(mat, massmatfile=materialfile) # add all materials listed in MATERIALS"
124+
]
125+
},
126+
{
127+
"cell_type": "markdown",
128+
"id": "68bf3167-c4a5-4da3-91ed-57f0f9bacd5f",
129+
"metadata": {},
130+
"source": [
131+
"idx_temp = pd.RangeIndex(start=2024,stop=2051,step=1) #create the index\n",
132+
"CdTeRamp = pd.DataFrame(index=idx_temp, columns=['CdTe_deploy_[MWdc]'], dtype=float)\n",
133+
"CdTeRamp.loc[2024] = 14000\n",
134+
"CdTeRamp.loc[2030] = 50000#22000\n",
135+
"CdTeRamp_full = round(CdTeRamp.interpolate(),0)\n",
136+
"#CdTeRamp_full"
137+
]
138+
},
139+
{
140+
"cell_type": "code",
141+
"execution_count": null,
142+
"id": "61014a62-9b16-431d-9c5e-3aa2f19acef6",
143+
"metadata": {},
144+
"outputs": [],
145+
"source": [
146+
"#Modify the Scenario \n",
147+
"sim1.modifyScenario(scenarios='Resi_keep',stage='new_Installed_Capacity_[MW]', value=0)#, start_year=) #\n",
148+
"#sim1.modifyScenario(scenarios='NAME',stage='new_Installed_Capacity_[MW]', value=0.005, start_year=2015) #5kW system installed in 2015\n",
149+
"sim1.scenario['Resi_keep'].dataIn_m.loc[2015, 'new_Installed_Capacity_[MW]'] = resi_sys1_size\n",
150+
"sim1.scenario['Resi_keep'].dataIn_m.loc[2015, 'mod_degradation'] = resi_sys1_deg\n",
151+
"sim1.scenario['Resi_keep'].dataIn_m.loc[2015, 'mod_lifetime'] = resi_sys1_life\n"
152+
]
153+
},
154+
{
155+
"cell_type": "code",
156+
"execution_count": null,
157+
"id": "5ac8fa8a-7c2b-40ee-8b64-5c1e34594d6f",
158+
"metadata": {},
159+
"outputs": [],
160+
"source": [
161+
"#Modify the Scenario \n",
162+
"sim1.modifyScenario(scenarios='Resi_repower',stage='new_Installed_Capacity_[MW]', value=0)#, start_year=) #\n",
163+
"#sim1.modifyScenario(scenarios='NAME',stage='new_Installed_Capacity_[MW]', value=0.005, start_year=2015) #5kW system installed in 2015\n",
164+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2015, 'new_Installed_Capacity_[MW]'] = resi_sys1_size\n",
165+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2015, 'mod_degradation'] = resi_sys1_deg\n",
166+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2015, 'mod_lifetime'] = resi_sys1_life_repower\n",
167+
"\n",
168+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2024, 'new_Installed_Capacity_[MW]'] = resi_sys2_size\n",
169+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2024, 'mod_degradation'] = resi_sys2_deg\n",
170+
"sim1.scenario['Resi_repower'].dataIn_m.loc[2024, 'mod_lifetime'] = resi_sys2_life"
171+
]
172+
},
173+
{
174+
"cell_type": "code",
175+
"execution_count": null,
176+
"id": "6268306d-58bc-4065-9810-0871f6871744",
177+
"metadata": {},
178+
"outputs": [],
179+
"source": [
180+
"#do we also need a reuse scenario where both systems are used for full life? - wouldn't it just be additive?"
181+
]
182+
},
183+
{
184+
"cell_type": "markdown",
185+
"id": "b229bce9-496d-4f55-b8a1-2fd1158b3a75",
186+
"metadata": {},
187+
"source": [
188+
"# Commercial Case Study\n",
189+
"This case study considers a set of commerical PV installations."
190+
]
191+
},
192+
{
193+
"cell_type": "code",
194+
"execution_count": null,
195+
"id": "5601df4c-6556-4b71-8922-6a05dbe9ccc6",
196+
"metadata": {},
197+
"outputs": [],
198+
"source": []
199+
},
200+
{
201+
"cell_type": "code",
202+
"execution_count": null,
203+
"id": "76aec89f-0650-43c9-94db-b3f70de82ef9",
204+
"metadata": {},
205+
"outputs": [],
206+
"source": []
207+
},
208+
{
209+
"cell_type": "code",
210+
"execution_count": null,
211+
"id": "bf115fa7-ac29-41c2-bfcd-7b8dc1beb64b",
212+
"metadata": {},
213+
"outputs": [],
214+
"source": []
215+
},
216+
{
217+
"cell_type": "markdown",
218+
"id": "afcc89b5-fccf-4c63-91e7-194446218e18",
219+
"metadata": {},
220+
"source": [
221+
"# Utility Case Study\n",
222+
"This case study considers a set of utility scale PV installations."
223+
]
224+
},
225+
{
226+
"cell_type": "code",
227+
"execution_count": null,
228+
"id": "3210d68d-f56b-4da3-b500-8073b707a2d5",
229+
"metadata": {},
230+
"outputs": [],
231+
"source": []
232+
}
233+
],
234+
"metadata": {
235+
"kernelspec": {
236+
"display_name": "Python 3 (ipykernel)",
237+
"language": "python",
238+
"name": "python3"
239+
},
240+
"language_info": {
241+
"codemirror_mode": {
242+
"name": "ipython",
243+
"version": 3
244+
},
245+
"file_extension": ".py",
246+
"mimetype": "text/x-python",
247+
"name": "python",
248+
"nbconvert_exporter": "python",
249+
"pygments_lexer": "ipython3",
250+
"version": "3.11.5"
251+
}
252+
},
253+
"nbformat": 4,
254+
"nbformat_minor": 5
255+
}

0 commit comments

Comments
 (0)