-
Notifications
You must be signed in to change notification settings - Fork 41
/
UserMain.m
48 lines (41 loc) · 1.65 KB
/
UserMain.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%% Readme
%
% Default 4-bus power system user data is saved in "UserData.xlsm" and
% "UserData.json". More examples can be found in "Examples" folder.
%
% More manuals are available in the "Documentations" folder.
%% Clear matlab
clear all; clc; close all;
%% User data
UserDataName = 'UserData'; % Default 4-bus system
% Example power systems in "Examples" folder:
%
% Ac power system examples:
% UserDataName = 'SgInfiniteBus'; % Single synchronous generator and infinite bus
% UserDataName = 'GflInverterInfiniteBus'; % Single grid-following inverter and infinite bus
% UserDataName = 'GfmInverterInfiniteBus'; % Single grid-forming inverter and infinite bus
% UserDataName = 'IEEE_14Bus';
% UserDataName = 'IEEE_30Bus';
% UserDataName = 'IEEE_57Bus';
% UserDataName = 'AU14Gen_59Bus';
% UserDataName = 'NETS_NYPS_68Bus';
%
% Dc power system examples:
% UserDataName = 'GfdBuckInfiniteBus'; % Single grid-feeding buck converter and infinite bus
% UserDataName = 'TwoBusGfdBuck'; % Two buck converters
%
% Hybrid ac-dc power system examples:
% UserDataName = 'Hybrid_4Bus'; % A 4-bus hybrid ac-dc system
% UserDataName = 'Hybrid_28Bus';
% UserDataName = 'HVDC_Infbus_4Bus'; % HVDC system connected to inf buses
% UserDataName = 'HVDC_SG_4Bus'; % HVDC system connected to equivalent SG buses
%% Change the current folder of matlab
cd(fileparts(mfilename('fullpath')));
%% Set user data type
% If user data is in excel format, please set 1. If it is in json format,
% please set 0.
UserDataType = 1;
%% Run toolbox
SimplusGT.Toolbox.Main();
%% Matlab app
if 0; ModalAnalysisAPP; end % Modal analysis