-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWIND_calc_FullLoadHours.m
47 lines (39 loc) · 1.92 KB
/
WIND_calc_FullLoadHours.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function [FullLoadHours] = WIND_calc_FullLoadHours(P_turbine,delta_t)
% PURPOSE
% Calculate Full load hours
% Full load hours are calculated as the turbine's accumulated energy production
% over a given time period divided by its rated power.
%
% The full load hours multiplied with the installed capacity will give the production
% over the time period. Full load hours is a measure of the quality of the production site
% without having to know what the installed rated capacity will be (but it is not
% independent of turbine design as the production is dependent on the selected power
% curve used in production calculation).
% Often a full year is used as the time period
%
% INPUT
% P_turbine - Wind power extracted from the wind for a selected turbine - P_turbine(no_gridpnts,no_times)
% (must have unit of Watts, W, kW, MW or similar is ok)
% P_rated - P_rate: Rated power - scalar or P_rated(no_gridpnts,1)
% (P_rate must have same unit as P_turbine)
% delta_t - time between values in P_turbine (hours) - scalar
% Ex: if P_turbine is the power production value every second hour delta_t=2;
%
% OUTPUT
% FullLoadHours - Full load hours over the time period of data (given by
% P_turbine) [hours] - FullLoadHours(no_gridpnts,1)
%
% AUTHOR: Ida Marie Solbrekke, modified by Asgeir Sorteberg
% Bergen offshore wind centre, Geophysical institute, University in Bergen
% email: ida.solbrekke@uib.no
% Jan 2021
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Call global variables
global P_rated
%
disp('WIND_calc_WndPower_FullLoadHours: Calculates Full load hours over given time period')
% accumulated energy production (J/s*hours)
E_Turbine_acc=nansum(P_turbine*delta_t,2);
% Full load hours (hours)
FullLoadHours=E_Turbine_acc./P_rated;
disp('WIND_calc_WndPower_FullLoadHours: Finished')