0% found this document useful (0 votes)
30 views8 pages

Independent University, Bangladesh

This document describes an experiment conducted for the Numerical Technique Lab course. The experiment involves using MATLAB to solve differential equations modeling an RLC circuit and comparing the results to simulations conducted in PSIM. The objectives are to introduce MATLAB commands for modeling time responses of RLC circuits and verify MATLAB outputs against PSIM simulations. The document provides the circuit components, governing differential equations, sample MATLAB code, graphs of solutions, and a discussion of the procedures followed and results analysis.

Uploaded by

MD. Akif Rahman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
30 views8 pages

Independent University, Bangladesh

This document describes an experiment conducted for the Numerical Technique Lab course. The experiment involves using MATLAB to solve differential equations modeling an RLC circuit and comparing the results to simulations conducted in PSIM. The objectives are to introduce MATLAB commands for modeling time responses of RLC circuits and verify MATLAB outputs against PSIM simulations. The document provides the circuit components, governing differential equations, sample MATLAB code, graphs of solutions, and a discussion of the procedures followed and results analysis.

Uploaded by

MD. Akif Rahman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 8

Independent University, Bangladesh

School of Engineering and Computer Science


Department of Electrical & Electronic Engineering

Course ID EEE-314L

Course Title Numerical Technique Lab

Student Name MD AKIF RAHMAN

Student ID 1711396

Experiment No: 09
Experiment Name: Study on solving differential equation of an R-L-C Circuit.
Objectives:
➢ To get introduced with basic MATLAB commands to determine the time response of
an R-L-C Circuit
➢ Perform different methods on given examples.
➢ Verify MATLAB output with circuit simulation output using PSIM.

Apparatus:
➢ MATLAB

Theory: (In Short)


• RLC Circuit
RLC circuit is an electrical circuit consisting of a resistor, an inductor, and a capacitor,
connected in series or in parallel. All of these elements are linear and passive (consumes
energy). The RLC circuit exhibits the property of resonance in same way as LC circuit
exhibits, but in this circuit the oscillation dies out quickly as compared to LC circuit due
to the presence of resistor in the circuit.
• Differential Equations
Differential Equations: A differential equation is an equation which contains one or
more terms and the derivatives of one variable as dependent variable with respect to the
other variable as independent variable 𝑑y/dx = f(x). Here “x” is an independent variable
and “y” is adependent variable. The rate of change of a function at a point is defined by
the derivatives of the function. A differential equation relates these derivatives with the
other functions. The derivativerepresents nothing but a rate of change, and the differential
equation helps us present a relationship between the changing quantity with respect to the
change in another quantity.
MATLAB Code:
Experiments:
Write down appropriate MATLAB code to solve the following Linear Equations using Gaussian
Elimination Method

• An R-L-C circuit has R = 100 ohms, C = 100uF, L = 5H and the applied voltage is an AC
voltage with 50Hz frequency and amplitude of 20V. Find the current which can be driven
𝑑2 𝑖 𝑑𝑖 1
by the following differential equation. 𝐿 + 𝑅 𝑑𝑡 + 𝐶 𝑖(𝑡) = 𝑉(𝑡) (at time = 0, i(t) = 0
𝑑𝑡
𝑑𝑖
and 𝑑𝑡 = 1

MATLAB Code and Graph


PSIM & Graph
• An R-L-C circuit has R = 1K ohms, C = 150uF, L = 10H and the applied voltage is an AC
voltage with 50Hz frequency and amplitude of 20V. Find the current which can be driven
𝑑2 𝑖 𝑑𝑖 1
by the following differential equation. 𝐿 + 𝑅 𝑑𝑡 + 𝐶 𝑖(𝑡) = 𝑉(𝑡) (at time = 0, i(t) = 0
𝑑𝑡
𝑑𝑖
and 𝑑𝑡 = 1

MATLAB Code & Graph


PSIM & Graph
Discussion:
Write down the procedure you followed to do the experiments and result analysis.
In MATLAB code it starts with “syms” function that lists the names of all symbolic scalar
variables which are time Register Inductor and Capacitor. Then values of the variables are
declared. Then Ac voltage equation V= V0 cos(ωt)= cos(2πft) is written with the given variables.
In next line the differentiated equation of V is given with respect to time. The “desolve” function
will solve the current’s 2nd order differential equation where at 0s current is 0amp. Next “i1”
substitutes the variables of current resistance inductance and capacitance; “i2” uses
variableprecision floating-point arithmetic for i1 with 4 variables. Lastly the plot of current I is
commanded with time limit 0s ~ 2s.

To compare the result with physical circuit PSIM simulation is used. The trainer filed a register a
capacitor and an inductor is placed with AC source voltage 20V 50HZ frequency. As the output
graph will be for current, an ammeter is placed in series with the components. Run time is fixed
for 2s. the graphical version in PSIM matches with the MATLAB graph.

This proves that Matlab is capable of solving electrical problems if those are convertible in
equation.
LAB REPORT RUBRICS
Student Name MD AKIF RAHMAN Student ID 1711396
Course Title Numerical Technique Lab Course Code EEE 314L
Term Spring Summer Autumn Year 2022
Experiment Study on solving differential equation of an Experiment
R-L-C Circuit 09
Name Number
Submission
11-Aug,2022 Due Date 22-Aug,2022
Date
Tick () on the appropriate box (anyone from 1 to 5)
Rubrics (weight) Accomplished Intermediate Developing Intermediate Novice
(5) (4) (3) (2) (1)
Understanding Defined experiment Intermediate Defined Intermediate Defined
experiment’s requirements and between experiment between novice experiment
requirements assume circuit developing requirements and and developing. requirements and
(25%) specifications, if any, and assume circuit assume circuit
properly. accomplished. specifications, if specifications, if
any, moderately. any, poorly.

Building Circuit Conducted Intermediate Conducted Intermediate Conducted


and conducting experiment properly between experiment between novice experiment
experiment (25%) by building developing & moderately by and developing. poorly by
simulation circuit accomplished. building building
using required simulation circuit simulation circuit
specification. using required using required
specification. specification.

Result and Analyzed and Intermediate The results are Intermediate The results are
analysis (25%) interpreted the results between analyzed to some between novice analyzed poorly
properly using the developing extent according and developing. due to
converter parameters. and to specified incomplete
accomplished. requirements. simulation.

Remarks / Answered the given Intermediate Answered Intermediate Answered the


Answering questions correctly between partially the given between novice given questions
Question (25%) and describe the developing questions and and developing. incorrectly and
remarks properly. and describe the describe the
accomplished. remarks remarks poorly.
moderately.

Sub Total 80
Deduction for late
submission / any
other issue
Total (100%)
10% of Total

You might also like