RLC Circuits Tutorial - Transient Analysis
RLC Circuits Tutorial - Transient Analysis
1. Introduction
2. RC Circuit
3. RLC Circuit
1. Introduction
In this laboratory exercise, you will be using Simulink and Simscape to model transient
analysis of the RLC circuits. Transient analysis is the time domain simulation during with
an initial operating point is calculated based on DC values and circuit parameters such as
voltage and currents are analyzed as time-dependent entities.
Differential equations play an important role in the transient analysis and the non-linearity
properties of both capacitors and inductors taught in the class are taken into
considerence.Differential equations can also be converted to the frequency domain by
taking Laplace transform, which is useful in controlling the behavior of the system;
however, we will focus mainly on the transient analysis obtained by solving differential
equations.
2. RC Circuit
Open Simulink by typing simulink in MATLAB command window.
Open a new model by clicking on button just below the File button, or
alternately go to FileNewModel.
1
Kaung Myat Win /Sheila P. Werth ECE2010 Alumni
You can alter the parameters values by double-clicking the components. Change
the capacitance value to 10F and give the capacitor an initial value of 10V. We
want a small series resistance because we do not want the series resistance of the
capacitor to affect the time constant value.Note: We sometimes do not set the
series resistance to zero for the matter of simulation convergence.
o Capacitor
Capacitance 10F
Initial Voltage 10V
Series Resistance 1pF
Parallel Conductance 0 1/
Calculate the resistor value that would give time-constant of 1milliseconds.
Adjust the resistor value according to your calculations.
What is another combination of resistors and capacitors that can be used to
produce the same time-constant value?
Double-click the Solver Configuration block. Uncheck the box on the left of
Start simulation from steady state for this section.
Modify the Configuration Parameters as the following by clicking to Simulation
Configuration Parameters from the menu bar.
o Stop time 0.2 sec
o Solver ode23t (mod. stiff/Trapezoid)
o Max step size 0.0001
Why do we have to use solver ode23t instead of the default settings of ode45?
2
Kaung Myat Win /Sheila P. Werth ECE2010 Alumni
Click from the tool bar to simulate the model. You can also click Ctrl+T to
complete the same task.
Double click the scope window to view the output.
button scales the graph automatically to fit the simulation time period. It can
also be called as best fit button. Sometimes, you may see the output waveform
3. RLC Circuit
Create another model provided in the Figure 2below by introducing an inductor
between capacitor and a resistor.
Figure 2: RC Circuit from Figure 1 with an inductor between capacitor and resistor
Vary the inductor value to small, medium, and large values to see how the
transient response changes with time.
All other parameters are left unchanged.
Find the inductor value that would approximately produce the system response
shown in the Figure 3 below.
3
Kaung Myat Win /Sheila P. Werth ECE2010 Alumni
Discuss the different responses for different inductances (small, medium, large),
especially regarding the shapes of the response depending on inductances.
Attach 3 different transient responses figures in your report.