function power = simpleTurbine( windSpeed, ratedOutputPower, cutInSpeed, ratedOutputSpeed, cutOutSpeed ) %#codegen
%Simple Turbine
% This function implements a simple power versus wind speed characteristic
% to represent a wind turbine.
%
% Given an input of wind speed, m/s, the function outputs turbine power, W.
%
% The parameters must meet the following requirement:
%
% Cut-in speed < Rated output speed < Cut-out speed
% Check rated output power is greater than zero
if ~(ratedOutputPower > 0)
error( 'Rated output power must be greater than zero.' );
end
% Check cut-in speed is less than rated output speed
if ~(cutInSpeed < ratedOutputSpeed)
error( 'Cut-in speed must be less than rated output speed.' );
end
% Check rated output speed is less than cut-out speed
if ~(ratedOutputSpeed < cutOutSpeed)
error( 'Rated output speed must be less than cut-out speed.' );
end
if windSpeed < cutInSpeed
% Wind speed is less then cut-in speed, power output is zero
power = 0;
elseif windSpeed < ratedOutputSpeed
% Wind speed is greater than cut-in speed and less than rated output
% speed, power output follows linear characteristic from zero to rated
% power
cutInGradient = ( ratedOutputPower / ( ratedOutputSpeed - cutInSpeed ) );
power = cutInGradient * ( windSpeed - cutInSpeed );
elseif windSpeed < cutOutSpeed
% Wind speed is greater than rated output speed and less than cut-out
% speed, power output is limited to rated power
power = ratedOutputPower;
else
% Wind speed is greater than cut-out speed, power output is zero
power = 0;
end
matlab科研助手
- 粉丝: 3w+
- 资源: 5989
最新资源
- mmexport1735633325288.png
- HTML5实现好看的PC电脑端服装购物网站模板.zip
- HTML5实现好看的LED灯具制作企业网站模板.zip
- HTML5实现好看的SEO网络营销公司网页源码.zip
- HTML5实现好看的手机应用推广描述网页源码.zip
- HTML5实现好看的SEO推广公司网站模板.zip
- HTML5实现好看的办公室桌椅厂家网站源码.zip
- HTML5实现好看的白色简洁时尚家居商城模板.zip
- HTML5实现好看的百货商城全站网页源码.zip
- HTML5实现好看的BTB金融交易网站模板.zip
- HTML5实现好看的本地家政服务公司网站模板.zip
- HTML5实现好看的扁平化女装鞋包商城模板.zip
- HTML5实现好看的餐厅美食作品展示网站源码.zip
- HTML5实现好看的博客社交媒体网站模板.zip
- 2-MagicMouseTrails鼠标轨迹美化工具
- INPC-VSG(非线性负载),基于I型三电平逆变器的非线性负载下同步发电机控制,中点电位平衡控制,电压电流双闭环控制,基波提取算法 1.VSG,非线性负载 2.电压电流双闭环,基波提取算法 3.提
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈