Matlab Simscape Electrical基础 2020-03-27

Simscape Electrical基础

快捷键

  • Ctrl+L 快速定位模块在库中位置;
  • Ctrl+R 模块右转
  • Ctrl+Shift+R 模块左转
  • 空白处双击,搜索模块名/添加Annotation

Specialized Power Systems

Build and Simulate a Simple Circuit
Build a simple circuit using Simscape Electrical Specialized Power Systems blocks and connect it to other Simulink blocks.

  • 一般需要powergui blocksolver configuration
  • 使用sum block叠加多个信号,如给输入加特定频率谐波;
  • use the Controlled Voltage Source block to inject a voltage in an electrical circuit;
  • 电压源和电容不能直接串联,应串入小电阻;电流源和电感不能直接并联,并入大电阻。

Analyze a Simple Circuit
Use the Powergui block to analyze static and frequency-domain response.

  • measure the impedance versus frequency
  • 命令画伯德图如何控制对数坐标还是普通坐标??AC Current Source注入小信号幅值为什么是0?这个文档写的很差。
freq=0:5000;
w=2*pi*freq;
bode(sys1(1,2),w);

Specify Initial Conditions
Specify initial conditions for state variables using the Simscape Electrical Specialized Power Systems powergui block.

  • powergui中可以设置仿真变量初值,为0、稳态或任意给定值。

About Electrical Modeling and Simulation

  • Simscape Electrical Block Libraries
    Use the Simscape Electrical block libraries to model and analyze electronics, mechatronics, and electrical power systems.

    You can connect Specialized Power Systems blocks to Simulink blocks either:
    1. Directly, through Simulink signal input and output ports;
    2. Through measurement blocks from the Measurements sublibrary of the Fundamental Blocks library. 如ssc_new_elec中包含的controlled voltage sourcevoltage sensor;
    3. use blocks from the Simscape > Electrical > Specialized Power Systems > Fundamental Blocks > Interface Elements library to interface between them;
    4. 如ssc_new中展示的,使用PS-Simulink ConverterSimulink-PS Converter进行信号转换。
    ————————————————————
    命令访问simscape模块库
    - simscapepowersystems_ST
    - ee_lib
    ————————————————————

  • Simulating an Electronic, Mechatronic, or Electrical Power System
    • solver
      de23t and ode15s, are recommended for most applications because they run faster and work better for systems with a range of both fast and slow dynamics. The ode23t solver is closest to the solver that SPICE traditionally uses;
      To use Simulink® Coder™ software to generate standalone C or C++ code from your model, you must use the ode14x or ode1be solvers. For more information about code generation, see Code Generation (Simscape).
    • errors
      为开关增加电阻和结电容来避免不稳定震荡。example:>> Astable Oscillator
      Read Troubleshooting Simulation Errors (Simscape) to learn about general troubleshooting techniques.
      注意不要丢失参考信号,如Ground,see Grounding Rules.

电力电子例子

>> Specialized Power Systems — Examples

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Product Description 28443010 ........... Thorium compound...
    一个测试的账号阅读 4,971评论 0 0
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,178评论 0 13
  • 感恩女儿早上炒的菜,因为昨晚炒的菜很好吃,她自己也很喜欢吃,今天早上在外面运动已经很热了,回来自己洗切土豆,几乎是...
    一真一切真阅读 1,220评论 0 1
  • 六言浣溪沙 揽古人之圣贤,取古文之精华,著今日之诗篇。 流水系向山田,烽烟连接疆边,明月牵挂故园。 微雨初晴 始知...
    匿名汪漫阅读 1,868评论 1 3
  • 当你去纳新,当你想要成为某某社团某某部的一员,那么请你提前练好三寸不烂之舌。因为那些奇葩学姐学长们的奇葩问题就像机...
    JESSENIA阅读 1,378评论 0 1

友情链接更多精彩内容