how to write the program for current equations????
조회 수: 22 (최근 30일)
이전 댓글 표시
im having 4 current equations and i have solved them using z transforms.. now i need to write a program for the obtained equations... but im unable to write a program for it since the
iqs(n) depends upon ids(n),idr(n),iqr(n) similarly ids(n)depends on all the other similarly iqs(n) and iqr(n)
plzzzzz help.....
iqs=int{[1/ls]*[vqs-(rs*iqs)-(we*ls*ids+we*lm*ldr)-(lm*d/dt(iqr))]} iqs=(1/ls)*int{[vqs-(rs*iqs)-(we*ls*ids+we*lm*ldr)-(lm*d/dt(iqr))]} iqs*ls = {vqs-(rs*iqs)-(we*ls*ids)+(we*lm*ldr)-(lm*iqr*s)}/s [iqs(ls*s+rs)]/s = {vqs-(we*ls*ids)+(we*lm*ldr)-(lm*iqr*s)}/s DEN s gets cancelled on both sides [iqs(ls*s+rs)] = {vqs-(we*ls*ids)+(we*lm*ldr)-(lm*iqr*s)} now put s= 2.[z-1]/(Ts.[z+1]) on substituting u get, {iqs[ls*2*(z-1)+rs*ts*(z+1)]} = vqs*ts*(z+1)-we*ls*ts*ids*(z+1)+we*lm*ts*idr*(z+1)-2*lm*iqr(z-1) Divide both sides with Z
Z^0 denotes present state i.e n & Z^-1 denotes previous state i.e (n-1)
#######iqs(s)={(ts*(vqs(n)+vqs(n-1)))-(ts*we*ls*(ids(s)+ids(s-1)))+(we*ts*lm*(idr(n)+idr(n-1)))-(lm*2*(iqr(n)-iqr(n-1)))-(iqs(n-1)*(rs*ts-2*ls))} / (2*ls+rs*ts); similarly for other equations.....
#######ids(s)={(ts*(vds(n)+vds(n-1)))+(ts*we*ls*(iqs(s)+iqs(s-1)))+(we*ts*lm*(iqr(n)+iqr(n-1)))-(lm*2*(idr(n)-idr(n-1)))-(ids(n-1)*(rs*ts-2*ls))} / (2*ls+rs*ts);
#######idr(s)={(ts*(vdr(n)+vdr(n-1)))+(ts*we*lr*(iqr(s)+iqr(s-1)))+(we*ts*lm*(iqs(n)+iqs(n-1)))-(wr*lr*ts*(iqr(n)+iqr(n-1)))-(wr*lm*ts*(iqs(n)+iqs(n-1)))-(lm*2*(ids(n)-ids(n-1)))-(idr(n-1)*(rr*ts-2*lr))} / (2*lr+rr*ts);
#######iqr(s)={(ts*(vqr(n)+vqr(n-1)))-(ts*we*lr*(idr(s)+idr(s-1)))-(we*ts*lm*(ids(n)+ids(n-1)))+(wr*lr*ts*(idr(n)+idr(n-1)))+(wr*lm*ts*(ids(n)+ids(n-1)))-(lm*2*(ids(n)-ids(n-1)))-(iqr(n-1)*(rr*ts-2*lr))} / (2*lr+rr*ts);
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!