Sie sind auf Seite 1von 9

EEP 203 Computer Assignment

Submitted By-Mohit Meena 2008EE50216 Group no. 5

AIM :-"Develop an algorithm and a computer program to compute (i) % voltage regulation versus load (VA), (ii) primary and secondary currents versus load (VA), (iii) efficiency versus load (VA) and (iv) losses versus load (VA) at different Power Factors (leading and lagging 0.7, 0.9 and unity) of a single-phase shell type transformer at rated voltage and frequency using approximate equivalent circuit for load variations from 5% to 150% with an increment of 5%."

Solution :-I made my computer program in JAVA Enviourment & it is working fine. My input to given is only Power Factor so i discussed my problem with TA (Murli Sir) and he told me to do this problem by assuming values of R02 & X02 in per unit system. So i did this problem by taking values in per unit system. So i did all my calculation in per unit system. Basically my programme takes a Input File (input.txt). This input.txt contains power factor for calculation like (lagging 0.8) and calculate all the data from it.

After compilation of programme my output contains 6 files named as Voltage Regulation.txt, Primary Current.txt, Secondary Current.txt, Efficiency.txt, Copper Loss .txt, Iron Loss.txt. These all files contain my different-different output asked in question. Here is my JAVA CODE : package transformer; import java.io.*; import java.util.*; import java.util.Vector; public class Main { static BufferedWriter Output1; static BufferedWriter Output2; static BufferedWriter Output3; static BufferedWriter Output4; static BufferedWriter Output5; static BufferedWriter Output6; static PrintStream file; static double R02=.055; static double X02=.027; static double V2=1.0;

public static void main(String[] args) throws IOException{ Output1 = new BufferedWriter(new FileWriter("Voltage Regulation.txt")); Output2 = new BufferedWriter(new FileWriter("Primary Current.txt")); Output3 = new BufferedWriter(new FileWriter("Secondary Current.txt")); Output4 = new BufferedWriter(new FileWriter("Efficiency.txt")); Output5 = new BufferedWriter(new FileWriter("Copper Loss.txt")); Output6 = new BufferedWriter(new FileWriter("Iron Loss.txt")); Vector<String> array = new Vector<String>() ; int l=0; String tx; try { File file1 = new File("input.txt"); Scanner scanner = new Scanner(file1); while (scanner.hasNext()) { tx = scanner.next();

array.add(l, tx); l++ ;} scanner.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } double we = Double.parseDouble(array.get(1)); if (array.get(0).equals("leading")){ int l1=5; for (double I2=0.05;I2<=1.55;I2=I2+.05){ double x1 = R02*we; double x2 = X02*((Math.sqrt(1.0-(we*we)))); double VR = I2*(x1-x2); double Losses = (I2*I2)*R02; double x3 = I2+Losses+(0.1); double efficiency = (I2/x3)*100.0; String wss1 = (""+VR); String wss2 = (""+I2); String wss3 = (""+I2);

String wss4 = (""+efficiency); String wss5 = (""+Losses); String wss6 = (""+0.1); l1=l1+5; Output1.write(wss1 + "\n"); Output2.write(wss2 + "\n"); Output3.write(wss3 + "\n"); Output4.write(wss4 + "\n"); Output5.write(wss5 + "\n"); Output6.write(wss6 + "\n"); } } else if (array.get(0).equals("lagging")){ int l1=5; for (double I2=0.05;I2<1.55;I2=I2+.05){ double x1 = R02*we; double x2 = X02*((Math.sqrt(1.0-(we*we)))); double VR = (I2*(x1+x2))*100.0; double Losses = (I2*I2)*R02; double x3 = I2+Losses+(0.1*I2);

double efficiency = (I2/x3)*100.0; String wss1 = (""+VR); String wss2 = (""+I2); String wss3 = (""+I2); String wss4 = (""+efficiency); String wss5 = (""+Losses); String wss6 = (""+0.1); l1=l1+5; Output1.write(wss1 + "\n"); Output2.write(wss2 + "\n"); Output3.write(wss3 + "\n"); Output4.write(wss4 + "\n"); Output5.write(wss5 + "\n"); Output6.write(wss6 + "\n"); } } Output1.close(); Output2.close(); Output3.close(); Output4.close();

Output5.close(); Output6.close(); } }

Here are some of mine simulated Graphs (at 0.9 leading):

So these are my Final Results from my JAVA Code. Similarly i can calculate all results at different different Power Factors.

Das könnte Ihnen auch gefallen