-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bf7ca0
commit be73156
Showing
33 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
% This script is used for initializing the model for different cases | ||
|
||
% Copyright 2023 The MathWorks, Inc. | ||
|
||
set_param(bdroot,'LoadInitialState','off'); | ||
set_param(bdroot,'LoadExternalInput','off'); | ||
IndustrialMicrogridInputData; | ||
switch(caseNum) | ||
case 1 | ||
microgrid.controller2PlannedIsland = 20; | ||
case 2 | ||
microgrid.controller1Resynch = 20; % Time when resynch command is activated in controller 1 [s] | ||
microgrid.controller1PlannedIsland = 20; % Time when planned island command is activated controller 1 [s] | ||
case 3 | ||
microgrid.controller1BlackStart = 20; | ||
case 4 | ||
microgrid.controller2BlackStart = 20; | ||
case 5 | ||
microgrid.controller2PCCBrk = 20; % Time when PCC breaker command is activated controller 2 [s] | ||
microgrid.controller2PVBrk = 20; % Time when pv breaker command is activated controller 2 [s] | ||
microgrid.controller2PowerCenterFault = 20; | ||
microgrid.controller2PowerCenterBrk1 = microgrid.controller2PowerCenterFault+0.1; | ||
microgrid.controller2PowerCenterBrk3 = microgrid.controller2PowerCenterFault+0.1; | ||
microgrid.controller2SubstationBrk = microgrid.controller2PowerCenterFault+0.1; | ||
end | ||
% Copyright 2023 - 2024 The MathWorks, Inc. | ||
simTime = 10; | ||
op = findop('IndustrialMicrogrid',simTime); | ||
model = 'IndustrialMicrogrid'; | ||
for caseNum = 1:5 | ||
load_system(model); | ||
set_param(model,'LoadInitialState','off'); | ||
set_param(model,'LoadExternalInput','off'); | ||
switch(caseNum) | ||
case 1 | ||
IndustrialMicrogridInputData; | ||
microgrid.controller2PlannedIsland = 20; | ||
opCase1 = findop('IndustrialMicrogrid',simTime); | ||
case 2 | ||
IndustrialMicrogridInputData; | ||
microgrid.controller1Resynch = 20; % Time when resynch command is activated in controller 1 [s] | ||
microgrid.controller1PlannedIsland = 20; % Time when planned island command is activated controller 1 [s] | ||
opCase2 = findop('IndustrialMicrogrid',simTime); | ||
case 3 | ||
IndustrialMicrogridInputData; | ||
microgrid.controller1BlackStart = 20; | ||
opCase3 = findop('IndustrialMicrogrid',simTime); | ||
case 4 | ||
IndustrialMicrogridInputData; | ||
microgrid.controller2BlackStart = 20; | ||
opCase4 = findop('IndustrialMicrogrid',simTime); | ||
case 5 | ||
IndustrialMicrogridInputData; | ||
microgrid.controller2PCCBrk = 20; % Time when PCC breaker command is activated controller 2 [s] | ||
microgrid.controller2PVBrk = 20; % Time when pv breaker command is activated controller 2 [s] | ||
microgrid.controller2PowerCenterFault = 20; | ||
microgrid.controller2PowerCenterBrk1 = microgrid.controller2PowerCenterFault+0.1; | ||
microgrid.controller2PowerCenterBrk3 = microgrid.controller2PowerCenterFault+0.1; | ||
microgrid.controller2SubstationBrk = microgrid.controller2PowerCenterFault+0.1; | ||
opCase5 = findop('IndustrialMicrogrid',simTime); | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/-j7ff8riKSTWwtV8-Jszxo7xd38d.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" Visible="1" Icon="" File="Data/RemoteMicrogrid" Name="RemoteMicrogrid"/> | ||
<Info File="Data/RemoteMicrogrid" Icon="" Name="RemoteMicrogrid" Type="Basic" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/2VNAPeDO-OzBLC_fz-4nA8qrn0cd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" GroupUUID="c248c9d8-d64e-4281-8598-186ed36e6650" Visible="1" Icon="" File="Models/IndustrialMicrogrid.slx" Name="Industrial Microgrid Model"/> | ||
<Info File="Models/IndustrialMicrogrid.slx" GroupUUID="c248c9d8-d64e-4281-8598-186ed36e6650" Icon="" Name="Industrial Microgrid Model" Type="Basic" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/L0ylhkhun6SVetL6xVqVIaXzrFId.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" GroupUUID="c248c9d8-d64e-4281-8598-186ed36e6650" Visible="1" Icon="" File="ScriptData/Industrial Microgrid/IndustrialMicrogridDesign.mlx" Name="Industrial Microgrid Design"/> | ||
<Info File="ScriptData/Industrial Microgrid/IndustrialMicrogridDesign.mlx" GroupUUID="c248c9d8-d64e-4281-8598-186ed36e6650" Icon="" Name="Industrial Microgrid Design" Type="Basic" Visible="1"/> |
2 changes: 0 additions & 2 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/R44HPsG-vGYQLkpvE-FD9kslG4sd.xml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/R44HPsG-vGYQLkpvE-FD9kslG4sp.xml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/S2csBR_qJiCt1gubSrg-gsHE4ekd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" GroupUUID="e75ea5eb-e7aa-4f5d-a267-5c9eeb4bd55c" Visible="1" Icon="" File="Models/RemoteMicrogrid.slx" Name="Remote Microgrid Model"/> | ||
<Info File="Models/RemoteMicrogrid.slx" GroupUUID="e75ea5eb-e7aa-4f5d-a267-5c9eeb4bd55c" Icon="" Name="Remote Microgrid Model" Type="Basic" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/SJKstq0iMPx8_gMEcJkDw3czfGwd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="StartUp" Visible="1" Icon="" File="ScriptData/ShortCutToMicrogridDesignHTML.m" Name="Microgrid Design"/> | ||
<Info File="ScriptData/ShortCutToMicrogridDesignHTML.m" Icon="" Name="Microgrid Design" Type="StartUp" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/dFsjiKtcCegp6C3ftgk22oYLFOAd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" GroupUUID="e75ea5eb-e7aa-4f5d-a267-5c9eeb4bd55c" Visible="1" Icon="" File="ScriptData/Remote Microgrid/RemoteMicrogridDesign.mlx" Name="Remote Microgrid Design"/> | ||
<Info File="ScriptData/Remote Microgrid/RemoteMicrogridDesign.mlx" GroupUUID="e75ea5eb-e7aa-4f5d-a267-5c9eeb4bd55c" Icon="" Name="Remote Microgrid Design" Type="Basic" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/kbW7VQyWtfkLRONZoDEyT0IYxRYd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info Type="Basic" Visible="1" Icon="" File="Overview" Name="Overview"/> | ||
<Info File="Overview" Icon="" Name="Overview" Type="Basic" Visible="1"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/2kj09UetkV_lru3gvSPXnY6-nM4d.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Test"/> | ||
<Info Name="Test" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/KKyDJtbdIBOlaeHmIZd5VX6vqx8d.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Other"/> | ||
<Info Name="Other" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/QLqED9A0Q5bzgM5_Gw16s4VTx6sd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="WRITABLE" Name="ForUser"/> | ||
<Info Name="ForUser" ReadOnly="WRITABLE"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/QWNDYJD5mGW1bWYvPx9DtKnxzw4d.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Convenience"/> | ||
<Info Name="Convenience" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/R1RggVhA72agIvELiuhWPRS8F0Id.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="None"/> | ||
<Info Name="None" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/aEHSZBIY-yve10yGis12Zr5DLZod.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Derived"/> | ||
<Info Name="Derived" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/eeYgJBRGd88c80NLKyogapL50zId.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="WRITABLE" Name="ForDeveloper"/> | ||
<Info Name="ForDeveloper" ReadOnly="WRITABLE"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/j4xwF_j8iFTVayUMfxLgMnTbencd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Design"/> | ||
<Info Name="Design" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/NjSPEMsIuLUyIpr2u1Js5bVPsOs/r8LR4nLmg9ai3oHrW1r_-KocQzkd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="READ_ONLY" Name="Artifact"/> | ||
<Info Name="Artifact" ReadOnly="READ_ONLY"/> |
2 changes: 1 addition & 1 deletion
2
resources/project/fjRQtWiSIy7hIlj-Kmk87M7s21k/NjSPEMsIuLUyIpr2u1Js5bVPsOsd.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info ReadOnly="1" SingleValued="1" DataType="None" Name="Classification"/> | ||
<Info DataType="None" Name="Classification" ReadOnly="1" SingleValued="1"/> |