Sana’a University
Faculty of Engineering
Mechatronics Engineering Department Mechatronics System Design(1) MT408
Mechatronics System Design Practical Lab
Lab 2: Introduction to Modeling of Physical
Systems
Eng. Abdullah Al-Maswary
2023
Eng. Mohammed AL-Yemeni
2022
Outline
• Introduction to Simscape
• Modeling differences between Simulink and Simscape
• Building and simulating a model in Simscape
• Guidelines for Simscape modeling
What Is Simscape?
• Extends Simulink with libraries for modeling
and simulating multi-domain physical
systems
• Contains models of foundation elements for
various physical domains
• Contains other capabilities useful when
modeling physical systems (unit manager.
data logging, etc.)
What Is Simscape?
• Extends Simulink with libraries for modeling and simulating multi-
domain physical systems
• Contains models of foundation elements for various physical domains
• Contains other capabilities useful when modeling physical systems
(unit manager. data logging, etc.)
Modeling Differences Between Simulink and Simscape
Modeling Differences Between Simulink and Simscape
(Electrical System)
Example: Battery Equivalent Circuit
Building the Simscape Model
Building the Simscape Model
Setting Block Parameters
Measuring the Current
Blocks to interface Simulink
and physical signals
Important Blocks
Solver Configuration block Domain specific reference block
Simulating a Simscape Model
The recommended
Solver Configuration :
▪ ode15s
▪ ode23t
▪ ode14x(fixed step)
Connection Guidelines
• You can only connect two physical connection ports of the
same physical domain.
Electrical Mechanical
domain rotational
domain
Summary
• Introduction to Simscape
• Modeling differences between Simulink and Simscape
• Building and simulating a model in Simscape
• Guidelines for Simscape modeling
Outline
• Describing Simscape component fundamentals
• Using the Simscape Foundation library
• Creating multidomain physical components
• Dividing components into subsystems
• Setting initial conditions
• Logging physical variables
Example: DC Motor — Electromechanical System
Understanding Physical Variables
Rules Governing Physical Variables
Across and Through Variables
Understanding Physical Variables
Mechanical System
Rotational Motion
Component Polarity
Creating an Electromechanical System
Using the Foundation Library
Physical Components Spanning Multiple Physical
Domains
• Examples of components spanning multiple physical domains.
Summary
• Describing Simscape component fundamentals
• Using the Simscape Foundation library
• Creating multidomain physical components
• Dividing components into subsystems
• Setting initial conditions
• Logging physical variables