Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
Loading...
Searching...
No Matches
Functions | Variables
lineflow_loss.m File Reference

Functions

 fprintf ('Enter the number of buses:')
 This program calculates lineflows and line losses of a power system by taking line voltages, currents,.
 
 display_output (n, V, I, S, SL)
 Calculate lineflows and line losses.
 

Variables

 n = input('')
 
Prompt the user for input S = zeros(n, n)
 Initialize matrices.
 
No output V = zeros(n, n)
 
No output I = zeros(n, n)
 
No output y = zeros(n, n)
 
No output [V, I, y] = get_input(n,V,I,y)
 Get input from the user.
 

Function Documentation

◆ display_output()

display_output ( n  ,
V  ,
I  ,
S  ,
SL   
)

Calculate lineflows and line losses.

calculate_lineflow_loss Display the output display_output

Calculate lineflows and line losses.

Parameters
nThe number of buses in the system.
VThe voltage matrix.
IThe current matrix.
SThe line flow matrix.
SLThe line loss matrix.

◆ fprintf()

fprintf ( 'Enter the number of buses:'  )

This program calculates lineflows and line losses of a power system by taking line voltages, currents,.

and Line admittances as input from the user.

Variable Documentation

◆ I

end Return the bus and admittances return I = zeros(n, n)

◆ n

n = input('')

◆ output

No output[V, I, y] = get_input(n,V,I,y)

Get input from the user.

get_input

◆ S

Prompt the user for input S = zeros(n, n)

Initialize matrices.

◆ V

end Return the bus and admittances return V = zeros(n, n)

◆ y

y = zeros(n, n)