# Help calculating wind turbine power, with a timeseries and a varying capacity factor

2 views (last 30 days)
Euan Muir on 24 Jul 2021
Answered: VBBV on 24 Jul 2021
Essentially - I want to calculate the following equation for a timeseries of wind data. A wind turbine power equation
P=0.5*C*D*A*V^3
V is a variable, D and A are values. C is a variable, but only has 55 values, which vary with V, in 0.5 increments of V (0 to 27.5). The actual V-timeseries, each value has more decimals and is generally not a multiple of 0.5.
So how would I apply this varying C value to the equation, although the V-values are not multiples of 0.5. Thanks

VBBV on 24 Jul 2021
C = rand(1,55); % efficiency table
A = 121; % swept area
V = rand(1,200)*4; % 4 m/s wind speed say
D = 1.14; % air density
for i = 1: length(C)
for j = 1: length(V)
P(i,j) = 0.5*C(i)*A*V(j)^3
end
end
You can try this

R2020b

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!