iamstephenhe 发表于 2011-6-29 10:54:07

PST交直流混合仿真自定义模型请教

本人主要研究交直流混合仿真中的变换器控制对电网稳定性影响,目前主要针对功角暂态稳定影响。刚刚开始研究PST工具箱中的各个函数文件,对s_simu.m的各个功能模块都已经比较熟悉,可惜主题程序虽然有直流整流器、逆变器、TCSC和SVC等HVDC的自定义控制模块驱动程序,但是不知道具体如何将自己的控制算法写进去?
诸如以下一段代码:
if ndcr_ud~=0
         % calculate the new value of bus angles rectifier user defined control
         tot_states=0;
         for jj = 1:ndcr_ud
            b_num1 = dcr_dc{jj,3};b_num2 = dcr_dc{jj,4};conv_num = dcr_dc{jj,2};
            angdcr(jj,k)=(theta(bus_int(b_num1),k)-theta(bus_int(b_num2),k));
            dcrd_sig(jj,k)=angdcr(jj,k);
            st_state = tot_states+1; dcr_states = dcr_dc{jj,7}; tot_states = tot_states+dcr_states;
            ydcrmx=dcr_dc{jj,5};ydcrmn = dcr_dc{jj,6};
            dcr_dsig(jj,k) = ...
               dcr_sud(jj,k,flag,dcr_dc{jj,1},dcrd_sig(jj,k),ydcrmx,ydcrmn,xdcr_dc(st_state:tot_states,10*(k-1)+1));
         end
      end
      if ndci_ud~=0
         % calculate the new value of bus angles inverter user defined control
         for jj = 1:ndci_ud
            tot_states=0;
            b_num1 = dci_dc{jj,3};b_num2 = dci_dc{jj,4};conv_num = dci_dc{jj,2};
            angdci(jj,k)=theta(bus_int(b_num1),k)-theta(bus_int(b_num2),k);
            dcid_sig(jj,k)=(angdci(jj,k)-angdci(jj,k-1))/(t(k)-t(k-1));
            st_state = tot_states+1; dci_states = dci_dc{jj,7}; tot_states = tot_states+dci_states;
            ydcimx=dci_dc{jj,5};ydcimn = dci_dc{jj,6};
            dci_dsig(jj,k) = ...
               dci_sud(jj,k,flag,dci_dc{jj,1},dcid_sig(jj,k),ydcimx,ydcimn,xdci_dc(st_state:tot_states,10*(k-1)+1));
         end
      end


其中,“dci_dc{jj,5}”,“dcr_dc{jj,7}”都是直流逆变器和整流器的控制结构体,但不知道具体如何在哪里修改!还请熟悉这一块的朋友能够给予指导,并能稍微详细说明下如何在PST中自定义模型。

谢谢啦!祝大家交流愉快!

简单的快乐55 发表于 2015-9-13 14:35:36

太高深了。。没看懂

dllwfwfwf 发表于 2018-12-4 22:38:11

楼主,我的研究方向跟你比较接近,也想用PST这款软件,不知道能不能给个联系方式交流一下?

jdbskhq 发表于 2018-12-8 14:43:02

强烈支持楼主ing……
页: [1]
查看完整版本: PST交直流混合仿真自定义模型请教

招聘斑竹