Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

Matlab wind turbine model

Code

Matlab wind turbine model Code

Generic Matlab model of a wind turbine drive train.

Status: Alpha
Brought to you by: crobarcro, mcmullenjoe

Summary

Reviews

Support

Code

Menu ▾ ▴

Browse Commits

Browse Files

[r12]: / basic.m  Maximize  Restore  History

Download this file

56 lines (38 with data), 1.4 kB

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
48
49
50
51
52
53
54
55
56

% rotor_torque.m

% Script to calculate the torque on a rotor given certain input parameters.

%

% Joe McMullen, 31/05/2013

%

% Variable dictionary

% rotor_torque = rotor torque

% density = density of the air = 1.2041 (density at 20 degrees celcius)

% R = the radius of the rotor blades in metres

% u = the velocity of the wind

% cp = the coefficent of performance

% lambda = tip speed ration

% omega = angular speed of rotor

% B = blade pitch angle

clear;

clc;

% Request and define variables

density = 1.2041;

R = input('Input the rotor radius in metres: ');

u = input('Input the wind speed in metres per second: ');

omega = input('Input the initial rotor angular velocity: ');

B = 0;

lambda = ang_vel*R/u;

% Calculation of cp

lambda_i = (1/((1/(lambda+0.08*B))-(0.035/(B^3+1))));

cp = 0.5176.*(116/lambda_i - 0.4*B - 5)*exp(-21/lambda_i) + 0.0068*lambda;

% Compute rotor torque

rotor_torque = 0.5*pi*density*R^3*u^2*cp/lambda;

% Output value of rotor torque

disp([num2str(rotor_torque) ' newton metres'])

% Set a value of generator torque of 0.9 times rotor torque

gen_torque = 0.9*rotor_torque;

% Output the shaft torque

shaft_torque = rotor_torque - gen_torque

% Define inertia

inertia = 0.212*(2.95*R^2.13)*R^2;

% Calculate the acceleration of the rotor

rotor_acc = (rotor_torque - gen_torque)/inertia

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit