Load Flow Analysis Matlab Simulation
Load Flow Analysis Matlab Simulation
SAP: 500097797
Experiment 1
AIM - To study the load flow analysis using Gauss-Seidel method in MATLAB.
THEORY –
A load flow study, also known as a power flow study, is a numerical examination of
the electric power flow inside an electrical system. The evaluation of the electrical
system's steady-state characteristics is another aspect of a load flow analysis.
Among the power systems studies, the load flow research is one of the most
challenging. The system's capacity to provide loads sufficiently while staying within
the necessary voltage and current ranges is assessed in this study.
The voltage level (V) and voltage phase angle (δ) on each bus under steadystate
conditions can be determined by load flow studies. This is significant since there is a
specified limit that the bus voltage must stay within.
Procedure:-
Step 1 – Represent the system by bus data matrix.
Step 2 – Convert all quantities to per unit.
Step 3 – Obtain the Y_bus matrix.
Step 4 – Classify the buses (slack bus, or generator bus, or load buses)
Step 5 –Start answering the missing variables, by assumptions (unless it is specified otherwise).
Step 6 – Represent load flow equations in form of compatible to MATLAB.
Step 7 – Initialize variables
Step 8 – Display Voltages in the command window.
Step 9 – Plot graph named Voltage
CODE:-
Y_bus = [
y12 + y13 + y14, -y12, -y13, -y14;
- y21, + y21 + y23 + y24, - y23,- y24;
- y31, - y32, + y31 + y32 + y34,- y34;
- y41, - y42, - y43, + y41 + y42 + y43
];
% Initialize variables
num_buses = size(bus_data, 1);
VIini = ones(num_buses, 1);
V_ini(1) = 1.06;
delta = zeros(num_buses, 1);
max_iterations = 1;
tolerance = .001;
V_c = [0];
V = V_ini;
for iteration = 1:max_iterations
for k = 2:num_buses
A(k) = (-P(k)+Q(k)*i)/(Y_bus(k,k)*conj(V_ini(k)));
for j = 1:num_buses
if j ~= k
V_c(k,j) = ((1 / Y_bus(k, k))*Y_bus(k,j)*V(j));
else
V_c(k,j) = 0;
end
V(k) = A(k)-sum(V_c(k,:));
end
end
end
% Display results
disp('Results after load flow analysis:');
disp('Bus Voltage');
disp(V);
AIM- To create a transmission line and study 3 phase fault analysis using pimodel in MATLAB.
THEORY:-
When all three phases of a power system are earthed or short-circuited to one another,
it is known as a three-phase fault. To analyse defects, one simply has to know the
positive-sequence network, as this is typically a balanced condition.
The system can be unbalanced notwithstanding a three-phase malfunction.
Single core cables, isolated phase bus ducting, and metal-clad switchgear can all help
lower the frequency of three-phase faults. Short circuits are the faults found in three-
phase power systems.
The most serious failure in power systems is a three-phase short circuit fault.
Information needed for switchgear selection, relay settings, and system operating
stability must be obtained from a power system fault analysis.
PROCEDURE:-
1.Connect five three phase pi section line in series and connect the starting and end of the line with
connection ports.
2. Create a subsystem and duplicate it.
3.Connect the first subsystem with three phase source and three phase vi measurement.
4. Connect other subsystem with three phase source but as a load.
5.Define the parameters accordingly
6.Connect the fault block with phase A to A , B to B, C to C.
7.Run and obtain the graphs .
OUTPUT
• THREE PHASE FAULT WITH GROUND
CURRENT (Iabc)
VOTAGE (Vabc)
VOTAGE(Vabc)
VOATGE(Vabc)
EXPERIMENT-4
AIM- To study and analyse the distance relay protection in AC Microgrid using Simulink in MATLAB
THEORY:-
SYSTEM DIAGRAM:-
OUTPUT:-
SINGLE PHASE TO GROUND (SECTOR 1 AND SECTOR 2)
TWO PHASE TO GROUND (SECTOR 1)
AIM- To study and analyse the overcurrent relay protection in AC Microgrid using Simulink in
MATLAB.
THEORY:-
• In an over current relay or o/c relay the actuating quantity is only current. There is only one current
operated element in the relay, no voltage coil etc. are required to construct this protective relay.
• An overcurrent relay is a protective relay that reacts when the current flowing through a device or
conductor exceeds a predetermined threshold.
• The purpose of overcurrent protection is to prevent damage to power distribution equipment, motors,
and generators from excessive current.
• Overcurrent protection can be used for primary protection, as well as as a backup in cases of earth
fault protection and phase overcurrent.
• There are two types of overcurrent relays: Instantaneous overcurrent (IOC) relay: Protects against
very high currents for a short time. Definite time overcurrent (DTOC) relay: Has a different operating
time than an IOC relay.
SYSTEM DIAGRAM:-
OUTPUT :-
CURRENT Vs TIME FOR PHASE FAULT PROTECTION
Aim: - To design and implement a perturb and observe (P&O) Maximum Power Point
Theory: -
The P&O method is the simplest MPPT technique, periodically increasing or decreasing the
PV array voltage to move the operating point toward the maximum power point. However, this
technique can have problems such as steady-state oscillation and deviation from the maximum
inverters to continuously adjust the impedance seen by the solar array to keep the PV system
operating at, or close to, the peak power point of the PV panel under varying conditions, like
MPPT algorithms are typically used in the controller designs for PV systems. The algorithms
account for factors such as variable irradiance (sunlight) and temperature to ensure that the PV
Procedure: -
1. Select a PV Array with 1300 series and 11 parallel strings.
3. This algorithm involves perturbation of operating voltage or the duty cycle based on
4. Designed a boost converter to get the values of L and C for the desired output voltage.
CODE: -
(MPPT ALGORITHM IMPLEMENTED IN MATLAB FUNCTION)
Dinit=0.42;
Dmax=0.9;
Dmin=0.1;
delDref=0.00008;
end
P=V*I; delv=V-Vold;
delp=P-Pold;
end
end
else Dref=Drefold;
end
if Dref>Dmax || Dref<Dmin
Dref=Drefold;
end
Drefold=Dref;
Pold=P;
Vold=V;
Simulation: -
Duty cycle: -
Result: - By implementing the algorithms in basic MATLAB Function, we have the output for
duty cycle which can be altered to achieve the maximum power point.
Result: - The output Voltage graph after applying the boost converter with significant value
EXPERIMENT-7
AIM: To study the Load Flow Analysis for four bus system using the
Gauss Method.
% Bus data
bus_data = [
];
P = [0 .5 .4 .3];
Q = [0 .2 .3 .1];
Y_bus = [
];
% Initialize variables
num_buses = size(bus_data, 1);
V_ini(1) = 1.06;
max_iterations = 100;
tolerance = 0.001;
V = V_ini;
for k = 2:num_buses
sum1 = 0;
sum2 = 0;
for j = 1:num_buses
end
end
% Check convergence
break;
end
end
% Display results
disp('Bus Voltage:');
disp(V);
figure;
bar(abs(V));
title('Voltage Magnitudes');
xlabel('Bus Number');
RESULTS:
Different voltage values calculated after implementation of Gauss method.
GRAPH:
Fig1: Representation of voltage magnitude vs Bus Number
EXPERIMENT-9
AIM: To design a 3 MW Grid connected Solar PV system in MATLAB/Simulink.
THEORY: Grid-connected solar PV systems generate electricity
from sunlight, convert it into usable power, and feed it into the
electrical grid.
MATLAB ALGORITHM:
function Dref = mppt(V,I)
Dinit=0.42;
Dmax=0.9;
Dmin=0.1;
delDref=0.00008;
P=V*I;
delv=V-Vold;
delp=P-Pold;
if delp>0
if delv>0
Dref=Drefold - delDref;
else
Dref=Drefold - delDref;
end
elseif delp<0
if delv>0
Dref=Drefold + delDref;
else
Dref=Drefold - delDref;
end
else
Dref=Drefold;
end
if Dref>Dmax || Dref<Dmin
Dref=Drefold;
end
Drefold=Dref;
Pold=P;
Vold=V;
PROCEDURE:
SIMULATION:
RESULTS: