Asee peer logo

Advanced Methods of Phasor Calculation and Visualization in AC Circuits Using OOP in MATLAB

Download Paper |

Conference

2019 ASEE Annual Conference & Exposition

Location

Tampa, Florida

Publication Date

June 15, 2019

Start Date

June 15, 2019

End Date

June 19, 2019

Conference Session

A Technology Potpourri I

Tagged Division

Engineering Technology

Page Count

11

DOI

10.18260/1-2--32044

Permanent URL

https://peer.asee.org/32044

Download Count

2782

Request a correction

Paper Authors

biography

Jai P. Agrawal Purdue University Northwest

visit author page

Jai P. Agrawal is a professor in electrical and computer engineering technology at Purdue University, Calumet. He received his Ph.D. in electrical engineering from University of Illinois, Chicago, in 1991, dissertation in power electronics. He also received M.S. and B.S. degrees in electrical engineering from Indian Institute of Technology, Kanpur, India, in 1970 and 1968, respectively. His expertise includes analog and digital electronics design, power electronics, nanophotonics, and optical/wireless networking systems. He has
designed several models of high frequency oscilloscopes and other electronic test and measuring instruments as an entrepreneur. He has delivered invited short courses in Penang, Malaysia and Singapore. He is also the author of a textbook in power electronics, published by Prentice-Hall, Inc. His professional career is equally divided in academia and industry. He has authored several research papers in IEEE journals and conferences. His current research is focused on renewable energy technology, smart energy grid.

visit author page

biography

Omer Farook Purdue University Northwest

visit author page

Omer Farook is a member of the faculty of Electrical and Computer Engineering Technology at Purdue University, Nothwest. Farook received the diploma of licentiate in mechanical engineering and B.S.M.E. in 1970 and 1972, respectively. He further received B.S.E.E. and M.S.E.E. in 1978 and 1983, respectively, from Illinois Institute of Technology. Farook’s current interests are in the areas of embedded system design, hardware-software interfacing, digital communication, networking, image processing, and biometrics, C++, Python, PHP and Java languages. He has a keen interest in pedagogy and instruction delivery methods related to distance learning. He has a deep commitment to social justice and in achieving economic and educational equity.

visit author page

Download Paper |

Abstract

ADVANCED METHODS OF PHASOR CALCULATION AND VISUALIZATION IN AC CIRCUITS USING OOP IN MATLAB Abstract This paper presents advanced methods of calculation and visualization in AC circuit analysis with the objective of replacing the computational drudgery by the focus on conceptual learning. These methods are designed using Object Oriented Programming (OOP) on the MATLAB platform. OOP methodology is used to specify phasors, perform mathematical and graphical algebraic operations, and visualize in phasor, time and frequency domains. Phasors are used as objects under a class definition. Using several methods and a set of user defined functions are presented to solve a large gamut of problems like solving mesh and nodal analyses, Thevenin equivalents and power calculations and visualization of power in single and three phase circuits. The paper presents several examples to illustrate the simplicity and power of these methods. It is hoped that both the educators and learners will find them very useful in ac sinusoidal circuit analysis in the engineering education. Illustrations: %Phasor Math V1=10 30 V2=5 60 V3=10 +j16 V1=phasor(10, 30); V2=phasor(5, 60); V3=phasor(10, -16, 'x2ph') ; Vadd=V1+V2+V3; phplot([V1, V2, V3, Vadd]) %Graphical Addition of Phasors Vadd=add_graph(V1, V2, V3) Vadd = phasor with properties: Mag: 18.3389 phase: -6.2094 %A complex phasor expression Vn=V1*V2/(V2-V3+conj(V1)) Vn = phasor with properties: Mag: 4.3851 phase: 21.0160 %Voltages and currents ………. Is=E/(Z(1)+ZB); %source current V=E*(ZB/(Z(1)+ZB)); Va=V*Z(2)/(Z(2)+Z(3)); Vb=V*Z(4)/(Z(3)+Z(4)); Vab=Va-Vb Vab = R2 3 Is I1 I2 E=100 0 R1 4 XC 6 XL 4 R3 8 + Vab V2 V1 V3 Vadd phasor with properties: Mag: 24.2536 phase: 202.8337 phplot([E, Vab]) %3-phase Power Calculation ……………… [ST, PT, QT, Fp, phase]=PWR_3phase(Ed, Id) ST = phasor with properties: Mag: 1.4422e+04 phase: -19.4400 PT= phasor with properties: Mag: 1.3600e+04 phase: 0 QT = phasor with properties: Mag: 4.8000e+03 phase: -90 Fp = 0.9430 phase = 'leading' c

Agrawal, J. P., & Farook, O. (2019, June), Advanced Methods of Phasor Calculation and Visualization in AC Circuits Using OOP in MATLAB Paper presented at 2019 ASEE Annual Conference & Exposition , Tampa, Florida. 10.18260/1-2--32044

ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2019 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015