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

Updated GCL model to be able to handle individual WS, WD and TI. New improved implementation of the rotor averaging quadrature. #11

Open
wants to merge 3 commits into
base: master
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

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions examples/Multiple turbines development .ipynb

Large diffs are not rendered by default.

215 changes: 215 additions & 0 deletions examples/Problem_yml_wf_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
layout:
- name: WT01
row: 1
position: [0, 0]
turbine_type: B76
- name: WT02
row: 2
position: [560, 0]
turbine_type: v80

plant_data:
utm:
code: 32
letter: U
name: Test WF
owner: DTU

turbine_types:
# Sources:
# [1] https://windbench.net/system/files/hornsrev_v80_0.pdf
# [2] http://www.thewindpower.net/turbine_en_30_vestas_2000.php
# [3] http://en.wind-turbine-models.com/turbines/668-vestas-v-80-offshore
# [4] WAsP wind turbine library (distributed as part of the WAsP software)
- name: V80
hub_height: 90.0 # [1]
rotor_diameter: 80.0 # [1]
rated_power: 2000.0 # [1]
cut_in_wind_speed: 4.0 # [1]
cut_out_wind_speed: 25.0 # [1]
rated_wind_speed: 16.0 # [1]
wind_class: IEC Ia (DIBt III) # [2]
air_density: 1.225 # guess
gear_box:
speed_number: 3
ratio: 1:100,5 # [2]
type: spur/planetary # [3]
nacelle: # [2]
weight: 68000.0 # kg [2], 69000.0 kg according to [3]
rotor: # [2, 3]
weight: 37000.0 # kg [2]
tip_speed: 80.0 # m/s [3]
min_speed: 9 # rd/min [2]
max_speed: 19 # rd/min [2]
manufacturer: Vestas
hub:
weight: 18000 # kg [3]
tower: # [2]
weight: 198000.0 #kg [2], max 148000.0 kg according to [3]
material: steel
manufacturer: Welcon
control: # [1]
type: Active Pitch, Variable Speed
generator: # [2]
type: ASYNC
number: 1
max_output_speed: 1909 #rounds/minute
output_voltage: 690 #V
grid_frequency: 50/60 # Hz
power_curve: # [1]
- [3.0, 0.0]
- [4.0, 66.6]
- [5.0, 154.0]
- [6.0, 282.0]
- [7.0, 460.0]
- [8.0, 696.0]
- [9.0, 996.0]
- [10.0, 1341.0]
- [11.0, 1661.0]
- [12.0, 1866.0]
- [13.0, 1958.0]
- [14.0, 1988.0]
- [15.0, 1997.0]
- [16.0, 1999.0]
- [17.0, 2000.0]
- [18.0, 2000.0]
- [19.0, 2000.0]
- [20.0, 2000.0]
- [21.0, 2000.0]
- [22.0, 2000.0]
- [23.0, 2000.0]
- [24.0, 2000.0]
- [25.0, 2000.0]
c_t_curve:
- [3.0, 0.00]
- [4.0, 0.818]
- [5.0, 0.806]
- [6.0, 0.804]
- [7.0, 0.805]
- [8.0, 0.806]
- [9.0, 0.807]
- [10.0, 0.793]
- [11.0, 0.739]
- [12.0, 0.709]
- [13.0, 0.409]
- [14.0, 0.314]
- [15.0, 0.249]
- [16.0, 0.202]
- [17.0, 0.167]
- [18.0, 0.140]
- [19.0, 0.119]
- [20.0, 0.102]
- [21.0, 0.088]
- [22.0, 0.077]
- [23.0, 0.067]
- [24.0, 0.060]
- [25.0, 0.053]
c_t_idle: 0.053 # [4]
blade:
geometry: # [1]
# [radius [m], c [m], twist [deg], airfoil ]
- [2.563, 2.004, 9.50, 'Cylinder 1']
- [4.389, 2.523, 9.50, 'Cylinder 1']
- [6.216, 3.015, 9.50, 'FFA W3-301']
- [8.042, 3.278, 9.50, 'FFA W3-301']
- [9.868, 3.309, 9.50, 'FFA W3-301']
- [11.694, 3.195, 9.50, 'FFA W3-301']
- [13.520, 3.039, 9.22, 'FFA W3-241']
- [15.346, 2.863, 7.81, 'FFA W3-211']
- [17.173, 2.687, 6.40, 'FFA W3-211']
- [18.999, 2.511, 5.11, 'FFA W3-211']
- [20.825, 2.334, 3.83, 'FFA W3-211']
- [22.651, 2.158, 2.61, 'NACA 63-221']
- [24.477, 1.982, 1.48, 'NACA 63-221']
- [26.304, 1.806, 0.42, 'NACA 63-221']
- [28.130, 1.630, 0.49, 'NACA 63-221']
- [29.956, 1.454, 1.23, 'NACA 63-218']
- [31.782, 1.278, 1.79, 'NACA 63-218']
- [33.608, 1.102, 2.24, 'NACA 63-218']
- [35.435, 0.926, 2.61, 'NACA 63-218']
- [37.261, 0.749, 2.84, 'NACA 63-218']
- [39.087, 0.573, 2.97, 'NACA 63-218']

# Sources:
# [1] http://www.middelgrunden.dk/middelgrunden/sites/default/files/public/file/Location.pdf
# [2] http://www.thewindpower.net/turbine_en_229_bonus_2000.php
# [3] http://en.wind-turbine-models.com/turbines/121-bonus-b76-2000
# [4] WAsP wind turbine library (distributed as part of the WAsP software)
- name: B76
hub_height: 64.0 #[1]
rotor_diameter: 76.0 #[1]
rated_power: 2000.0 #[1]
cut_in_wind_speed: 3.0 #[2]
cut_out_wind_speed: 25.0 #[2]
rated_wind_speed: 15.0 #[2]
air_density: 1.225 # guess
gear_box:
speed_number: 3
ratio: 1:89 # [2], or [3]: 1:93
manufacturer: Flender
nacelle: # [2]
weight: 65000.0 #kg [2], or [3]: 82500 kg
rotor: # [2, 3]
weight: 38000.0 #kg [2], or [3]: 52000.0 kg
max_speed: 17 #rd/min [2], or [3]: 16
tip_speed: 63.7 #m/s [3]
manufacturer: LM Glasfiber, Bonus
tower: # [2]
weight: 162000.0 #kg [2]
control: # [2]
type: Stall
generator: # [2]
type: ASYNC
number: 1
max_output_speed: 1500 #rounds/minute
output_voltage: 690 #V
manufacturer: ABB
power_curve: # [4]
- [3.0, 0.0]
- [4.0, 43.0]
- [5.0, 133.0]
- [6.0, 237.0]
- [7.0, 401.0]
- [8.0, 623.0]
- [9.0, 886.0]
- [10.0, 1190.0]
- [11.0, 1502.0]
- [12.0, 1740.0]
- [13.0, 1891.0]
- [14.0, 1962.0]
- [15.0, 1988.0]
- [16.0, 1996.0]
- [17.0, 1999.0]
- [18.0, 2000.0]
- [19.0, 2000.0]
- [20.0, 2000.0]
- [21.0, 2000.0]
- [22.0, 2000.0]
- [23.0, 2000.0]
- [24.0, 2000.0]
- [25.0, 2000.0]
c_t_curve: # [4]
- [3.0, 0.00]
- [4.0, 0.857]
- [5.0, 0.858]
- [6.0, 0.810]
- [7.0, 0.853]
- [8.0, 0.870]
- [9.0, 0.811]
- [10.0, 0.756]
- [11.0, 0.679]
- [12.0, 0.584]
- [13.0, 0.511]
- [14.0, 0.439]
- [15.0, 0.383]
- [16.0, 0.338]
- [17.0, 0.301]
- [18.0, 0.271]
- [19.0, 0.246]
- [20.0, 0.225]
- [21.0, 0.207]
- [22.0, 0.192]
- [23.0, 0.179]
- [24.0, 0.168]
- [25.0, 0.158]
c_t_idle: 0.158 # [4]
37 changes: 30 additions & 7 deletions examples/Script.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,25 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 9,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"wf.WindFarm?"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"v80 = wt.WindTurbine('Vestas v80 2MW offshore','V80_2MW_offshore.dat',70,40)\n",
"HR1 = wf.WindFarm('Horns Rev 1','HR_coordinates.dat',v80)\n",
"HR1 = wf.WindFarm(name='Horns Rev 1',yml='hornsrev.yml')#,v80)\n",
"WD = range(0,360,1)"
]
},
Expand All @@ -78,7 +89,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 12,
"metadata": {
"collapsed": false
},
Expand All @@ -89,7 +100,7 @@
"\"\\n##Fused inputs\\ninputs = dict(\\n wind_speed=8.0,\\n roughness=0.0001,\\n TI=0.05,\\n NG=4,\\n sup='lin',\\n wt_layout = fused_gcl.generate_GenericWindFarmTurbineLayout(HR1))\\n\\nfgcl = fused_gcl.FGCLarsen()\\n# Setting the inputs\\nfor k,v in inputs.iteritems():\\n setattr(fgcl, k, v)\\n\\nfP_WF = np.zeros([len(WD)])\\nfor iwd, wd in enumerate(WD):\\n fgcl.wind_direction = wd\\n fgcl.run()\\n fP_WF[iwd] = fgcl.power\\n\""
]
},
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -127,11 +138,23 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"ename": "NameError",
"evalue": "name 'GCLarsen' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-13-4a1f1cb162b9>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mP_WF_v0\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mzeros\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mWD\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0miwd\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mwd\u001b[0m \u001b[0;32min\u001b[0m \u001b[0menumerate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mWD\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mP_WT\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mU_WT\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mCT_WT\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mGCLarsen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mWS\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m8.0\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mz0\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.0001\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mTI\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.05\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mWD\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mwd\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mWF\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mHR1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mNG\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m4\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0msup\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'lin'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0mP_WF\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0miwd\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mP_WT\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msum\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0mP_WT\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mU_WT\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mCT_WT\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mGCLarsen_v0\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mWS\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m8.0\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mz0\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.0001\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mTI\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m0.05\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mWD\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mwd\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mWF\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mHR1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mNG\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m4\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0msup\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'lin'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mNameError\u001b[0m: name 'GCLarsen' is not defined"
]
}
],
"source": [
"P_WF = np.zeros([len(WD)])\n",
"P_WF_v0 = np.zeros([len(WD)])\n",
Expand Down Expand Up @@ -524,7 +547,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"version": "2.7.11"
}
},
"nbformat": 4,
Expand Down
Loading