Preview

Gauss Program on C++

Satisfactory Essays
Open Document
Open Document
369 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Gauss Program on C++
% Program for Gauss - Seidel Load Flow Analysis
% Assumption, Bus 1 is considered as Slack bus. ybus = ybusppg(); % Calling program "ybusppg.m" to get Y-Bus. busdata = busdata6(); % Calling "busdata6.m" for bus data. bus = busdata(:,1); % Bus number. type = busdata(:,2); % Type of Bus 1-Slack, 2-PV, 3-PQ.
V = busdata(:,3); % Initial Bus Voltages. th = busdata(:,4); % Initial Bus Voltage Angles.
GenMW = busdata(:,5); % PGi, Real Power injected into the buses.
GenMVAR = busdata(:,6); % QGi, Reactive Power injected into the buses.
LoadMW = busdata(:,7); % PLi, Real Power Drawn from the buses.
LoadMVAR = busdata(:,8); % QLi, Reactive Power Drawn from the buses.
Qmin = busdata(:,9); % Minimum Reactive Power Limit
Qmax = busdata(:,10); % Maximum Reactive Power Limit nbus = max(bus); % To get no. of buses
P = GenMW - LoadMW; % Pi = PGi - PLi, Real Power at the buses.
Q = GenMVAR - LoadMVAR; % Qi = QGi - QLi, Reactive Power at the buses.
Vprev = V; toler = 1; % Tolerence. iteration = 1; % iteration starting while (toler > 0.00001) % Start of while loop for i = 2:nbus sumyv = 0; for k = 1:nbus if i ~= k sumyv = sumyv + ybus(i,k)* V(k); % Vk * Yik end end if type(i) == 2 % Computing Qi for PV bus Q(i) = -imag(conj(V(i))*(sumyv + ybus(i,i)*V(i))); if (Q(i) > Qmax(i)) || (Q(i) < Qmin(i)) % Checking for Qi Violation. if Q(i) < Qmin(i) % Whether violated the lower limit. Q(i) = Qmin(i); else % No, violated the upper limit. Q(i) = Qmax(i); end type(i) = 3; % If Violated, change PV bus to PQ bus. end end V(i) = (1/ybus(i,i))*((P(i)-j*Q(i))/conj(V(i)) - sumyv);

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT122 W3 ILab 1

    • 256 Words
    • 2 Pages

    4. Download the Multisim file “Series1” from Doc Sharing, Week 3. Run the simulation and verify the simulated results are the same as the calculated values. Were the values the same? Yes/No. If No, why? Yes…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 3 Aib Problems

    • 895 Words
    • 4 Pages

    Before starting this homework assignment, please review the AIB simulation in this week’s Lecture. This simulation will provide you with an understanding of how to create a network diagram, and how to do a forward and backward pass to determine the ES, LS, EF, LF and slack (float). You will also learn how to determine the duration of the project, and the critical path.…

    • 895 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 6 Lab

    • 313 Words
    • 2 Pages

    * Under Node Statistics, select Data Traffic Received (bits/sec) and Throughput (bits/sec). Capture a copy of the completed Choose Results dialog (<Alt> <PrtSc>) and paste it into your lab document.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    2. Decompose each of the core processes in figure 6-2 and draw a new DFD for each core process.…

    • 418 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Gac02 Assignment 1

    • 481 Words
    • 2 Pages

    Statement 1 is supported by fidelity and veracity. Being faithful and having commitment to the goals helps in creating a trustworthy environment. Statement 2 is supported by justice. I will treat everyone fairly and not favor any group or individual over others. I will act in a non-discriminatory way and respect people’s rights and the law. I believe it is my responsibility to share the scarce resources in the organization in a fair and just manner.…

    • 481 Words
    • 2 Pages
    Good Essays
  • Good Essays

    In spite of the reality that people endeavor to make money and share their materialistic capabilities, the lonely heart cannot be comforted by the power of money. For example, after Jay Gatsby attained fortunes, Gatsby was always lonely and depressed. As a result, Gatsby invited numerous of guests and hosted obscenely lavish parties, “I keep it always full of interesting people, night and day. People who do interesting things. Celebrated people” (Fitzgerald 90).…

    • 184 Words
    • 1 Page
    Good Essays
  • Powerful Essays

    E  0  qsystem  qsurroundings However, if the calorimeter itself is going to absorb some energy, it must be accounted for as well.…

    • 1439 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Water, the element that sustains life is the nourisher of both the body and soul. It is no small wonder that this most abundant substance which maintains a human’s physical being, also sustains humanity’s spiritual essence. Water represents the first of the sacred sacraments—Baptism. The holy ritual of Baptism could be seen as the first gate one must pass along the Christian’s journeying road, and is synonymous with a person forged in new life. Both Sigridur Gudmarsdottir and Roderick C. Meredith bring two, strikingly dissimilar, perspectives of Baptism to the forefront. While Sigridur Gudmarsdottir is focused on water’s manifestation as a sacred symbol for spiritual development; Roderick C. Meredith seems to be concerned with the sacred rite…

    • 1074 Words
    • 5 Pages
    Good Essays
  • Good Essays

    In the narrative “Narrative Life of Equiano” it is a narrative that he wrote to showcase the horrors and the fear he had to endure. The fight to stay alive, this was used to help stop slavery in the years later. The imagery in Olaudah Equiano narrative “Narrative of Life of Equiano” is used to highlight his misery.…

    • 307 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    You'll find the results of these trials in the ANOVA test data provided with the QI Macros at c:\qimacros\testdata\anova.xls.…

    • 417 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Carl Friedrich Gauss

    • 706 Words
    • 3 Pages

    Brunswick in 1792 when he was provided with a stipend to allow him to pursue his…

    • 706 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Mbbs

    • 740 Words
    • 3 Pages

    GFR = Kf (net filtration pressure) = Kf (Pgc - Pbc - *gc ) Pgc *gc af ~~~~~~~~~~~~~~~ef…

    • 740 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Use the formula q= -(mc t) to work out the energy change of the quantities used.…

    • 408 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Apple Supply Chain

    • 2005 Words
    • 9 Pages

    The rest of this document is organized into sections that will assist you in setting up and using PHStat2. Note: In this document, the symbol è means “on the next submenu, select.”…

    • 2005 Words
    • 9 Pages
    Better Essays
  • Satisfactory Essays

    Johann Carl Fredrich Gauss was born on April 30, 1777, in Brunswick, Germany. He was an only child, of a poor working class family. He had a harsh father who was a gardener and brick-layer; he was discouraging and discouraged his son of schooling. His father really wanted him to follow in his footsteps instead of attending school. Unlike his father his mother realized how smart he was and knew that he would need schooling to further his intelligence. When he was seven years old he started his education by attending elementary school. In 1788 he began learning German and Latin, after receiving a stipend from the Duke of Braunshweig, he entered Collegium Carolinum in 1792. Shortly after that he went to study at the University of Göttingen from 1795 to 1798.…

    • 335 Words
    • 2 Pages
    Satisfactory Essays

Related Topics