forked from Future-Power-Networks/Simplus-Grid-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserMain.m
44 lines (37 loc) · 1.45 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
%% 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;
%% Other examples
UserDataName = 'UserData'; % Default 4-bus system
% Other example power systems in "Examples" folder:
%
% Pure 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_39Bus';
% UserDataName = 'IEEE_57Bus';
% UserDataName = 'NETS_NYPS_68Bus';
%
% Pure dc power system examples:
% UserDataName = 'GfdBuckInfiniteBus'; % Single grid-feeding buck converter and infinite bus
%
% Hybrid ac-dc power system examples:
% UserDataName = 'Hybrid_test_v1'; % A 4-bus hybrid ac-dc system
%% Participation analysis
EigenvalueIndex = [1,26,31]; % Choose the index of eigenvalue for participation analysis
%% 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();