University of Mosul
Faculty of Engineering
Mechatronics department
Modeling and Simulation
Series RLC circuit Modeling and simulation
in Simulink
EXP.3
Supervised by :
Dr. Omar Waleed Maaroof
Done by:
Salim Saeed
5OCT2023
INTRODCTION
Modeling and simulation are techniques used in various fields to represent and
analyze real-world systems or processes. They are valuable tools for
understanding, predicting, and optimizing the behavior of complex systems.
Modeling:
Modeling involves creating an abstract representation of a system or process. It
simplifies the real-world system into a conceptual framework that can be analyzed
and manipulated.
Simulation:
Simulation is the process of using a model to imitate the behavior of a real-world
system over time. It involves running experiments with the model to observe how
the system would react to various inputs or conditions.
Representing a series RLC circuit system in Simulink requires a physical set up by
represented by an ordinary differential equation (ODE)
Our physical parameters will be
R = 10 ohm
L = 1*10^-3
C = 1*10^-1
From Kirchoff’s voltage law
𝑢 = 𝑢𝑅 + 𝑢𝐿 + 𝑢𝐶
From kirchoff’s current law
𝑖 = 𝑖𝐶 = 𝑖𝑅 = 𝑖𝐿
𝑑𝑖
Where 𝑢𝑅 = 𝑅𝑖; 𝑢𝐿 = 𝑙 ;
𝑑𝑡
𝑑𝑢𝑐
𝑖𝐶 = 𝐶 ( ) ; and 𝑖 = 𝑖𝑐
𝑑𝑡
𝑢 = 𝐿𝐶𝑢𝑐̈ + 𝑅𝐶𝑢𝑐̇ + 𝑢𝑐
To build the model on Simulink
Open Matlab > Simulink > new model blank
Then we add the blocks that we will be using
Step 2
We change the Add block to “+--“
Edit the “gain 1” block to “1/(L*C)”
Change the input of the integrator name to “d2/dt2(uc)”
Change the output of the integrator name to “d/dt(uc)”
Routating the second gain block to the opposite direction by selecting it then
(Ctrl+R)
Edit the second gain value to (R*C)
Now we create a subsystem by selecting all the components > right click > create
subsystem
Right click on the subsystem > mask > create mask
Now we name our variables
Change the values
Insert a step function and a scoop
Results :
The goal of this experiment is to simulate this circuit and get the results without the
need of testing it in real life.