资源简介
psat是一类很实用的基于matlab的电力系统分析工具包,目前网上相关的下载很少。此文档包含了全部的psat工具,绝对全面。你值得拥有!
代码片段和文件信息
function check = autorun(msgtype)
% AUTORUN properly launch PSAT routine checking for data
% files and previous power flow solutions
%
% CHECK = AUTORUN(MSG)
% MSG message to be displayed
% TYPE 0 for static analysis 1 for dynamic analysis
% CHECK 1 if everything goes fine 0 otherwise
%
%Author: Federico Milano
%Date: 29-Oct-2003
%Version: 1.0.0
%
%E-mail: Federico.Milano@uclm.es
%Web-site: http://www.uclm.es/area/gsee/Web/Federico
%
% Copyright (C) 2002-2008 Federico Milano
global Settings File Bus
global DAE LIB SNB OPF CPF clpsat Comp
check = 0;
% check for data file
if isempty(File.data)
fm_disp([‘Set a data file before running ‘msg‘.‘]2)
return
end
% check for initial power flow solution
if ~Settings.init
solvepf
if ~Settings.init return end
end
% check for dynamic components if running a static analysis
if ~type & DAE.n & ~clpsat.init
dynlf = sum(prod(Comp.prop(:[3 6 9])2));
iscpf = strcmp(msg‘Continuation Power Flow‘);
if ~Settings.static & ~dynlf
Settings.ok = 0;
uiwait(fm_choice(‘Dynamic components will be discarded. Continue?‘))
if Settings.ok
Settings.static = 1;
solvepf
Settings.static = 0; % reset initial condition
else
return
end
elseif ~Settings.static & ~dynlf & iscpf
Settings.ok = 0;
uiwait(fm_choice([‘Dynamic components can lead to numerical ‘ ...
‘problems discard?‘]))
if Settings.ok
Settings.static = 1;
solvepf
Settings.static = 0; % reset initial condition
end
elseif iscpf
Settings.ok = 1;
%uiwait(fm_choice([‘Dynamic components can lead to numerical ‘ ...
% ‘problems continue?‘]))
%if ~Settings.ok return end
else
uiwait(fm_choice([‘Dynamic components are not supported for ‘ ...
‘static analysis‘]2))
return
end
end
% check for previous CPF & ATC solutions
if strcmp(msg‘SNB Direct Method‘)
one = 1;
else
one = 0;
end
if CPF.init & ~(one & CPF.init == 1)
switch CPF.init
case 1 met = ‘CPF‘;
case 2 met = ‘ATC‘;
case 3 met = ‘N-1 Cont. An.‘;
case 4 met = ‘Continuation OPF (PSAT-GAMS)‘;
end
Settings.ok = 0;
if clpsat.init
Settings.ok = clpsat.refresh;
else
uiwait(fm_choice([met‘ has been run last. Do you want to‘ ...
‘ restore initial PF solution?‘]))
end
if Settings.ok
solvepf
fm_disp([‘Initial PF solution will be used as ‘ ...
‘base case solution.‘])
else
fm_disp([‘Last ‘met‘ solution will be used as ‘ ...
‘base case solution.‘])
end
CPF.init = 0;
end
% check for previous time domain simulations
if Settings.init == 2
Settings.ok = 0;
if clpsat.init
Settings.ok = clpsat.refresh;
else
uiwait(fm_choice([‘TD has been run last. Do you want to‘ ...
‘ restore initial PF solution?‘]))
end
if Settings.ok
solvepf
fm_disp([‘Initial PF solution
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1007 2013-07-06 17:11 psat-1.3.4\@ARclass\ARclass.m
文件 262 2013-07-06 17:11 psat-1.3.4\@ARclass\ba
文件 1269 2013-07-06 17:11 psat-1.3.4\@ARclass\block.m
文件 37 2013-07-06 17:11 psat-1.3.4\@ARclass\display.m
文件 162 2013-07-06 17:11 psat-1.3.4\@ARclass\getidx.m
文件 519 2013-07-06 17:11 psat-1.3.4\@ARclass\growth.m
文件 1068 2013-07-06 17:11 psat-1.3.4\@ARclass\idnum.m
文件 123 2013-07-06 17:11 psat-1.3.4\@ARclass\init.m
文件 155 2013-07-06 17:11 psat-1.3.4\@ARclass\mask.m
文件 104 2013-07-06 17:11 psat-1.3.4\@ARclass\restore.m
文件 1774 2013-07-06 17:11 psat-1.3.4\@ARclass\setup.m
文件 796 2013-07-06 17:11 psat-1.3.4\@ARclass\subsasgn.m
文件 1111 2013-07-06 17:11 psat-1.3.4\@ARclass\subsref.m
文件 94 2013-07-06 17:11 psat-1.3.4\@AVclass\add.m
文件 633 2013-07-06 17:11 psat-1.3.4\@AVclass\AVclass.m
文件 309 2013-07-06 17:11 psat-1.3.4\@AVclass\bdmatrix.m
文件 1037 2013-07-06 17:11 psat-1.3.4\@AVclass\block.m
文件 172 2013-07-06 17:11 psat-1.3.4\@AVclass\ceiling.m
文件 37 2013-07-06 17:11 psat-1.3.4\@AVclass\display.m
文件 694 2013-07-06 17:11 psat-1.3.4\@AVclass\dynidx.m
文件 1178 2013-07-06 17:11 psat-1.3.4\@AVclass\equiv.m
文件 2539 2013-07-06 17:11 psat-1.3.4\@AVclass\fcall.m
文件 3961 2013-07-06 17:11 psat-1.3.4\@AVclass\Fxcall.m
文件 175 2013-07-06 17:11 psat-1.3.4\@AVclass\gcall.m
文件 238 2013-07-06 17:11 psat-1.3.4\@AVclass\getxy.m
文件 109 2013-07-06 17:11 psat-1.3.4\@AVclass\Gycall.m
文件 202 2013-07-06 17:11 psat-1.3.4\@AVclass\init.m
文件 500 2013-07-06 17:11 psat-1.3.4\@AVclass\mask.m
文件 327 2013-07-06 17:11 psat-1.3.4\@AVclass\remove.m
文件 104 2013-07-06 17:11 psat-1.3.4\@AVclass\restore.m
............此处省略1607个文件信息
相关资源
- Intelligent Control Design and MATLAB Simulati
-
基于matlab-simuli
nk的ESP硬件在环仿真 - 颜色迁移的matlab代码Reinhard
- MIMO-OFDM+WIRELESS+COMMUNICATIONS+WITH+MATLAB
- matlab R2014b for mac激活许可证
- 基于MATLAB的文字识别264192
- 基于PSCAD和MATLAB的电力系统电磁暂态仿
- 结构分析的有限元法与MATLAB程序设计
- Retinex in matlab图像增强、HDR图像压缩
- Photometric stereo Matlab code
- 国外一大牛Petercorke 写得机器视觉工具
- 东北大学matlab实验报告及代码
- 司守奎数学建模程序及数据.zip
- 遥感图像配准matlab
- 先进PID控制及其MATLAB仿真(刘金锟)
- ICP算法matlab实现.zip
- Matlab GUI详尽介绍英文
- matlab运动模糊图像复原 实验报告
- MATLAB数值计算 课后答案
- matlab 静态图像分割
- SVM分类与回归的matlab代码
- 基于MATLAB-GUI图形界面的数字图像处理
- matlab结课大作业人脸识别是否戴口罩
- 链路预算模型及matlab实现.zip
- 数字图像处理|Matlab-数字图像编码实
- 美颜软件matlab.zip
- 《Matlab遗传算法工具箱及应用》源码
- matlab车牌识别完整程序
- MATLAB43案例
- 数字信号处理及其Matlab的实现
评论
共有 条评论