-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathUserMain.m
More file actions
57 lines (50 loc) · 2.48 KB
/
UserMain.m
File metadata and controls
57 lines (50 loc) · 2.48 KB
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
49
50
51
52
53
54
55
56
57
%% 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 = 'BessInfiniteBus'; % Single battery energy storage system and infinite bus
% UserDataName = 'PV_GfmInfiniteBus'; % Single Photovoltaic(GFM) and infinite bus
% UserDataName = 'PV_GflInfiniteBus'; % Single Photovoltaic(GFL) and infinite bus
% UserDataName = 'WtGfmInfiniteBus'; % Single grid-forming wind turbine and infinite bus
% UserDataName = 'WtGflInfiniteBus'; % Single grid-following wind turbine and infinite bus
% UserDataName = 'IEEE_14Bus';
% UserDataName = 'IEEE_30Bus';
% UserDataName = 'IEEE_57Bus';
% UserDataName = 'AU14Gen_59Bus';
% UserDataName = 'NETS_NYPS_68Bus';
% UserDataName = 'BESS_Plant_10Bus'; % A 10-unit battery energy storage plant
% UserDataName = 'PV_Plant_10Bus'; % A 10-unit photovoltaic plant
% UserDataName = 'PV_BESS_Hybrid_Plant_10Bus'; % A 10-unit photovoltaic and energy storage hybrid plant
%
% 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
% UserDataName = 'MTDC_Infbus_4Bus'; % MTDC system connected to inf 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