Code covered by the BSD License  

Highlights from
Co-Blade: Software for Analysis and Design of Composite Blades

image thumbnail

Co-Blade: Software for Analysis and Design of Composite Blades

by

 

18 Sep 2012 (Updated )

Analysis and design of composite blades for wind and hydrokinetic turbines

scaleAirfoilCoords(x, y, pitAxis, chord, aeroTwst)
function [X Y] = scaleAirfoilCoords(x, y, pitAxis, chord, aeroTwst)

%% Translate the x/c-coordinates so the pitch axis is at the origin
x = x - pitAxis;

%% Scale x/c - y/c coordinates by the chord length
x = x .* chord;
y = y .* chord;

%% rotate x - y airfoil coordinates by the aero twist angle
aeroTwst = aeroTwst * pi/180; % convert degrees to radians
r        = sqrt(x.^2 + y.^2);
theta    = atan2(y, x);       
X        = r .* cos(theta + aeroTwst);
Y        = r .* sin(theta + aeroTwst);

end % function scaleAirfoilCoords

Contact us