|
6 | 6 | "source": [ |
7 | 7 | "# MHKiT WEC-Sim Example\n", |
8 | 8 | "\n", |
9 | | - "This notebook demonstrates using the MHKiT wave module and [WEC-Sim](http://wec-sim.github.io/WEC-Sim/index.html) together to perform a resource characterization study in MHKiT, simulate representative cases with WEC-Sim, and visualize the results in MHKiT to estimate MAEP.\n", |
| 9 | + "This notebook demonstrates using the MHKiT wave module and [WEC-Sim](http://wec-sim.github.io/WEC-Sim/index.html) together to perform a resource characterization study in MHKiT, simulate representative cases with WEC-Sim, and visualize the results in MHKiT to estimate MAEP (Mean Annual Energy Production).\n", |
10 | 10 | "\n", |
11 | 11 | " 1. Characterize the available resource at a location\n", |
12 | 12 | " - See the PacWave example notebook\n", |
|
23 | 23 | }, |
24 | 24 | { |
25 | 25 | "cell_type": "code", |
26 | | - "execution_count": 1, |
| 26 | + "execution_count": 7, |
27 | 27 | "metadata": {}, |
28 | 28 | "outputs": [], |
29 | 29 | "source": [ |
|
48 | 48 | }, |
49 | 49 | { |
50 | 50 | "cell_type": "code", |
51 | | - "execution_count": 2, |
| 51 | + "execution_count": 8, |
52 | 52 | "metadata": {}, |
53 | 53 | "outputs": [ |
54 | 54 | { |
|
376 | 376 | "31 8.301748 3.676767 0.022070 9.675697 54122.886646" |
377 | 377 | ] |
378 | 378 | }, |
379 | | - "execution_count": 2, |
| 379 | + "execution_count": 8, |
380 | 380 | "metadata": {}, |
381 | 381 | "output_type": "execute_result" |
382 | 382 | } |
|
397 | 397 | }, |
398 | 398 | { |
399 | 399 | "cell_type": "code", |
400 | | - "execution_count": 3, |
| 400 | + "execution_count": 9, |
401 | 401 | "metadata": { |
402 | 402 | "scrolled": true |
403 | 403 | }, |
|
417 | 417 | "\n", |
418 | 418 | "Now that the MCR file is created, we need to go simulate WEC performance in these wave conditions using WEC-Sim. To recreate the data used in the next step, use the created MCR file with WEC-Sim's [OSWEC example](https://github.com/WEC-Sim/WEC-Sim/tree/main/examples/OSWEC). For an accurate comparison to the power calculated in the resource characterization, we should ensure that the WEC-Sim cases use irregular JONSWAP wave spectra as in the PacWave example.\n", |
419 | 419 | "\n", |
420 | | - "For convenience in this demonstration, we enforce OSWEc model stability in the extreme wave conditions by arbitrarily applying a large PTO stiffness and damping:\n", |
| 420 | + "For convenience in this demonstration, we enforce OSWEC model stability in the extreme wave conditions by arbitrarily applying a large PTO stiffness and damping:\n", |
421 | 421 | "```\n", |
422 | 422 | "pto(1).stiffness = 1e5;\n", |
423 | 423 | "pto(1).damping = 5e7;\n", |
|
455 | 455 | }, |
456 | 456 | { |
457 | 457 | "cell_type": "code", |
458 | | - "execution_count": 4, |
| 458 | + "execution_count": 10, |
459 | 459 | "metadata": { |
460 | 460 | "scrolled": true |
461 | 461 | }, |
|
818 | 818 | "31 8.301748 3.676767 0.022070 9.675697 54122.886646 7.578856e+05" |
819 | 819 | ] |
820 | 820 | }, |
821 | | - "execution_count": 4, |
| 821 | + "execution_count": 10, |
822 | 822 | "metadata": {}, |
823 | 823 | "output_type": "execute_result" |
824 | 824 | } |
|
843 | 843 | }, |
844 | 844 | { |
845 | 845 | "cell_type": "code", |
846 | | - "execution_count": 5, |
| 846 | + "execution_count": 11, |
847 | 847 | "metadata": {}, |
848 | 848 | "outputs": [ |
849 | 849 | { |
|
1304 | 1304 | "31 14.003052 0.777947 " |
1305 | 1305 | ] |
1306 | 1306 | }, |
1307 | | - "execution_count": 5, |
| 1307 | + "execution_count": 11, |
1308 | 1308 | "metadata": {}, |
1309 | 1309 | "output_type": "execute_result" |
1310 | 1310 | } |
|
1318 | 1318 | }, |
1319 | 1319 | { |
1320 | 1320 | "cell_type": "code", |
1321 | | - "execution_count": 6, |
| 1321 | + "execution_count": 12, |
1322 | 1322 | "metadata": {}, |
1323 | 1323 | "outputs": [ |
1324 | 1324 | { |
|
1327 | 1327 | "2865149.0" |
1328 | 1328 | ] |
1329 | 1329 | }, |
1330 | | - "execution_count": 6, |
| 1330 | + "execution_count": 12, |
1331 | 1331 | "metadata": {}, |
1332 | 1332 | "output_type": "execute_result" |
1333 | 1333 | } |
|
1341 | 1341 | ], |
1342 | 1342 | "metadata": { |
1343 | 1343 | "kernelspec": { |
1344 | | - "display_name": "Python 3 (ipykernel)", |
| 1344 | + "display_name": "MHKit Environment", |
1345 | 1345 | "language": "python", |
1346 | | - "name": "python3" |
| 1346 | + "name": "mhkit" |
1347 | 1347 | }, |
1348 | 1348 | "language_info": { |
1349 | 1349 | "codemirror_mode": { |
|
1355 | 1355 | "name": "python", |
1356 | 1356 | "nbconvert_exporter": "python", |
1357 | 1357 | "pygments_lexer": "ipython3", |
1358 | | - "version": "3.12.7" |
| 1358 | + "version": "3.10.15" |
1359 | 1359 | } |
1360 | 1360 | }, |
1361 | 1361 | "nbformat": 4, |
|
0 commit comments