



免费预览已结束,剩余9页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
-Name: Yang , Vorname: Ying Student ID: 359144PV Assignment 1Exercise 1Code:%Exercise 1close allclear all %define input valuesDOY=172;TZ=2;lambda_g=13.2;fi_g=52.3;LT=6:1:20;%call function sundata to get sun enevation and azimuth Am, Ys, SAz = sundata(lambda_g,fi_g,TZ,DOY,LT); plot(SAz,Ys);xlabel(Azimuth in degrees As);ylabel(Altitude Position in degrees Ys);title(Berlin(13.2,52.3) on 21.06.2013(172/365);grid on;Function sundata:function Am, Ys, SAz = sundata(lambda_g,fi_g,TZ,DOY,LT)%UNTITLED Summary of this function goes here% Detailed explanation goes here J=360*DOY/365; TEQ=0.0066+7.3525*cos(J+85.9)*pi/180)+9.9359*cos(2*J+108.9)*pi/180)+0.3387*cos(3*J+105.2)*pi/180);delta=0.3948-23.2559*cos(J+9.1)*pi/180)-0.3915*cos(2*J+5.4)*pi/180)-0.176*cos(3*J+26)*pi/180); % delta units-degree for k=1:1:15 TLT(k)=LT(k)-TZ+ (4*lambda_g+TEQ)/60; W(k)=(12-TLT(k)*15; Ys(k)=asin( cos(W(k)*pi/180)*cos(fi_g*pi/180)*cos(delta*pi/180) +sin(fi_g*pi/180)*sin(delta*pi/180) )*180/pi; SunA(k)=acos( (sin(Ys(k)*pi/180)*sin(fi_g*pi/180)-sin(delta*pi/180) )/(cos(Ys(k)*pi/180)*cos(fi_g*pi/180) )*180/pi; if LT(k)0 Vstep(i+1)=Vstep(i);else Vstep(i+1)=-Vstep(i);end D(i+1)=Vo/(Vo+V(i+1); Vnew(i+1)=V(i+1)+Vstep(i+1);endend Figure 6(G=1000, T=25) would be given together with the figure 7Exercise 7Code:% Exercise 7 close all;clear all;%define the new voltage step as 0.1Vdelta_V=0.1;Vo=30;G=input(Please input the value of Irrad:);T=input(Please input the value of Temperature:); %call function to get D and Vnew D,Vnew = MPP( G,T,delta_V,Vo ); subplot(2,1,1);plot(D);xlabel(Time steps);ylabel(Duty cycle);grid on;subplot(2,1,2);plot(Vnew);xlabel(Time steps);ylabel(Module operating voltage(V);grid on;Figure 6(G=1000, T=25): Figure 7(G=1000, T=25):Compare with the figures of exercise 6 and 7, get the conclusion:The more the Voltage step is, the speed of tracking is faster but the accuracy of tracking is lower. Exercise 8Code:% Exercise 8close all;clear all;Vo=30;G=input(Please input the value of Irrad:);T=input(Please input the value of Temperature:);%call function to get D and Vnew D,Vnew,P = AHCA( G,T,Vo ); subplot(2,1,1);plot(D);xlabel(Time steps);ylabel(Duty cycle);grid on;subplot(2,1,2);plot(Vnew);xlabel(Time steps);ylabel(Module operating voltage(V);grid on;Figure 8(G=1000, T=25): Figure 7(G=1000, T=25):Compare with the figures of exercise 8 and 7, get the conclusion that: the adaptive hill climbing can much faster track the maximum power point and the accuracy is also better.function D, Vnew, P = AHCA( G,T ,Vo)%UNTITLED3 Summary of this function goes here% Detailed explanation goes hereV=zeros(1,400);Vnew=zeros(1,400);Vstep=zeros(1,400);P=zeros(1,400);D=zeros(1,400);dP=zeros(1,400);dV=zeros(1,400);%define the first two stepsV(1)=0;D(1)=Vo/(V(1)+Vo);I=PVmod(V(1),G,T);P(1)=I*V(1);Vstep(1)=0.4;V(2)=V(1)+Vstep(1);I=PVmod(V(2),G,T);P(2)=V(2)*I;Vnew(1)=V(1)+Vstep(1);D(2)=Vo/(V(2)+Vo);%Voltage step is dP/dVfor i=2:1:400 dP(i)=P(i)-P(i-1); dV(i)=V(i)-V(i-1); Vstep(i)=dP(i)/dV(i); Vnew(i)=V(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 自体免疫性疾病研究体系
- 急诊创伤病人麻醉处理要点
- 2025年新高考数学一轮复习讲义:第九章统计与成对数据的统计分析(学生版)
- 2025年音乐版权运营案例分析:流媒体平台用户付费策略深度研究报告
- 基于2025年标准的学校体育馆建设初步设计抗震性能评估报告
- 房地产企业2025年财务风险管理策略与稳健经营路径研究优化优化优化优化报告
- 2025年森林生态系统服务功能评估在生态修复中的应用报告
- 2025年能源互联网背景下分布式能源交易策略研究报告
- 一番的意思4篇
- 书法培训班教学管理制度
- PythonWeb开发技术与应用(Flask版)PPT完整全套教学课件
- 酒店流水单模板
- 沥青混合料目标配合比设计与检验
- 外立面门头装修合同
- 子宫内膜癌内分泌治疗课件
- 关于颁发《功率因数调整电费办法》的通知(83)水电财字第215号
- 各学院学生工作目标管理考核指标体系
- 2022年滨州市滨城区结合事业单位招聘征集本科及以上毕业生入伍考试真题及答案
- 海南省商业学校教师招聘考试真题2022
- 【一例直肠癌术后患者的个案护理6000字(论文)】
- 第三章葡萄酒酿造2
评论
0/150
提交评论