Model and simulate multidomain physical systems
Simscape™ enables you to rapidly create models of physical systems within the Simulink® environment. With Simscape, you build physical component models based on physical connections that directly integrate with block diagrams and other modeling paradigms. You model systems such as electric motors, bridge rectifiers, hydraulic actuators, and refrigeration systems, by assembling fundamental components into a schematic. Simscape add-on products provide more complex components and analysis capabilities.
Simscape helps you develop control systems and test system-level performance. You can create custom component models using the MATLAB® based Simscape language, which enables text-based authoring of physical modeling components, domains, and libraries. You can parameterize your models using MATLAB variables and expressions, and design control systems for your physical system in Simulink. To deploy your models to other simulation environments, including hardware-in-the-loop (HIL) systems, Simscape supports C-code generation.
Build Accurate Models Quickly
Assemble a schematic of your system with lines that represent physical (acausal) connections. The equations for the network of mechanical, electrical, hydraulic, and other components are derived automatically.
Share Intuitive Models with Others
Simscape models are easy to understand and interpret because each model matches the physical structure of the system. You can clearly see all the systems in your model and how they are connected to one another.
Reuse Models Across Projects
The modular interface of Simscape components lets you employ them in new designs with no extra work. Your library of custom models can be reused across many application-specific projects.
Thousands of Component Models
The Simscape libraries include foundation elements, such as resistors, springs, and valves, and more complex components such as electric drives, transmissions, and heat exchangers. Example models show how to combine them to extend the libraries.
Covering Many Physical Domains
Simscape libraries include models in more than 10 physical domains, such as mechanical, electrical, and two-phase fluids. You can select the domain that includes the physical effects required for your application. Example models show how to tailor domains to new technologies.
Abstract and Detailed Variants
Simscape blocks let you account for or ignore physical effects, such as friction, electrical losses, or temperature-dependent behaviors. You can adjust the level of fidelity of your model to capture just the right amount of detail for the analysis you want to perform.
Define DAEs and ODEs
Specify physical component behavior by using differential equations and algebraic constraints in an equation-based modeling language. Define implicit equations so that your custom models integrate with components from the Simscape libraries. The syntax is based on MATLAB, so it is easy to learn.
Combine Continuous Variables and Discrete Events
Specify exact physical behavior using continuous variables and abstract behavior using discrete events. For example, use a detailed model to capture electrical losses during a switching event in a power electronic device, or an abstract model to see the effect of many events on system-level performance.
Reuse Components and Subclasses
Streamline maintenance of your custom models by importing classes into a new textual component definition and assembling a new component within that file. Ensure consistent interfaces by defining subclasses and inheriting them into other components.
Automatic Equation Simplification
Simscape automatically formulates the equations for your entire physical system. After parsing your schematic, Simscape uses symbolic manipulation and index reduction to identify the mathematical formulation that most efficiently represents your system.
Specialized DAE Solver
Simscape can use Simulink solvers and includes solver technology designed to simulate DAEs. Simscape suggests which solver and settings you should use based on the content of your model, and you can adjust those settings to balance the tradeoff of accuracy and simulation speed.
Simscape uses specialized simulation technology for real-time simulation. You can limit the computation effort per time step as needed to achieve real-time performance. Simscape can be used for HIL testing, training simulators, and other situations that require synchronized execution with a real-time system.
Explore Simulation Results
Quickly explore the simulation results from your Simscape model, including variable values and the timing of events. Navigate directly from plots of the results to the model (including blocks and individual equations) to investigate the causes of the behaviors you observe.
Measure Model Complexity
Identify computationally intensive portions of your model using the Simscape Statistics Viewer. Assess complexity using quantities such as variables, equations that can trigger events, and constraints. Determine which changes will improve the performance of the model during simulation.
Optimize Simulation Performance
Find the causes of slow simulations using the Simulink Solver Profiler. Plots and tables show solver behavior during simulation to help you identify model and solver adjustments that can speed up your simulation.
Test without Hardware Prototypes
Convert your Simscape model to C code to test embedded control algorithms using hardware-in-the-loop tests on dSPACE®, Speedgoat, OPAL-RT, and other real-time systems. Perform virtual commissioning by configuring tests using a digital twin of your production system.
Accelerate Optimization with Parallel Simulations
Convert your Simscape model to C code to accelerate simulations. Run tests in parallel by deploying simulations to multiple cores on a single machine, multiple machines in a computing cluster, or a cloud.
Collaborate with Other Teams
Tune and simulate models that include advanced components and capabilities from the entire Simscape product family without purchasing a license for each Simscape add-on product. Share protected models with external teams to avoid exposing IP.
Model Your Entire System
Add support for 3D mechanical simulation, three-phase electrical networks, and other capabilities with Simscape add-on products: Simscape Multibody, Simscape Electrical, Simscape Driveline, and Simscape Fluids. Perform domain-specific analyses and get started with application-specific examples.
Import Models and Data
Import assemblies from CAD software, netlists from SPICE, fluid properties from fluid databases, and reduced order models from finite element software. Create an accurate system-level model that includes the latest data from hardware designers.
Bring Design Teams Together
Enable software programmers and hardware designers to collaborate early in the design process with an executable specification of the entire system. Use simulation to explore the entire design space.
Automate any Task with MATLAB
Use MATLAB to automate any task, including model assembly, parameterization, testing, data acquisition, and post-processing. Create apps for common tasks to increase the efficiency of your entire engineering organization.
Optimize System Designs
Use Simulink to integrate control algorithms, hardware design, and signal processing in a single environment. Apply optimization algorithms to find the best overall design for your system.
Shorten Development Cycles
Reduce the number of design iterations using verification and validation tools to ensure requirements are complete and consistent. Ensure system-level requirements are met by continuously verifying them throughout your development cycle.
Use Simscape file templates to create custom components, domains, or functions
Specify equations to be executed during model initialization only
Connection Label Block
Reduce diagram clutter by using virtual connections between conserving ports
Run-Time Parameters for Gas, Moist Air, Thermal Liquid, and Two-Phase Fluid Blocks
Modify parameter values without regenerating C code
Conditional Port Visibility for Gas, Moist Air, and Thermal Liquid Blocks
Expose additional ports in block variants
Additional Measurement Option for Thermodynamic Properties Sensor (MA) Block
Measure thermodynamic properties based on a unit mass of dry air
Two-Phase Fluid Properties Visualization
Plot two-phase fluid domain data