亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fm_sae3.m

?? 這是一個很適合研究和學習用的電力系統仿真軟件
?? M
字號:
function fm_sae3(flag)
% FM_SAE3 define a subtransmission area equivalent
%         with three loads and three LTCs. This model
%         uses three state variables for the tap ratios
%         of the LTCs.
%
% FM_SAE3(FLAG)
%       FLAG = 0 initialization
%       FLAG = 1 algebraic equations
%       FLAG = 2 algebraic Jacobians
%       FLAG = 3 differential equations
%       FLAG = 4 state matrix
%       FLAG = 5 non-windup limits
%
%see also FM_SAE1 and FM_SAE2
%
%Author:    Federico Milano
%Date:      11-Nov-2002
%Version:   1.0.0
%
%E-mail:    fmilano@thunderbox.uwaterloo.ca
%Web-site:  http://thunderbox.uwaterloo.ca/~fmilano
%
% Copyright (C) 2002-2006 Federico Milano

global DAE Bus SAE3

for i = 1:SAE3.n

    if isempty(SAE3.m1)
        m1 = 1;
        m2 = 1;
        m3 = 1;
    else
        m1 = DAE.x(SAE3.m1(i));
        m2 = DAE.x(SAE3.m2(i));
        m3 = DAE.x(SAE3.m3(i));
    end
    ha = Bus.int(round(SAE3.con(i,1)));
    hb = Bus.int(round(SAE3.con(i,2)));
    xt1 = SAE3.con(i,6);
    xt2 = SAE3.con(i,7);
    xt3 = SAE3.con(i,8);
    xa0 = SAE3.con(i,9);
    xb0 = SAE3.con(i,10);
    if xt1 == 0; xt1 = 0.2; end
    if xt2 == 0; xt2 = 0.2; end
    if xt3 == 0; xt3 = 0.2; end
    if xa0 == 0; xa0 = 0.2; end
    if xb0 == 0; xb0 = 0.2; end
    a1 = SAE3.con(i,11);
    b1 = SAE3.con(i,12);
    a2 = SAE3.con(i,13);
    b2 = SAE3.con(i,14);
    a3 = SAE3.con(i,15);
    b3 = SAE3.con(i,16);
    h1 = SAE3.con(i,17);
    k1 = SAE3.con(i,18);
    vrif1 = SAE3.con(i,19);
    h2 = SAE3.con(i,20);
    k2 = SAE3.con(i,21);
    vrif2 = SAE3.con(i,22);
    h3 = SAE3.con(i,23);
    k3 = SAE3.con(i,24);
    vrif3 = SAE3.con(i,25);
    mmax1 = SAE3.con(i,26);
    mmin1 = SAE3.con(i,27);
    mmax2 = SAE3.con(i,28);
    mmin2 = SAE3.con(i,29);
    mmax3 = SAE3.con(i,30);
    mmin3 = SAE3.con(i,31);

    va = DAE.V(ha);
    vb = DAE.V(hb);
    delta = DAE.a(ha);
    theta = DAE.a(hb);
    if isempty(SAE3.m1)
        hm1 = 1;
        hm2 = 1;
        hm3 = 1;
    else
        hm1 = SAE3.m1(i);
        hm2 = SAE3.m2(i);
        hm3 = SAE3.m3(i);
    end

    t1 = 1/m1;
    t3 = 1/xt1;
    t4 = m1*m1;
    t5 = 1/t4;
    t7 = t3+a1*t5;
    t8 = 1/t7;
    t9 = t3*t8;
    t11 = 1/m2;
    t13 = 1/xt2;
    t14 = m2*m2;
    t15 = 1/t14;
    t17 = t13+a2*t15;
    t18 = 1/t17;
    t19 = t13*t18;
    t21 = 1/m3;
    t23 = 1/xt3;
    t24 = m3*m3;
    t25 = 1/t24;
    t27 = t23+a3*t25;
    t28 = 1/t27;
    t29 = t23*t28;
    t31 = b1*t1*t9+b2*t11*t19+b3*t21*t29;
    t32 = 1/xa0;
    t33 = 1/xb0;
    t34 = xt1*xt1;
    t35 = 1/t34;
    t37 = xt2*xt2;
    t38 = 1/t37;
    t40 = xt3*xt3;
    t41 = 1/t40;
    t43 = t3+t23+t13+t32+t33-t35*t8-t38*t18-t41*t28;
    t44 = 1/t43;
    t45 = t31*t44;
    t46 = va*t32;
    t48 = va*vb;
    t49 = delta-theta;
    t50 = sin(t49);
    t52 = t44*t32;
    t53 = t52*t33;
    t54 = t48*t50*t53;
    t56 = vb*t33;
    t59 = xa0*xa0;
    t60 = 1/t59;
    t62 = t32-t60*t44;
    t63 = va*va;
    t65 = cos(t49);
    t67 = t53*t48*t65;
    t69 = xb0*xb0;
    t70 = 1/t69;
    t72 = t33-t70*t44;
    t73 = vb*vb;
    t78 = vb*t50*t53;
    t81 = va*t50*t53;
    t84 = t52*t56*t65;
    t86 = t33*va;
    t88 = t52*t86*t65;
    t94 = t46+t56;
    t95 = t94*t44;
    t97 = t1*t3*t8;
    t104 = t11*t13*t18;
    t111 = t21*t23*t28;
    t116 = t43*t43;
    t117 = 1/t116;
    t118 = t94*t117;
    t119 = t4*t4;
    t120 = 1/t119;
    t124 = t7*t7;
    t134 = 1/t124;
    t136 = t3*t134*a1;
    t144 = k1*t94*t117*t1*t3;
    t146 = t17*t17;
    t147 = 1/t146;
    t148 = t147*a2;
    t150 = 1/t14/m2;
    t151 = t148*t150;
    t155 = t27*t27;
    t156 = 1/t155;
    t157 = t156*a3;
    t159 = 1/t24/m3;
    t160 = t157*t159;
    t166 = k2*t94*t117*t11*t13;
    t168 = t134*a1;
    t170 = 1/t4/m1;
    t171 = t168*t170;
    t174 = t14*t14;
    t175 = 1/t174;
    t189 = t13*t147*a2;
    t200 = k3*t94*t117*t21*t23;
    t207 = t24*t24;
    t208 = 1/t207;
    t222 = t23*t156*a3;
    t232 = (-b1*t5*t9+2.0*b1*t120*t136)*t44;
    t234 = t31*t117;
    t235 = t234*t46;
    t238 = t35*t134*a1*t170;
    t242 = t48*t50*t117*t32;
    t245 = t242*t33*t35*t171;
    t252 = (-b2*t15*t19+2.0*b2*t175*t189)*t44;
    t256 = t38*t147*a2*t150;
    t260 = t242*t33*t38*t151;
    t267 = (-b3*t25*t29+2.0*b3*t208*t222)*t44;
    t271 = t41*t156*a3*t159;
    t275 = t242*t33*t41*t160;
    t277 = t60*t117;
    t284 = t32*t117*t86*vb;
    t287 = t284*t65*t35*t171;
    t295 = t284*t65*t38*t151;
    t303 = t284*t65*t41*t160;
    t306 = t234*t56;
    t315 = t70*t117;

    switch flag
    case 0

        if length(SAE3.con(1,:)) > 28
            xeq = zeros(5,1);
            A =  [1 0 1 0 0; 1 0 0 1 0; 1 0 0 0 1; 0 1 1 0 0; 0 1 0 1 0; ...
                    0 1 0 0 1; 0 0 1 1 0; 0 0 0 1 1; 0 0 1 0 1; 1 1 0 0 0];
            x1 = SAE3.con(i,35) + SAE3.con(i,32);
            x2 = SAE3.con(i,35) + SAE3.con(i,33) + SAE3.con(i,37);
            x3 = SAE3.con(i,35) + SAE3.con(i,34) + SAE3.con(i,37) + SAE3.con(i,38);
            x4 = SAE3.con(i,36) + SAE3.con(i,32) + SAE3.con(i,38) + SAE3.con(i,37);
            x5 = SAE3.con(i,36) + SAE3.con(i,33) + SAE3.con(i,38);
            x6 = SAE3.con(i,36) + SAE3.con(i,34);
            x7 = SAE3.con(i,32) + SAE3.con(i,37) + SAE3.con(i,33);
            x8 = SAE3.con(i,34) + SAE3.con(i,38) + SAE3.con(i,33);
            x9 = SAE3.con(i,32) + SAE3.con(i,37) + SAE3.con(i,38) + SAE3.con(i,34);
            x10= SAE3.con(i,35) + SAE3.con(i,37) + SAE3.con(i,38) + SAE3.con(i,36);
            xreal = [x1; x2; x3; x4; x5; x6; x7; x8; x9; x10];
            xeq = A\xreal;
            SAE3.con(i,9) = xeq(1);
            SAE3.con(i,10) = xeq(2);
            SAE3.con(i,6) = xeq(3);
            SAE3.con(i,7) = xeq(4);
            SAE3.con(i,8) = xeq(5);
        end

    case 1

        Pa = t45*t46+t54;
        Pb = t45*t56-t54;
        Qa = t62*t63-t67;
        Qb = t72*t73-t67;

        DAE.gp(ha) = Pa + DAE.gp(ha);
        DAE.gq(ha) = Qa + DAE.gq(ha);
        DAE.gp(hb) = Pb + DAE.gp(hb);
        DAE.gq(hb) = Qb + DAE.gq(hb);

    case 2

        DAE.J12(ha,ha) = DAE.J12(ha,ha) + t45*t32+t78;
        DAE.J12(ha,hb) = DAE.J12(ha,hb) + t81;
        DAE.J11(ha,ha) = DAE.J11(ha,ha) + t67;
        DAE.J11(ha,hb) = DAE.J11(ha,hb) - t67;
        DAE.J22(ha,ha) = DAE.J22(ha,ha) + 2.0*t62*va-t84;
        DAE.J22(ha,hb) = DAE.J22(ha,hb) - t88;
        DAE.J21(ha,ha) = DAE.J21(ha,ha) + t54;
        DAE.J21(ha,hb) = DAE.J21(ha,hb) - t54;
        DAE.J12(hb,ha) = DAE.J12(hb,ha) - t78;
        DAE.J12(hb,hb) = DAE.J12(hb,hb) + t45*t33-t81;
        DAE.J11(hb,ha) = DAE.J11(hb,ha) - t67;
        DAE.J11(hb,hb) = DAE.J11(hb,hb) + t67;
        DAE.J22(hb,ha) = DAE.J22(hb,ha) - t84;
        DAE.J22(hb,hb) = DAE.J22(hb,hb) + 2.0*t72*vb-t88;
        DAE.J21(hb,ha) = DAE.J21(hb,ha) + t54;
        DAE.J21(hb,hb) = DAE.J21(hb,hb) - t54;

    case 3

        DAE.f(hm1) = -h1*m1+k1*(t95*t97-vrif1);
        DAE.f(hm2) = -h2*m2+k2*(t95*t104-vrif2);
        DAE.f(hm3) = -h3*m3+k3*(t95*t111-vrif3);

        if (m1 >= mmax1)
            m1 = mmax1;
            DAE.x(hm1) = m1;
            if(DAE.f(hm1) > 0); DAE.f(hm1) = 0;end
        end
        if (m1 <= mmin1)
            m1 = mmin1;
            DAE.x(hm1) = m1;
            if(DAE.f(hm1) < 0); DAE.f(hm1) = 0;end
        end

        if (m2 >= mmax2)
            m2 = mmax2;
            DAE.x(hm2) = m2;
            if(DAE.f(hm2) > 0); DAE.f(hm2) = 0;end
        end
        if (m2 <= mmin2)
            m2 = mmin2;
            DAE.x(hm2) = m2;
            if(DAE.f(hm2) < 0); DAE.f(hm2) = 0;end
        end

        if (m3 >= mmax3)
            m3 = mmax3;
            DAE.x(hm3) = m3;
            if(DAE.f(hm3) > 0); DAE.f(hm3) = 0;end
        end
        if (m3 <= mmin3)
            m3 = mmin3;
            DAE.x(hm3) = m3;
            if(DAE.f(hm3) < 0); DAE.f(hm3) = 0;end
        end


    case 4

        DAE.Fx(hm1,hm1) = -h1+k1*(2.0*t118*t120/t34/xt1/t124/t7*a1-t95*t5*t3*t8+2.0*t95*t120*t136);
        DAE.Fx(hm1,hm2) = 2.0*t144*t8*t38*t151;
        DAE.Fx(hm1,hm3) = 2.0*t144*t8*t41*t160;
        DAE.Fx(hm2,hm1) = 2.0*t166*t18*t35*t171;
        DAE.Fx(hm2,hm2) = -h2+k2*(2.0*t118*t175/t37/xt2/t146/t17*a2-t95*t15*t13*t18+2.0*t95*t175*t189);
        DAE.Fx(hm2,hm3) = 2.0*t166*t18*t41*t160;
        DAE.Fx(hm3,hm1) = 2.0*t200*t28*t35*t171;
        DAE.Fx(hm3,hm2) = 2.0*t200*t28*t38*t151;
        DAE.Fx(hm3,hm3) = -h3+k3*(2.0*t118*t208/t40/xt3/t155/t27*a3-t95*t25*t23*t28+2.0*t95*t208*t222);

        DAE.Gx(ha,hm1) = t232*t46+2.0*t235*t238+2.0*t245;
        DAE.Gx(ha,hm2) = t252*t46+2.0*t235*t256+2.0*t260;
        DAE.Gx(ha,hm3) = t267*t46+2.0*t235*t271+2.0*t275;
        DAE.Gx(ha+Bus.n,hm1) = -2.0*t277*t35*t168*t170*t63-2.0*t287;
        DAE.Gx(ha+Bus.n,hm2) = -2.0*t277*t38*t148*t150*t63-2.0*t295;
        DAE.Gx(ha+Bus.n,hm3) = -2.0*t277*t41*t157*t159*t63-2.0*t303;
        DAE.Gx(hb,hm1) = t232*t56+2.0*t306*t238-2.0*t245;
        DAE.Gx(hb,hm2) = t252*t56+2.0*t306*t256-2.0*t260;
        DAE.Gx(hb,hm3) = t267*t56+2.0*t306*t271-2.0*t275;
        DAE.Gx(hb+Bus.n,hm1) = -2.0*t315*t35*t168*t170*t73-2.0*t287;
        DAE.Gx(hb+Bus.n,hm2) = -2.0*t315*t38*t148*t150*t73-2.0*t295;
        DAE.Gx(hb+Bus.n,hm3) = -2.0*t315*t41*t157*t159*t73-2.0*t303;

        DAE.Fy(hm1,Bus.n+ha) = k1*t32*t44*t97;
        DAE.Fy(hm1,Bus.n+hb) = k1*t33*t44*t97;
        DAE.Fy(hm2,Bus.n+ha) = k2*t32*t44*t104;
        DAE.Fy(hm2,Bus.n+hb) = k2*t33*t44*t104;
        DAE.Fy(hm3,Bus.n+ha) = k3*t32*t44*t111;
        DAE.Fy(hm3,Bus.n+hb) = k3*t33*t44*t111;

        if ((m1 >= mmax1 | m1 <= mmin1) & DAE.f(hm1) == 0)
            DAE.Fx(hm1,:) = zeros(1,DAE.n);
            DAE.Fx(hm1,hm1) = -1;
            DAE.Fy(hm1,:) = zeros(1,2*Bus.n);
        end
        if ((m2 >= mmax2 | m2 <= mmin2) & DAE.f(hm2) == 0)
            DAE.Fx(hm2,:) = zeros(1,DAE.n);
            DAE.Fx(hm2,hm2) = -1;
            DAE.Fy(hm2,:) = zeros(1,2*Bus.n);
        end
        if ((m3 >= mmax3 | m3 <= mmin3) & DAE.f(hm3) == 0)
            DAE.Fx(hm3,:) = zeros(1,DAE.n);
            DAE.Fx(hm3,hm3) = -1;
            DAE.Fy(hm3,:) = zeros(1,2*Bus.n);
        end


    case 5

        if ((m1 >= mmax1 | m1 <= mmin1) & DAE.f(hm1) == 0)
            DAE.tn(hm1) = 0;
            DAE.Ac(hm1,:) = zeros(1,DAE.n+2*Bus.n);
            DAE.Ac(hm1,hm1) = DAE.Fx(hm1,hm1);
        end
        if ((m2 >= mmax2 | m2 <= mmin2) & DAE.f(hm2) == 0)
            DAE.tn(hm2) = 0;
            DAE.Ac(hm2,:) = zeros(1,DAE.n+2*Bus.n);
            DAE.Ac(hm2,hm2) = DAE.Fx(hm2,hm2);
        end
        if ((m3 >= mmax3 | m3 <= mmin3) & DAE.f(hm3) == 0)
            DAE.tn(hm3) = 0;
            DAE.Ac(hm3,:) = zeros(1,DAE.n+2*Bus.n);
            DAE.Ac(hm3,hm3) = DAE.Fx(hm3,hm3);
        end

    end
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级久久久久久久大片| 久久综合久久99| 欧美三级蜜桃2在线观看| 91精品蜜臀在线一区尤物| 日韩一区二区精品葵司在线| 久久久不卡影院| 国产欧美综合色| 樱花草国产18久久久久| 亚洲一区国产视频| 日韩激情一二三区| 成人网在线免费视频| 欧美亚洲日本国产| 日本一区免费视频| 日韩精品一区第一页| 国产盗摄精品一区二区三区在线 | 成人福利在线看| 色综合天天狠狠| 日韩欧美在线一区二区三区| 国产日韩三级在线| 日本不卡123| 色琪琪一区二区三区亚洲区| 精品成人私密视频| 日本欧美久久久久免费播放网| 成人免费视频视频| 精品国产一区二区亚洲人成毛片| 亚洲日本va在线观看| 久久99国产精品久久| 91国产精品成人| 国产日产亚洲精品系列| 亚洲精品日韩一| 成人精品gif动图一区| 久久亚洲二区三区| 麻豆91在线看| 欧美精品v日韩精品v韩国精品v| 国产精品嫩草99a| 国产成人综合亚洲91猫咪| 日韩亚洲欧美在线观看| 国产精品情趣视频| 国产精品一区二区三区四区| 91麻豆精品国产91久久久久久久久| 亚洲日本在线天堂| eeuss影院一区二区三区| 精品国产乱码久久久久久影片| 日韩不卡一二三区| 成人免费观看av| 久久精品亚洲精品国产欧美| 久久国产精品99久久久久久老狼| 6080亚洲精品一区二区| 亚洲成人你懂的| 欧美在线观看一二区| 亚洲精品第一国产综合野| 麻豆精品一区二区综合av| 欧美一区二区三区日韩视频| 日本中文字幕一区二区有限公司| 欧美日韩免费在线视频| 日产精品久久久久久久性色| 欧美久久久影院| 欧美96一区二区免费视频| 日韩一区二区在线免费观看| 琪琪一区二区三区| 欧美成人精品3d动漫h| 五月激情综合网| 欧美一级精品大片| 国模冰冰炮一区二区| 精品电影一区二区三区| 国产激情视频一区二区三区欧美| 中文字幕免费在线观看视频一区| 99精品在线免费| 中文字幕日韩一区二区| 成人影视亚洲图片在线| 亚洲品质自拍视频网站| 欧美精品一级二级三级| 九九**精品视频免费播放| 国产欧美视频一区二区| 欧美在线视频不卡| 久久狠狠亚洲综合| 久久久久久99精品| 91蜜桃网址入口| 亚洲一区精品在线| 精品播放一区二区| 91碰在线视频| 舔着乳尖日韩一区| 欧美国产综合一区二区| 成人黄页在线观看| 石原莉奈一区二区三区在线观看| 久久亚洲捆绑美女| 一本久道久久综合中文字幕 | 亚洲猫色日本管| 日韩欧美国产1| 99久久99久久精品免费看蜜桃| 午夜日韩在线观看| 国产精品婷婷午夜在线观看| 欧美性大战久久久久久久蜜臀 | 欧美性一级生活| 久久99精品久久久久久| 亚洲视频一二区| 精品福利在线导航| 欧美性一级生活| 风间由美性色一区二区三区| 亚洲国产精品久久人人爱蜜臀| 久久蜜桃av一区二区天堂| 高清免费成人av| 亚洲va欧美va天堂v国产综合| 国产欧美日本一区二区三区| 7777精品伊人久久久大香线蕉超级流畅 | 色综合久久综合网| 国产精品456露脸| 日韩黄色免费电影| 亚洲久草在线视频| 国产精品色呦呦| 精品裸体舞一区二区三区| youjizz久久| 国产一区二区三区黄视频| 午夜电影一区二区三区| 亚洲精品日韩专区silk| 亚洲精品一线二线三线| 91精品婷婷国产综合久久竹菊| 91猫先生在线| youjizz国产精品| 国产精品乡下勾搭老头1| 麻豆传媒一区二区三区| 天天综合日日夜夜精品| 亚洲电影中文字幕在线观看| 亚洲欧美另类小说视频| 中文在线资源观看网站视频免费不卡 | 欧美日韩亚洲综合一区二区三区| 樱花草国产18久久久久| 中文字幕一区二区5566日韩| 亚洲欧美色一区| 一区二区三区在线视频免费观看| 亚洲精品欧美综合四区| 日日夜夜免费精品| 国内成人精品2018免费看| 国产成人一区二区精品非洲| 99久久99久久久精品齐齐| 欧美午夜不卡在线观看免费| 4438x成人网最大色成网站| 精品国产乱码久久久久久影片| 中文字幕欧美国产| 伊人色综合久久天天| 日本欧美在线观看| 丁香婷婷综合五月| 欧美日韩在线直播| 精品国免费一区二区三区| 国产精品久久夜| 性久久久久久久| 国产麻豆成人传媒免费观看| 99精品久久99久久久久| 欧美人狂配大交3d怪物一区| 久久色中文字幕| 亚洲黄一区二区三区| 蜜桃av一区二区| 成人av资源在线| 日韩一区和二区| 国产精品夫妻自拍| 裸体歌舞表演一区二区| 99久久精品免费精品国产| 6080日韩午夜伦伦午夜伦| 中文字幕亚洲电影| 蜜臀av一区二区在线观看| 91美女片黄在线| 久久久久久久久久久久久久久99 | 中文字幕在线不卡一区| 日韩av在线免费观看不卡| 成人禁用看黄a在线| 欧美一卡2卡三卡4卡5免费| 亚洲天堂av一区| 国产精品白丝jk白祙喷水网站| 欧美高清视频在线高清观看mv色露露十八| 久久色在线观看| 日韩国产欧美在线观看| 91视频在线看| 精品av综合导航| 视频一区在线视频| 成人午夜电影网站| 久久久久久电影| 美女爽到高潮91| 欧美蜜桃一区二区三区| 亚洲免费资源在线播放| 成人高清视频在线观看| 精品成人一区二区三区四区| 天堂蜜桃一区二区三区 | 日韩一级黄色片| 一区二区理论电影在线观看| 国产精品一区二区免费不卡| 欧美一区二区在线播放| 午夜精品福利一区二区三区蜜桃| 在线欧美日韩国产| 一区在线播放视频| www.亚洲色图.com| 中文字幕一区二区三区四区不卡| 国内精品国产成人国产三级粉色| 日韩精品一区二区三区四区视频 | av电影在线观看一区| 久久免费午夜影院| 国产一区免费电影| 久久久噜噜噜久久中文字幕色伊伊| 精品一区二区日韩| 精品国产99国产精品| 国产一区激情在线|