From b6453e7874fa8ac7e14e88eb3f80fccfb2f1164b Mon Sep 17 00:00:00 2001 From: Georg Date: Fri, 10 Feb 2023 11:20:54 +0100 Subject: [PATCH] updated template notebook to include instructions for setups with more/less turbines --- KW Vorlage.ipynb | 54 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/KW Vorlage.ipynb b/KW Vorlage.ipynb index ff5f882..aeeeea4 100644 --- a/KW Vorlage.ipynb +++ b/KW Vorlage.ipynb @@ -156,11 +156,14 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Adaptions to fit specific project \n", "- adapt tubine parameters\n", + " - if number of turbines in OL not equal to 2, copy (or) delete lines 17-19\n", + " - if number of turbines in UL not equal to 2, copy (or) delete lines 26-28\n", "- adapt controller parameters\n", "- adapt pipeline parameters\n", "- adapt reservoir parameters\n", @@ -246,11 +249,14 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Adaptions to fit specific project \n", - "- choose between initialization by flux or guide vane opening - toggle comments in lines 12 and 14+15\n" + "- choose between initialization by flux or guide vane opening - toggle comments in lines 12 and 14+15\n", + "- adapt for the number of turbines in your project\n", + " - lines 6,10,27,31\n" ] }, { @@ -315,11 +321,14 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Adaptions to fit specific project \n", - "- change the influx through the OL HPP by manually setting the guide vane openings\n" + "- change the influx through the OL HPP by manually setting the guide vane openings\n", + "- adapt for the number of turbines in your project\n", + " - lines 11,54,55,61,62,67,68\n" ] }, { @@ -398,6 +407,16 @@ "UL_T2_LA_ist_vec[0] = UL_T2.get_current_LA() # storing the initial value of the guide vane opening\n" ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Adaptions to fit specific project \n", + "- adapt for the number of turbines in your project\n", + " - line 9" + ] + }, { "cell_type": "code", "execution_count": 25, @@ -410,13 +429,9 @@ "%matplotlib qt5 \n", "\n", "fig0,axs0 = plt.subplots(1,1)\n", - "axs0.set_title('LA')\n", + "axs0.set_title('LA target')\n", "axs0.plot(t_vec,100*OL_T1_LA_soll_vec,label='OL_T1 Target',c='b')\n", - "axs0.scatter(t_vec[::200],100*OL_T1_LA_soll_vec[::200],c='b',marker='+') # plot only every 200th value\n", "axs0.plot(t_vec,100*OL_T2_LA_soll_vec,label='OL_T2 Target',c='g')\n", - "# axs0.plot(t_vec,100*UL_T1_LA_soll_vec,label='UL_T1 Target',c='r')\n", - "# axs0.scatter(t_vec[::200],100*UL_T1_LA_soll_vec[::200],c='r',marker='+')\n", - "# axs0.plot(t_vec,100*UL_T2_LA_soll_vec,label='UL_T2 Target',c='k')\n", "axs0.set_xlabel(r'$t$ [$\\mathrm{s}$]')\n", "axs0.set_ylabel(r'$LA$ [%]')\n", "axs0.legend()\n", @@ -467,11 +482,14 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Adaptions to fit specific project \n", - "- in line 10 OL_p_pseudo is used" + "- in line 10 OL_p_pseudo is used\n", + "- adapt for the number of turbines in your project\n", + " - line 10,29,32,34,35" ] }, { @@ -573,6 +591,17 @@ " plt.pause(0.1) " ] }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Adaptions to fit specific project \n", + "- change level_plot min and max in lines 4 and 5\n", + "- adapt for the number of turbines in your project\n", + " - line 26,27,30,31" + ] + }, { "cell_type": "code", "execution_count": 28, @@ -651,11 +680,14 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# Adaptions to fit specific project \n", "- change level_plot_min and _max\n", + "- adapt for the number of turbines in your project\n", + " - line 26,27,30,31\n", "- check that folder for saving figures is present in same directory as this file\n", "- change name of the saved file in line 54: Vorlage -> ..." ] @@ -726,7 +758,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.8.13 ('Georg_DT_Slot3')", + "display_name": "DT_Slot3", "language": "python", "name": "python3" }, @@ -740,12 +772,12 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.8.16" }, "orig_nbformat": 4, "vscode": { "interpreter": { - "hash": "84fb123bdc47ab647d3782661abcbe80fbb79236dd2f8adf4cef30e8755eb2cd" + "hash": "06e42ed9520aaad7103456df165a31ea40da0f41ac9dffb743274e5e314689f3" } } },