Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Icon #1

Open
wants to merge 8 commits into
base: develop_mikf
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 136 additions & 0 deletions plant/Plant_AEP.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## AEP calculation"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$AEP = \\sum_{wt=0}^{N}\\sum_{wd_{ref}=0}^{360}\\sum_{ws = cut{\\text -}in}^{cut{\\text -}out} Power \\cdot Weight$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$Power = PowerCurve_{wt}\\left(LocalWind,\\theta_{yaw}\\right)\\cdot \\frac{\\rho}{\\rho_{ref}}$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$\\begin{align}LocalWind = WS \\cdot SpeedUp - WakeDeficits\\end{align}$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$$ Weight=\\begin{cases}\n",
" P, & \\text{if $P$ is provided}.\\\\\n",
" f \\cdot Weibull(A,k,ws), & \\text{otherwise}.\n",
" \\end{cases}$$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Where \n",
"\n",
"- $wt$: wind turbine\n",
"- $wd$: reference wind direction\n",
"- $ws$: reference wind speed\n",
"- $\\theta_{yaw}$: yaw missalignment of the wind turbine\n",
"- $PowerCurve_{wt}$: the wind-speed and yaw-misalignment dependent power curve of the wind turbine\n",
"- $WakeDeficits$: Deficits from other wind turbines"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Required data variables:\n",
"\n",
"- $P$: Probability of flow case\n",
"\n",
"or\n",
"\n",
"- $f$: Sector probability\n",
"- $A$: Weibull scale parameter\n",
"- $k$: Weibull shape parameter"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Optional data variables:\n",
"\n",
"- $WS$: Wind speed, defaults to reference wind speed, $ws$\n",
"- $SpeedUp$: Speed up factor, defaults to 1\n",
"- $\\rho$: Air density, defaults to reference density, $\\rho_{ref}$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"These required and optional data varaibles may be constant or dependent on any of\n",
"- $ws$ \n",
"- $wd$\n",
"- $position$ in terms of\n",
" - gridded 2D position, (x,y)\n",
" - gridded 3D position, (x,y,z)\n",
" - wt position"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": true
}
},
"nbformat": 4,
"nbformat_minor": 4
}
File renamed without changes.
Binary file added plant/examples/example_data/GriddedSite.nc
Binary file not shown.
158 changes: 158 additions & 0 deletions plant/examples/example_data/GriddedSite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
coords:
wd:
data:
- 0.0
- 22.5
- 45.0
- 67.5
- 90.0
- 112.5
- 135.0
- 157.5
- 180.0
- 202.5
- 225.0
- 247.5
- 270.0
- 292.5
- 315.0
- 337.5
dims:
- wd
x:
data:
- -2000
- -1500
- -1000
- -500
- 0
- 500
- 1000
- 1500
- 2000
dims:
- x
y:
data:
- -2000
- -1500
- -1000
- -500
- 0
- 500
- 1000
- 1500
- 2000
dims:
- y
data_vars:
P:
data:
- 0.025
- 0.024
- 0.029
- 0.036
- 0.063
- 0.065
- 0.1
- 0.122
- 0.063
- 0.038
- 0.039
- 0.083
- 0.213
- 0.046
- 0.032
- 0.022
dims:
- wd
Speedup:
data:
- - 0.954030230586814
- 0.979030230586814
- 1.0040302305868138
- 1.029030230586814
- 1.0540302305868139
- 1.0790302305868138
- 1.104030230586814
- 1.1290302305868138
- 1.154030230586814
- - 0.9731688868873821
- 0.9981688868873821
- 1.023168886887382
- 1.048168886887382
- 1.073168886887382
- 1.098168886887382
- 1.1231688868873821
- 1.148168886887382
- 1.1731688868873822
- - 0.9877582561890373
- 1.0127582561890374
- 1.0377582561890373
- 1.0627582561890372
- 1.0877582561890373
- 1.1127582561890372
- 1.1377582561890374
- 1.1627582561890373
- 1.1877582561890374
- - 0.9968912421710645
- 1.0218912421710646
- 1.0468912421710646
- 1.0718912421710645
- 1.0968912421710644
- 1.1218912421710643
- 1.1468912421710646
- 1.1718912421710646
- 1.1968912421710645
- - 1.0
- 1.0250000000000001
- 1.05
- 1.075
- 1.1
- 1.125
- 1.1500000000000001
- 1.175
- 1.2000000000000002
- - 0.9968912421710645
- 1.0218912421710646
- 1.0468912421710646
- 1.0718912421710645
- 1.0968912421710644
- 1.1218912421710643
- 1.1468912421710646
- 1.1718912421710646
- 1.1968912421710645
- - 0.9877582561890373
- 1.0127582561890374
- 1.0377582561890373
- 1.0627582561890372
- 1.0877582561890373
- 1.1127582561890372
- 1.1377582561890374
- 1.1627582561890373
- 1.1877582561890374
- - 0.9731688868873821
- 0.9981688868873821
- 1.023168886887382
- 1.048168886887382
- 1.073168886887382
- 1.098168886887382
- 1.1231688868873821
- 1.148168886887382
- 1.1731688868873822
- - 0.954030230586814
- 0.979030230586814
- 1.0040302305868138
- 1.029030230586814
- 1.0540302305868139
- 1.0790302305868138
- 1.104030230586814
- 1.1290302305868138
- 1.154030230586814
dims:
- x
- y
dims:
wd: 16
x: 9
y: 9
Binary file added plant/examples/example_data/NonGriddedSite.nc
Binary file not shown.
85 changes: 85 additions & 0 deletions plant/examples/example_data/NonGriddedSite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
coords:
i:
data:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
dims:
- i
wd:
data:
- 0.0
- 22.5
- 45.0
- 67.5
- 90.0
- 112.5
- 135.0
- 157.5
- 180.0
- 202.5
- 225.0
- 247.5
- 270.0
- 292.5
- 315.0
- 337.5
dims:
- wd
data_vars:
P:
data:
- 0.025
- 0.024
- 0.029
- 0.036
- 0.063
- 0.065
- 0.1
- 0.122
- 0.063
- 0.038
- 0.039
- 0.083
- 0.213
- 0.046
- 0.032
- 0.022
dims:
- wd
Speedup:
data:
- 1.0
- 1.01
- 1.02
- 1.03
- 1.04
- 1.05
- 1.06
- 1.07
- 1.08
- 1.09
- 1.1
- 1.11
- 1.12
- 1.13
- 1.1400000000000001
- 1.15
dims:
- i
dims:
i: 16
wd: 16
Binary file added plant/examples/example_data/UniformSite.nc
Binary file not shown.
Binary file added plant/examples/example_data/UniformWeibullSite.nc
Binary file not shown.
Loading