Tugas Mid Semester Aplikom Final

Embed Size (px)

Citation preview

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    1/23

    TUGAS MID SEMESTER

    APLIKASI KOMPUTER DALAM STL

    (TEE 541)

    Membuat Aplikasi MATLAB GUI Dari hasil Load Flow.

    Menghitung Nilai Hubung Singkat tiga Fase ke Tanah

    Disusun oleh :

    Nama :

    Muhammad Abdullah 35099 Julian Widya Perdana 35948 Aditya Sapta Nugraha 35217

    JURUSAN TEKNIK ELEKTRO dan TEKNOLOGI INFORMASI

    FAKULTAS TEKNIK

    UNIVERSITAS GADJAH MADA

    2012

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    2/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    1.Membuat Aplikasi MATLAB GUI Dari hasil Load Flow. Data yang digunakan adalah data IEEE 30 Bus System (terlampir) Menentukan beberapa 3 buah skenario pembebanan Contoh scenario(bebas) Scenario 1 : beban MW di bus 1,2 dan 3 dinaikkan, contoh bus 1 30 MW, bus 2 30 MW bus

    3 40 MW

    Scenario 2 : beban MW di bus 29 dan 30 dinaikkan, contoh bus29 50 MW, bus 30 30 MW Scenario 3 : beban MW di bus 15 dan 17 dinaikkan, contoh bus 15 40 MW dan bus 17 40

    MW

    Hasil yang ditampilkan di MATLAB GUIo 7 Bus dengan tegangan terendah dan juga nilai tegangannyao 7 Line dengan nilai arus terbesar dan juga nilai arusnyao Hasil yang ditampilkan di GUI dilakukan untuk setiap skenario

    Membuat deskripsi dari ketiga scenario yang telah dibuat dan juga membuat deskripsitentang hasil yang tertampil di GUI

    Tanpa Skenario

    Hasil simulasi di atas murni menggunakan data dari IEEE 30 Bus. Dari hasil load flow analysis

    ditampilkan 7 bus dengan tegangan terendah dan juga 7 branch antarbus dengan kuat arus

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    3/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    terbesar. Arus terbesar pada sistem terletak di antara bus1 dengan bus2 karena bus1 dan bus2merupakan bus reference dan salah satu bus generator.

    Skenario 1

    Pada skenario ini, beban pada bus1, bus2, dan bus3 dinaikkan menjadi:1. Bus 01 = 30 MW2. Bus 02 = 30 MW3. Bus 03 = 40 MW

    Dengan naiknya beban di bus-bus tersebut, maka menyebabkan tegangan ujung bus yangdibawah 1 pu bertambah, yaitu sejumlah 3 bus. Arus terbesar pada sistem terletak di antara bus1

    dengan bus2 dengan magnitude mendekati 2pu karena MW beban pada bus1 dan bus2 juga

    sangat besar, yaitu sebesar 50MW.

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    4/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    Skenario 2

    Pada skenario ini, pembebanan pada bus29 dan bus30 dinaikkan menjadi:1. Bus 29 = 20 MW2. Bus 30 = 20 MWBus29 dan Bus30 masing masing terhubung langsung dengan bus27 yang mana merupakan bus

    generator. Dengan adanya pembebanan yang cukup besar di dekat sumber tenaga, menyebabkan

    tegangan pada ujung-ujung bus lainnya menjadi mengecil. Tegangan yang kecil menunujukkan

    kondisi bus yang paling kritis.

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    5/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    Skenario 3

    Pada skenario ini, pembebanan pada bus15 dan bus17 dinaikkan menjadi:1. Bus 15 = 40 MW2. Bus 17 = 40 MWPada kondisi ini, besar arus di tiga branch sistem sangat besar di atas 1pu. Ini disebabkan karena

    pembebanan yang mendadak tinggi di sisi tengah sistem. Sebelumnya, pada bus 15 dan bus 17

    hanya dibebani dibawah 10 MW, namun dengan adanya penambahan beban ke nominal 4 kali

    lipatnya dapat menyebabkan naiknya arus pada sistem dan juga semakin banyak bus yangtegangannya kritis.

    Source Code GUIfunction varargout = mid2(varargin)% MID2 MATLAB code for mid2.fig% MID2, by itself, creates a new MID2 or raises the existing% singleton*.

    %% H = MID2 returns the handle to a new MID2 or the handle to% the existing singleton*.%% MID2('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in MID2.M with the given input arguments.%% MID2('Property','Value',...) creates a new MID2 or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before mid2_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to mid2_OpeningFcn via varargin.

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    6/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    %% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one% instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES

    % Edit the above text to modify the response to help mid2

    % Last Modified by GUIDE v2.5 21-Oct-2012 16:43:35

    % Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...

    'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @mid2_OpeningFcn, ...'gui_OutputFcn', @mid2_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);

    if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});

    end

    if nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

    else

    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT

    % --- Executes just before mid2 is made visible.function mid2_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to mid2 (see VARARGIN)

    % Choose default command line output for mid2handles.output = hObject;

    % Update handles structure

    guidata(hObject, handles);

    % UIWAIT makes mid2 wait for user response (see UIRESUME)% uiwait(handles.figure1);

    % --- Outputs from this function are returned to the command line.function varargout = mid2_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Get default command line output from handles structurevarargout{1} = handles.output;

    function skenario()

    global busdata;global linedata;global gendata;data = guidata(gcbo);x = get(data.pm_skenario,'Value');

    inisialisasiif (x==2), %skenario 1

    busdata(1,5) = 30;busdata(2,5) = 30;busdata(3,5) = 40;

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    7/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    end

    if (x==3), %skenario 2busdata(29,5) = 20;busdata(30,5) = 20;

    end

    if (x==4), %skenario 3

    busdata(15,5) = 40;busdata(17,5) = 40;end

    basemva = 100; accuracy = 0.0001; maxiter = 100;lfybuslfnewtonreturn

    % --- Executes on button press in run.function run_Callback(hObject, eventdata, handles)global busdataglobal linedata%chp6ex11data = guidata(gcbo);

    skenario;

    bus = evalin('base','busdata');[z,zz] = sort(bus(:,3));buss = bus(zz,:);n = str2num(get(data.n_teg,'String'));

    tegangan = '';ia = '';

    arus = cariarus(linedata,busdata);[z,zz] = sort(arus(:,3));curr = arus(zz,:);curr = flipud(curr)

    for i=1:n,a = tegangan;

    b = strcat('Bus',num2str(buss(i,1)),' = ',num2str(buss(i,3)));tegangan = char(a,b);

    end

    for i=1:n,a = ia;b = strcat('Antara bus ',num2str(curr(i,1)),' dengan bus ',num2str(curr(i,2)),' =

    ',num2str(curr(i,3)));ia = char(a,b);

    end

    set(data.tegangan,'String',tegangan);set(data.arus,'String',ia);

    % hObject handle to run (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    function num_Callback(hObject, eventdata, handles)% hObject handle to num (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of num as text% str2double(get(hObject,'String')) returns contents of num as a double

    Mengurutkan tegangan

    bus dari yang terkecil

    Mengurutkan arus

    antarbus dari yang

    terbesar

    Menampilkan tegangan

    di popupmenu

    Menampilkan arus di

    popupmenu

    Mengubah busdata sesuai

    dengan parameter skenario yang

    dijelaskan sebelumnya

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    8/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % --- Executes during object creation, after setting all properties.function num_CreateFcn(hObject, eventdata, handles)% hObject handle to num (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.

    if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))set(hObject,'BackgroundColor','white');end

    % --- If Enable == 'on', executes on mouse press in 5 pixel border. % --- Otherwise, executes on mouse press in 5 pixel border or over run.function run_ButtonDownFcn(hObject, eventdata, handles)% hObject handle to run (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    function v1_Callback(hObject, eventdata, handles)% hObject handle to v1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

    % handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of v1 as text% str2double(get(hObject,'String')) returns contents of v1 as a double

    % --- Executes during object creation, after setting all properties.function v1_CreateFcn(hObject, eventdata, handles)% hObject handle to v1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function num1_Callback(hObject, eventdata, handles)% hObject handle to num1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of num1 as text% str2double(get(hObject,'String')) returns contents of num1 as a double

    % --- Executes during object creation, after setting all properties.function num1_CreateFcn(hObject, eventdata, handles)% hObject handle to num1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function v2_Callback(hObject, eventdata, handles)% hObject handle to v2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    9/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of v2 as text% str2double(get(hObject,'String')) returns contents of v2 as a double

    % --- Executes during object creation, after setting all properties.function v2_CreateFcn(hObject, eventdata, handles)

    % hObject handle to v2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function num2_Callback(hObject, eventdata, handles)% hObject handle to num2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of num2 as text% str2double(get(hObject,'String')) returns contents of num2 as a double

    % --- Executes during object creation, after setting all properties.function num2_CreateFcn(hObject, eventdata, handles)% hObject handle to num2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function v3_Callback(hObject, eventdata, handles)% hObject handle to v3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of v3 as text% str2double(get(hObject,'String')) returns contents of v3 as a double

    % --- Executes during object creation, after setting all properties.function v3_CreateFcn(hObject, eventdata, handles)% hObject handle to v3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.

    % See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function num3_Callback(hObject, eventdata, handles)% hObject handle to num3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    10/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % Hints: get(hObject,'String') returns contents of num3 as text% str2double(get(hObject,'String')) returns contents of num3 as a double

    % --- Executes during object creation, after setting all properties.function num3_CreateFcn(hObject, eventdata, handles)% hObject handle to num3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

    % handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function v4_Callback(hObject, eventdata, handles)% hObject handle to v4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of v4 as text% str2double(get(hObject,'String')) returns contents of v4 as a double

    % --- Executes during object creation, after setting all properties.function v4_CreateFcn(hObject, eventdata, handles)% hObject handle to v4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function num4_Callback(hObject, eventdata, handles)

    % hObject handle to num4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of num4 as text% str2double(get(hObject,'String')) returns contents of num4 as a double

    % --- Executes during object creation, after setting all properties.function num4_CreateFcn(hObject, eventdata, handles)% hObject handle to num4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    function v5_Callback(hObject, eventdata, handles)% hObject handle to v5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of v5 as text% str2double(get(hObject,'String')) returns contents of v5 as a double

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    11/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % --- Executes during object creation, after setting all properties.function v5_CreateFcn(hObject, eventdata, handles)% hObject handle to v5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on selection change in tegangan.function tegangan_Callback(hObject, eventdata, handles)% hObject handle to tegangan (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: contents = get(hObject,'String') returns tegangan contents as cell array% contents{get(hObject,'Value')} returns selected item from tegangan

    % --- Executes during object creation, after setting all properties.function tegangan_CreateFcn(hObject, eventdata, handles)% hObject handle to tegangan (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: listbox controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on selection change in pm_sc.function pm_sc_Callback(hObject, eventdata, handles)% hObject handle to pm_sc (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

    % handles structure with handles and user data (see GUIDATA)

    % Hints: contents = get(hObject,'String') returns pm_sc contents as cell array% contents{get(hObject,'Value')} returns selected item from pm_sc

    % --- Executes during object creation, after setting all properties.function pm_sc_CreateFcn(hObject, eventdata, handles)% hObject handle to pm_sc (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: popupmenu controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    n = '';for i=1:30,

    a = n;b = strcat('Bus',num2str(i));n = char(a,b);

    endset(hObject,'String',n);

    function n_teg_Callback(hObject, eventdata, handles)% hObject handle to n_teg (see GCBO)

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    12/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of n_teg as text% str2double(get(hObject,'String')) returns contents of n_teg as a double

    % --- Executes during object creation, after setting all properties.

    function n_teg_CreateFcn(hObject, eventdata, handles)% hObject handle to n_teg (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on selection change in arus.function arus_Callback(hObject, eventdata, handles)% hObject handle to arus (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: contents = get(hObject,'String') returns arus contents as cell array% contents{get(hObject,'Value')} returns selected item from arus

    % --- Executes during object creation, after setting all properties.function arus_CreateFcn(hObject, eventdata, handles)% hObject handle to arus (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: listbox controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on selection change in pm_skenario.function pm_skenario_Callback(hObject, eventdata, handles)% hObject handle to pm_skenario (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: contents = get(hObject,'String') returns pm_skenario contents as cell array% contents{get(hObject,'Value')} returns selected item from pm_skenario

    % --- Executes during object creation, after setting all properties.function pm_skenario_CreateFcn(hObject, eventdata, handles)% hObject handle to pm_skenario (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: popupmenu controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor' ))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on key press with focus on pm_skenario and none of its controls.function pm_skenario_KeyPressFcn(hObject, eventdata, handles)% hObject handle to pm_skenario (see GCBO)% eventdata structure with the following fields (see UICONTROL)% Key: name of the key that was pressed, in lower case

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    13/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    % Character: character interpretation of the key(s) that was pressed% Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed% handles structure with handles and user data (see GUIDATA)

    % --- If Enable == 'on', executes on mouse press in 5 pixel border. % --- Otherwise, executes on mouse press in 5 pixel border or over pm_sc.function pm_sc_ButtonDownFcn(hObject, eventdata, handles)

    % hObject handle to pm_sc (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % --- Executes on button press in btn_info.function btn_info_Callback(hObject, eventdata, handles)% hObject handle to btn_info (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)detail1 = 'Skenario 1 : bus1=30 MW bus2=30MW bus3=40MW';detail2 = 'Skenario 2 : bus29=20 MW bus30=20MW';detail3 = 'Skenario 3 : bus15=40MW bus17=40MW';detail = char(detail1,detail2,detail3);msgbox(detail,'Detail kondisi tiap skenario');

    2.Menghitung Nilai Hubung Singkat tiga Fase ke TanahData yang digunakan adalah data IEEE 30 Bus System.

    Digunakan 3 skenario Hubung Singkat, antara lain:

    Skenario 1 : Hubung Singkat di Bus 07 dengan Zf = 0.01 + j0.02 puSkenario 2 : Hubung Singkat di Bus 13 dengan Zf = 0.03 puSkenario 3 : Hubung Singkat di Bus 21 dengan Zf = 0.04 + j 0.3 pu

    Digunakan 2 buah asumsi untuk menghitung hubung singkat.

    Nilai Tegangan Awal Semua Bus 1 pu dan line charging diabaikanNilai Tegangan Awal Semua Bus dihitung dengan Load Flow

    Skenario 1 Hubung Singkat terjadi di Bus 07, yang merupakan bus beban dengan beban sebesar

    22.8MW 10.9MVAr

    Impedansi hubung singkat sebesar Zf = 0.01 + j0.02 puTegangan awal tiap bus dan tegangan saat hubung singkat di tiap bus

    BUSTegangan Awal Bus

    (Magnitude)

    Tegangan Awal

    Bus

    (Angle)

    Tegangan HS

    Bus

    (Magnitude)

    Tegangan HS

    Bus

    (Angle)1 1 0 0.738 -5.695

    2 0.98 -6.212 0.6888 -6.008

    3 0.963 -9.167 0.6309 -6.5296

    4 0.956 -11.075 0.6082 -6.5388

    5 0.95 -16.341 0.349 -10.964

    6 0.959 -13.117 0.5322 -7.1752

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    14/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    7 0.947 -15.03 0.1397 -13.615

    8 0.97 -14.13 0.5385 -7.1554

    9 0.984 -16.524 0.687 -2.6864

    10 0.978 -18.33 0.77 -1.0471

    11 1 -16.524 0.687 -2.6864

    12 0.989 -17.443 0.7952 -1.716

    13 1 -17.443 0.8686 -1.0069

    14 0.974 -18.463 0.8122 -1.5512

    15 0.969 -18.579 0.8296 -1.8625

    16 0.977 -18.132 0.7846 -1.4153

    17 0.972 -18.508 0.7744 -1.1509

    18 0.96 -19.287 0.8086 -1.5742

    19 0.957 -19.489 0.7963 -1.3939

    20 0.962 -19.265 0.7898 -1.2944

    21 0.966 -18.837 0.8231 -1.8008

    22 0.966 -18.821 0.84 -2.046

    23 0.96 -19.039 0.9154 -2.1561

    24 0.955 -19.258 0.8675 -2.138

    25 0.957 -18.845 0.8563 -1.8431

    26 0.938 -19.321 0.8563 -1.8431

    27 0.967 -18.292 0.8492 -1.6739

    28 0.96 -13.888 0.5686 -7.1566

    29 0.946 -19.674 0.8492 -1.6739

    30 0.933 -20.669 0.8492 -1.6739

    Tegangan pada bus 7 tempat hubung singkat terjadi sebesar 0.1397 p.u. Besar teganganini mendekati nol namun tidak sampai bernilai 0 karena walaupun terjadi hubung singkatmasih terdapat impedansi pada antar fase-nya.

    Nilai Arus Hubung singkat di bus 11 6.2455 p.u.

    Nilai arus di tiap saluran saat Hubung Singkat.From

    Bus To Bus

    Current

    Magnitude

    Angle

    degrees

    G 1 1.3777 -74.586

    1 2 0.8142 -72.8575

    1 3 0.5644 -77.0799

    G 2 2.1541 -77.1071

    2 4 0.442 -73.842

    2 5 1.6799 -77.5674

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    15/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    2 6 0.8463 -73.8115

    3 4 0.5644 -77.0799

    4 6 1.7713 -76.0589

    5 7 1.6799 -77.5674

    6 7 4.5657 -76.8595

    7 F 6.2455 -77.0499

    8 6 0.1435 -79.5359

    9 6 0.7781 -77.7739

    10 6 0.445 -77.7739

    10 9 0.7781 -77.7739

    12 4 0.7653 -76.5861

    12 16 0.0516 -87.5386

    G 13 0.5296 -83.3789

    13 12 0.5296 -83.3789

    14 12 0.0603 -58.1848

    15 12 0.2354 -68.3319

    15 14 0.0603 -58.1848

    15 18 0.0876 -76.7071

    16 17 0.0516 -87.5386

    17 10 0.0516 -87.5386

    18 19 0.0876 -76.7071

    19 20 0.0876 -76.7071

    20 10 0.0876 -76.7071

    21 10 0.656 -77.6542

    G 22 0.9605 -79.4165

    22 10 0.4287 -77.0048

    22 21 0.656 -77.6542

    G 23 0.5407 -67.9974

    23 15 0.3814 -68.6528

    23 24 0.1594 -66.4293

    24 22 0.1293 -62.2291

    24 25 0.0319 -83.7169

    25 27 0.0319 -83.7169

    G 27 0.6964 -80.6821

    27 28 0.7282 -80.814928 8 0.1435 -79.5359

    28 6 0.5847 -81.1288

    Arus 1.6799 p.u. mengalir dari bus 5 ke bus 7 Arus 4.5657 p.u. mengalir dari bus 6 ke bus 7

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    16/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    Arus sebesar 6.2455 p.u. yaitu penjumlahan arus dari bus 5 dan 6 yang mengalir ke tanahsebagai arus hubung singkat di bus 7.

    Skenario 2

    Hubung Singkat di Bus 13 Zf = 0.03 pu Hubung Singkat terjadi di Bus 13, yang merupakan bus tegangan dengan generator

    terpasang. Generator ini tidak menghasilkan daya dan juga tidak menarik daya.

    Impedansi hubung singkat sebsar Zf = 0.03 puTegangan awal tiap bus dan tegangan saat hubung singkat di tiap bus

    BUSTegangan Awal Bus

    (Magnitude)

    Tegangan Awal

    Bus

    (Angle)

    Tegangan HS

    Bus

    (Magnitude)

    Tegangan HS

    Bus

    (Angle)

    1 1 0 0.9034 -1.4825

    2 0.98 -6.212 0.8954 -1.5383

    3 0.963 -9.167 0.8331 -1.3037

    4 0.956 -11.075 0.8184 -1.1632

    5 0.95 -16.341 0.8687 -1.6475

    6 0.959 -13.117 0.841 -1.5442

    7 0.947 -15.03 0.8523 -1.559

    8 0.97 -14.13 0.8428 -1.5676

    9 0.984 -16.524 0.8299 -2.6704

    10 0.978 -18.33 0.8242 -3.2781

    11 1 -16.524 0.8299 -2.6704

    12 0.989 -17.443 0.4852 -7.0046

    13 1 -17.443 0.212 -74.7674

    14 0.974 -18.463 0.5567 -4.8076

    15 0.969 -18.579 0.6339 -5.7486

    16 0.977 -18.132 0.6289 -5.3194

    17 0.972 -18.508 0.7653 -3.9039

    18 0.96 -19.287 0.7007 -4.7838

    19 0.957 -19.489 0.7404 -4.3034

    20 0.962 -19.265 0.7614 -4.0771

    21 0.966 -18.837 0.8643 -3.2568

    22 0.966 -18.821 0.8771 -3.2687

    23 0.96 -19.039 0.8585 -4.2111

    24 0.955 -19.258 0.8807 -3.2126

    25 0.957 -18.845 0.9164 -2.0339

    26 0.938 -19.321 0.9164 -2.0339

    27 0.967 -18.292 0.9384 -1.2962

    28 0.96 -13.888 0.8517 -1.6964

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    17/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    29 0.946 -19.674 0.9384 -1.2962

    30 0.933 -20.669 0.9384 -1.2962

    Tegangan pada bus 13 tempat hubung singkat terjadi sebesar 0.212 p.u. Besar teganganini mendekati nol namun tidak sampai bernilai 0 karena walaupun terjadi hubung singkat

    masih terdapat impedansi pada antar fase-nya.

    Nilai Arus Hubung singkat di bus 11 7.0676 p.u.

    Nilai arus di tiap saluran saat Hubung Singkat.From

    BusTo Bus

    Current

    Magnitude

    Angle

    degrees

    G 1 0.4984 -76.4402

    1 2 0.1318 -66.7538

    1 3 0.3692 -79.8851

    G 2 0.7173 -77.0897

    2 4 0.4226 -77.3481

    2 5 0.1316 -74.6143

    2 6 0.2936 -73.2077

    3 4 0.3692 -79.8851

    4 12 1.3254 -82.794

    5 7 0.1316 -74.6143

    6 4 0.5392 -89.0591

    6 9 0.0952 -36.0839

    6 10 0.0544 -36.0839

    7 6 0.1316 -74.6143

    8 6 0.0433 -86.0937

    9 10 0.0952 -36.0839

    10 20 0.2784 -59.5684

    10 17 0.6572 -64.2207

    12 13 3.2146 -71.1497

    G 13 3.8648 -77.7759

    13 F 7.0676 -74.7674

    14 12 0.2613 -54.5973

    15 12 1.02 -64.7444

    15 14 0.2613 -54.5973

    16 12 0.6572 -64.2207

    17 16 0.6572 -64.2207

    18 15 0.2784 -59.5684

    19 18 0.2784 -59.5684

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    18/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    20 19 0.2784 -59.5684

    21 10 0.4863 -67.8986

    G 22 0.7882 -68.0834

    22 10 0.3178 -67.2492

    22 21 0.4863 -67.8986

    G 23 0.9239 -66.3376

    23 15 1.0001 -63.5463

    24 22 0.0171 -46.8631

    24 23 0.0894 -33.3453

    25 24 0.1062 -35.5056

    G 27 0.2971 -71.0484

    27 25 0.1062 -35.5056

    27 28 0.2196 -87.3727

    28 8 0.0433 -86.0937

    28 6 0.1763 -87.6867

    Arus 3.2146 p.u. mengalir dari bus 12 ke bus 13 Arus 3.8648 p.u. mengalir dari Ground ke bus 13 Arus sebesar 7.0676 p.u. yaitu penjumlahan arus dari bus 12 dan Ground yang mengalir

    sebagai arus hubung singkat di bus 13.

    Skenario 3 Hubung Singkat terjadi di Bus 21, yang merupakan bus beban dengan beban sebesar

    17.5MW 11MVAr. Impedansi hubung singkat sebesar Zf = 0.04 + j0.3 pu

    Tegangan awal tiap bus dan tegangan saat hubung singkat di tiap busBUS

    Tegangan Awal Bus

    (Magnitude)

    Tegangan Awal

    Bus

    (Angle)

    Tegangan HS

    Bus

    (Magnitude)

    Tegangan HS

    Bus

    (Angle)

    1 1 0 0.9598 -0.4912

    2 0.98 -6.212 0.9549 -0.4733

    3 0.963 -9.167 0.9362 -0.4008

    4 0.956 -11.075 0.9312 -0.3519

    5 0.95 -16.341 0.9388 -0.4035

    6 0.959 -13.117 0.9223 -0.2069

    7 0.947 -15.03 0.9291 -0.2727

    8 0.97 -14.13 0.9229 -0.2264

    9 0.984 -16.524 0.8502 -0.4947

    10 0.978 -18.33 0.812 -0.6676

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    19/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    11 1 -16.524 0.8502 -0.4947

    12 0.989 -17.443 0.9225 -1.0867

    13 1 -17.443 0.9503 -0.6762

    14 0.974 -18.463 0.9203 -1.1198

    15 0.969 -18.579 0.918 -1.0983

    16 0.977 -18.132 0.8758 -0.8326

    17 0.972 -18.508 0.8313 -0.6843

    18 0.96 -19.287 0.8808 -0.9337

    19 0.957 -19.489 0.8587 -0.8253

    20 0.962 -19.265 0.8471 -0.7625

    21 0.966 -18.837 0.7499 0.6207

    22 0.966 -18.821 0.7921 -0.4293

    23 0.96 -19.039 0.9438 -1.2933

    24 0.955 -19.258 0.8718 -1.0568

    25 0.957 -18.845 0.9244 -0.8933

    26 0.938 -19.321 0.9244 -0.8933

    27 0.967 -18.292 0.9569 -0.7275

    28 0.96 -13.888 0.9258 -0.3249

    29 0.946 -19.674 0.9569 -0.7275

    30 0.933 -20.669 0.9569 -0.7275

    Tegangan pada bus 21 tempat hubung singkat terjadi sebesar 0.7499 p.u. Besar teganganini mendekati nol namun tidak sampai bernilai 0 bahkan jauh dari nilai 0. Karena

    walaupun terjadi hubung singkat masih terdapat impedansi pada antar fase-nya.

    Nilai Arus Hubung singkat di bus 11 2.4776 p.u.

    Nilai arus di tiap saluran saat Hubung Singkat.From

    BusTo Bus

    Current

    Magnitude

    Angle

    degrees

    G 1 0.2052 -78.4367

    1 2 0.0811 -75.503

    1 3 0.1243 -80.3514

    G 2 0.3054 -80.0842

    2 4 0.1299 -77.071

    2 5 0.0794 -81.133

    2 6 0.1771 -79.7264

    3 4 0.1243 -80.3514

    4 6 0.2144 -88.9586

    4 12 0.0577 -37.1014

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    20/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    5 7 0.0794 -81.133

    6 8 0.0158 78.7272

    6 9 0.3475 -86.8191

    6 10 0.1987 -86.8191

    6 28 0.0644 77.1343

    7 6 0.0794 -81.133

    8 28 0.0158 78.7272

    9 10 0.3475 -86.8191

    10 21 0.7823 -80.873

    10 22 0.1211 -74.1956

    12 14 0.0079 -51.6635

    12 15 0.0308 -61.8106

    12 16 0.2129 -70.4063

    G 13 0.2042 -77.3067

    13 12 0.2042 -77.3067

    14 15 0.0079 -51.6635

    15 18 0.1533 -68.832

    16 17 0.2129 -70.4063

    17 10 0.2129 -70.4063

    18 19 0.1533 -68.832

    19 20 0.1533 -68.832

    20 10 0.1533 -68.832

    21 F 2.4776 -81.7847

    G 22 1.2233 -88.3645

    22 21 1.6954 -82.2053

    G 23 0.3549 -69.3236

    23 15 0.1153 -71.8606

    23 24 0.2397 -68.1033

    24 22 0.377 -64.5462

    25 24 0.1386 -58.3857

    G 27 0.2039 -74.2854

    27 25 0.1386 -58.3857

    28 27 0.0802 77.4482

    Arus 1.2233 p.u. mengalir dari Ground ke bus 21 Arus 1.6954 p.u. mengalir dari bus 22 ke bus 21

    Arus sebesar 2.4776 p.u. yaitu penjumlahan arus dari Ground dan bus 22 yang mengalirsebagai arus hubung singkat di bus 13.

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    21/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    2

    Source Code Hubung Singkat 3 Fase ke Tanah

    disp('-------------------------------------------------------------------' )disp('TUGAS MID SEMESTER MATA KULIAH APLIKOM')disp('Disusun Oleh :')disp('Aditya Sapta Nugraha 35217')

    disp('Julian Widya Perdana 35948')disp('Muhammad Abdullah 35099')disp('-------------------------------------------------------------------' )disp(' ')

    basemva = 100; accuracy = 0.0001; maxiter = 10;% Basis Daya yang digunakan adalah 100 MVA% Nilai Tegangan Awal pada semua bus adalah 1 p.u.% Bus Bus |V| Ang ---Load--- ---Gen--- Gen Mvar Injected% No. code p.u. Deg MW Mvar MW Mvar Min Max Mvarbusdata=[1 1 1 0.0 0.0 0.0 0.0 0.0 0 0 0

    2 2 1 0.0 21.70 12.7 40.0 0.0 -40 50 03 0 1 0.0 2.4 1.2 0.0 0.0 0 0 0

    4 0 1 0.0 7.6 1.6 0.0 0.0 0 0 05 2 1 0.0 94.2 19.0 0.0 0.0 -40 40 06 0 1 0.0 0.0 0.0 0.0 0.0 0 0 07 0 1 0.0 22.8 10.9 0.0 0.0 0 0 08 2 1 0.0 30.0 30.0 0.0 0.0 -10 60 09 0 1 0.0 0.0 0.0 0.0 0.0 0 0 010 0 1 0.0 5.8 2.0 0.0 0.0 -6 24 1911 2 1 0.0 0.0 0.0 0.0 0.0 0 0 012 0 1 0 11.2 7.5 0 0 0 0 013 2 1 0 0 0.0 0 0 -6 24 014 0 1 0 6.2 1.6 0 0 0 0 015 0 1 0 8.2 2.5 0 0 0 0 016 0 1 0 3.5 1.8 0 0 0 0 017 0 1 0 9.0 5.8 0 0 0 0 0

    18 0 1 0 3.2 0.9 0 0 0 0 019 0 1 0 9.5 3.4 0 0 0 0 020 0 1 0 2.2 0.7 0 0 0 0 021 0 1 0 17.5 11.2 0 0 0 0 022 0 1 0 0 0.0 0 0 0 0 023 0 1 0 3.2 1.6 0 0 0 0 024 0 1 0 8.7 6.7 0 0 0 0 4.325 0 1 0 0 0.0 0 0 0 0 026 0 1 0 3.5 2.3 0 0 0 0 027 0 1 0 0 0.0 0 0 0 0 028 0 1 0 0 0.0 0 0 0 0 029 0 1 0 2.4 0.9 0 0 0 0 030 0 1 0 10.6 1.9 0 0 0 0 0];

    % Bus Bus R X 1/2B% No. No. p.u. p.u. p.u.linedata=[1 2 0.0192 0.0575 0.02640 1

    1 3 0.0452 0.1852 0.02040 12 4 0.0570 0.1737 0.01840 13 4 0.0132 0.0379 0.00420 12 5 0.0472 0.1983 0.02090 12 6 0.0581 0.1763 0.01870 14 6 0.0119 0.0414 0.00450 1

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    22/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    2

    5 7 0.0460 0.1160 0.01020 16 7 0.0267 0.0820 0.00850 16 8 0.0120 0.0420 0.00450 16 9 0.0 0.2080 0.0 0.9786 10 0 .5560 0 0.9699 11 0 .2080 0 19 10 0 .1100 0 14 12 0 .2560 0 0.93212 13 0 .1400 0 112 14 .1231 .2559 0 112 15 .0662 .1304 0 112 16 .0945 .1987 0 114 15 .2210 .1997 0 116 17 .0824 .1923 0 115 18 .1073 .2185 0 118 19 .0639 .1292 0 119 20 .0340 .0680 0 110 20 .0936 .2090 0 110 17 .0324 .0845 0 110 21 .0348 .0749 0 1

    10 22 .0727 .1499 0 121 22 .0116 .0236 0 115 23 .1000 .2020 0 122 24 .1150 .1790 0 123 24 .1320 .2700 0 124 25 .1885 .3292 0 125 26 .2544 .3800 0 125 27 .1093 .2087 0 128 27 0 .3960 0 0.96827 29 .2198 .4153 0 127 30 .3202 .6027 0 129 30 .2399 .4533 0 18 28 .0636 .2000 0.0214 1

    6 28 .0169 .0599 0.065 1];

    % Gen. Ra Xd'gendata=[ 1 0 0.20

    2 0 0.1513 0 0.2522 0 0.1723 0 0.1727 0 0.22];

    % Bus Bus Ra Xd'zdata = [1 0 0 0.20

    2 0 0 0.1513 0 0 0.25

    22 0 0 0.1723 0 0 0.1727 0 0 0.221 2 0.0192 0.05751 3 0.0452 0.18522 4 0.0570 0.17373 4 0.0132 0.03792 5 0.0472 0.19832 6 0.0581 0.17634 6 0.0119 0.0414

  • 7/31/2019 Tugas Mid Semester Aplikom Final

    23/23

    TUGAS MID SEMESTER APLIKOM

    APLIKOM | ADEK-JULIAN-ADIT

    2

    5 7 0.0460 0.11606 7 0.0267 0.08206 8 0.0120 0.04206 9 0.0 0.20806 10 0 .55609 11 0 .20809 10 0 .11004 12 0 .256012 13 0 .140012 14 .1231 .255912 15 .0662 .130412 16 .0945 .198714 15 .2210 .199716 17 .0824 .192315 18 .1073 .218518 19 .0639 .129219 20 .0340 .068010 20 .0936 .209010 17 .0324 .084510 21 .0348 .0749

    10 22 .0727 .149921 22 .0116 .023615 23 .1000 .202022 24 .1150 .179023 24 .1320 .270024 25 .1885 .329225 26 .2544 .380025 27 .1093 .208728 27 0 .396027 29 .2198 .415327 30 .3202 .602729 30 .2399 .45338 28 .0636 .2000

    6 28 .0169 .0599 ];

    lfybuslfnewtonbusout

    %Line charging diabaikanZbus=zbuild(zdata)symfault(zdata, Zbus)

    %Di bawah ini adalah fungsi seperti pada chp9ex9%Zbus=zbuildpi(linedata, gendata, yload)%Forms Zbus including the load%symfault(linedata, Zbus, V) % 3-phase fault including load current

    disp('-------------------------------------------------------------------' )disp('TUGAS MID SEMESTER MATA KULIAH APLIKOM')disp('Disusun Oleh :')disp('Aditya Sapta Nugraha 35217')disp('Julian Widya Perdana 35948')disp('Muhammad Abdullah 35099')disp('-------------------------------------------------------------------' )disp(' ')