PMSM matlab/simulink DTC控制

  • xxxdt
    了解作者
  • matlab
    开发工具
  • 27.2KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 2 积分
    下载积分
  • 0
    下载次数
  • 2022-05-10 14:04
    上传日期
传统直接转矩控制( Direct Torque Control , DTC)的基本工作原 理和实现方法,搭建仿真模型并给出仿真结果。另外,为了改善传统 DTC 存在的缺 点,介绍一种基于滑模控制的 DTC 算法,同时搭建 MATLAB 仿真模型并给出仿真 结果。
PMSM_DTC_traditional.rar
  • PMSM_DTC_traditional
  • PMSM_traditional.slx
    25KB
  • PMSM_switch.m
    2KB
  • pmsm_plot.m
    402B
  • sector.m
    2.3KB
内容介绍
function [sys,x0,str,ts] = sector(t,x,u,flag) % The following outlines the general structure of an S-function. % switch flag, %判断flag,看当前处于哪个状态 %%%%%%%%%%%%%%%%%% % Initialization % %%%%%%%%%%%%%%%%%% case 0, [sys,x0,str,ts]=mdlInitializeSizes; %%%%%%%%%%% % Outputs % %%%%%%%%%%% case 3, sys=mdlOutputs(t,x,u); case {2,4,9}, sys=[]; %%%%%%%%%%%%%%%%%%%% % Unexpected flags % %%%%%%%%%%%%%%%%%%%% otherwise error(['Unhandled flag = ',num2str(flag)]); end % end sfuntmpl % %============================================================================= % mdlInitializeSizes % Return the sizes, initial conditions, and sample times for the S-function. %============================================================================= % function [sys,x0,str,ts]=mdlInitializeSizes % % call simsizes for a sizes structure, fill it in and convert it to a % sizes array. % % Note that in this example, the values are hard coded. This is not a % recommended practice as the characteristics of the block are typically % defined by the S-function parameters. % sizes = simsizes; %用于设置参数的结构体用simsizes来生成 sizes.NumContStates = 0; %连续状态变量的个数 sizes.NumDiscStates = 0; %离散状态变量的个数 sizes.NumOutputs = 1; %输出变量的个数 sizes.NumInputs = 2; %输入变量的个数 sizes.DirFeedthrough = 1; %是否存在反馈 sizes.NumSampleTimes = 1; %采样时间个数,至少是一个 sys = simsizes(sizes); %设置完后赋给sys输出 x0 = []; %状态变量设置为空,表示没有状态变量 str = []; ts = [-1 0]; %采样周期设为0表示是连续系统,-1表示采用当前的采样时间 % end mdlInitializeSizes % %============================================================================= % mdlOutputs % Return the block outputs. %============================================================================= % function sys=mdlOutputs(t,x,u) if(u(1)==0) N=1; %如果输入值为0,电压参考量在第一扇区 else a1=u(1); b1=u(1)*(-0.5)+(sqrt(3)/2)*u(2); %%根据文章的计算公式得到 c1=u(1)*(-0.5)-(sqrt(3)/2)*u(2); if a1>0 a=0; else a=1; end if b1>0 b=0; else b=1; end if c1>0 c=0; else c=1; end N=4*a+2*b+c; %扇区计算 end sys=N; % end mdlOutputs
评论
    相关推荐
    • PMSM_svpwm.rar
      基于simulink的矢量控制仿真,很有借鉴意义。
    • PMSM_0826_2009.zip
      永磁同步电机矢量控制仿真模型,所有模块为自建模块。
    • Vector_control_for_PMSM.zip
      Vector Control of PMSM for HEV
    • PMSMmatlab仿真
      基于SVPWM控制的永磁同步电机控制算法,使用PI进行闭环控制。
    • Five_PMSM_control.zip
      5相电机simulink仿真,亲自验证可以运行,密码123123
    • matlab/simulink 以及pdetool应用
      一共八篇论文,我从万方精选出来的,比较初级易懂,以matlab应用实际为例,讲述了在数值计算 电力系统仿真 无刷直流电机仿真,大豆蛋白中等应用。
    • 基于Matlab Simulink的永.rar
      In modern AC servo systems, vector control principles and space voltage vector pulse width modulation (SVPWM) technology enable AC motors to obtain Performance is comparable to DC motors. Permanent ...
    • PMSM SIMULINK.rar
      DTC for PMSM This paper analyses the ... The simulation result in Matlab/Simulink indicates that the method diminishes the ripples of torque and current, and improves the control performance greatly.
    • pmsm_contol.rar
      permanent magnet motor control
    • matlabcnhelp.rar
      matlab中文帮助很难找的,快速下载