Main Content

Modeling Analog Circuit Architectures, Mechatronic Systems, and Electrical Power Systems UsingSimscapeElectrical

When you model and analyze mechatronic systems, analog circuit architectures, or electrical power systems usingSimscape™ Electrical™, your workflow might include the following tasks:

  1. Create a Simulink®model that includes components fromSimscape Electricallibraries.

    In most applications, it is most natural to model the physical system usingSimscape Electricalblocks and other Simscape blocks, and then develop the controller or signal processing algorithm in Simulink.

    For more information about modeling the physical system, seeEssential Electrical Modeling Techniques.

  2. Define component data by specifying electrical or mechanical properties as defined on a datasheet.

    For more information about parametrization, seeParameterizing Blocks from Datasheets.

  3. Configure the solver options.

    For more information about the settings that most affect the solution of a physical system, seeSetting Up Solvers for Physical Models.

  4. Run the simulation.

    For more information on how to perform time-domain simulation of an electrical system, seeSimulating an Electronic, Mechatronic, or Electrical Power System.

金宝appTemplates for Modeling withSimscapeElectrical

On the Simulink start page, theSimscapesection has model templates that provide you with design patterns for modeling withSimscape Electrical:

  • Electrical

  • Electrical Three-Phase

  • Mechanical Rotational

  • Mechanical Translational

Models you create from these templates have the corresponding reference block, the required Solver Configuration block, and the frequently used Simscape-Simulink interfacing blocks already in the Simulink canvas. The models also contain links that you can double-click to access other blocks in the corresponding Simscape libraries.

To create a model using one of theseSimscapetemplates:

  1. 打开模型开始页面。金宝app在MATLAB®Home tab, select the金宝appbutton. Alternatively, at the command line, enter:

    金宝app

  2. In theSimscapesection, locate the templates that are preconfigured for modeling withSimscape Electrical. Selecting a template opens a model in the Simulink Editor. To save the model, selectSimulation>Save>Save As.

SimscapeElectrical块and Ports

Simscape Electricalblocks that are written in the Simscape language are fully compatible with Simscape technology, including the local solver, code generation, and data logging.

Simscape Electricalblocks have single-phase, composite three-phase, thermal, magnetic, mechanical translational conserving, and mechanical rotational conserving ports. You can use composite three-phase ports to build models corresponding to single-line diagrams of three-phase electrical systems. Composite three-phase ports connect to other composite three-phase ports. Electrical and mechanical rotational conserving ports connect directly to Simscape Foundation library components and Simscape add-on products such asSimscape Driveline™. You can use aPhase Splitterblock to split a composite three-phase port into individual electrical conserving ports.

Machine and Transformer Source Code Examples

Simscape Electricalsoftware provides Simscape language source code examples for machines and transformers, which you can view and customize. To access the example blocks, typeThreePhaseExamples_libat the MATLAB command prompt.

Plotting and Display Options for Asynchronous and Synchronous Machines

For theMachine Inertiablock and the asynchronous and synchronous machine blocks inSimscape Electricalsoftware, you can perform some useful plotting and display actions using theElectricalmenu on the block context menu. For example, to plot torque versus speed (both in SI units) for theInduction Machine Wound Rotorblock, right-click the block. From the block context menu, selectElectrical>Plot Torque Speed (SI). The software plots the results in a figure window.

Using other options on theElectricalmenu, you can plot values in per-unit or display base parameter values in the MATLAB Command Window. These options enable you to tune the performance of your three-phase machine quickly.

Choosing the RightSimscapeElectricalTechnology

Simscape Electricalsoftware includes two different technologies and corresponding libraries. For a comparison of the two technologies, seeSimscape Electrical Block Libraries. Choose theSimscape Electricaltechnology most appropriate for your modeling needs and, if possible, build your model using blocks exclusively from that technology. However, if necessary, you can build a model that uses blocks from both technologies. To do so, use blocks from theSimscape>Electrical>Specialized Power Systems>Fundamental Blocks>Interface Elementslibrary to interface between them.

Assumptions and Limitations

TheSimscape Electricalblocks let you perform tradeoff analyses to optimize system design, for example, by testing various algorithms with different circuit implementations. The library contains blocks that use either high level or more detailed models to simulate components.Simscape Electricaldoes not have the capability to:

  • Perform either layout (physical design) tasks, or the associated implementation tasks such as layout versus schematic (LVS), design rule checking (DRC), parasitic extraction, and back annotation.

  • Model 3-D parasitic effects that are typically important for high-frequency applications.

For these types of requirements, you must use an EDA package specifically designed for the implementation of analog circuits.

See Also

Related Topics