calculate aep of turbine in matlab

To calculate the Annual Energy Production (AEP) of a wind turbine in Matlab, you will need to follow these steps:

  1. Define the wind speed data: You can use wind speed data measured at the site, or use available data from sources such as wind atlases or CFD simulations. The wind speed data should be in m/s, and should cover a 8760-hour period.

  2. Create a wind speed frequency distribution: Use the wind speed data to create a wind speed frequency distribution. This can be done by counting the number of hours that wind speed values fall within specific wind speed bins. You can choose the size of wind speed bins depending on the level of detail you require.

  3. Calculate the wind power output: Use the wind turbine's power curve to calculate the power output corresponding to each wind speed bin.

  4. Calculate the energy output: Multiply the wind power output by the number of hours in each wind speed bin, and sum the results for all bins. This will give you the energy output of the turbine over the 8760-hour period.

  5. Calculate the AEP: Multiply the energy output with the capacity factor to obtain the AEP.

The following code snippet shows an example implementation of this process in Matlab:

main.m
% Define wind speed data
wind_speed = [10 12 7 8 6 8 9 10 11 12 ...]; % m/s, 8760 data points

% Define wind speed bins (m/s)
windspeed_bins = 0:1:25;

% Create wind speed frequency distribution
freq_dist = histcounts(wind_speed, windspeed_bins);

% Load wind turbine power curve (power vs. wind speed)
load('power_curve.mat'); % column 1 = wind speed (m/s), column 2 = power (kW)

% Calculate wind power output for each wind speed bin
power_output = zeros(length(windspeed_bins)-1,1);
for i=1:length(windspeed_bins)-1
    ind = find(power_curve(:,1)>=windspeed_bins(i) & ...
               power_curve(:,1)<windspeed_bins(i+1));
    power_output(i) = mean(power_curve(ind,2)); % average power in kW
end

% Calculate energy output for each wind speed bin
energy_output = power_output.*freq_dist';

% Calculate AEP (in MWh)
capacity_factor = 0.35; % typical for onshore wind turbines
AEP = sum(energy_output)*capacity_factor/1000; % convert to MWh
947 chars
27 lines

Note that the capacity factor used in this example is assumed to be 0.35, which is typical for onshore wind turbines. However, the actual capacity factor will depend on factors such as the site location, wind resource, and turbine performance.

gistlibby LogSnag