Skip to content

Commit

Permalink
add wscc 4th order validation against psat
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dinkelbach <[email protected]>
  • Loading branch information
dinkelbachjan committed Jun 12, 2023
1 parent 695a60d commit 77d0452
Show file tree
Hide file tree
Showing 10 changed files with 417 additions and 33 deletions.
14 changes: 7 additions & 7 deletions dpsim/examples/cxx/CIM/SP_WSCC9bus_SGReducedOrderVBR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) {
Bool withFault = true;
Real startTimeFault = 0.2;
Real endTimeFault = 0.3;
String faultBusName= "BUS6";
String faultBusName= "BUS5";
Real inertiaScalingFactor = 1.0;
String logDirectory = "logs";

Expand All @@ -51,16 +51,16 @@ int main(int argc, char *argv[]) {

if (args.options.find("sgType") != args.options.end())
sgType = args.getOptionString("sgType");

if (args.options.find("withFault") != args.options.end())
withFault = args.getOptionBool("withFault");

if (args.options.find("startTimeFault") != args.options.end())
startTimeFault = args.getOptionReal("startTimeFault");

if (args.options.find("endTimeFault") != args.options.end())
endTimeFault = args.getOptionReal("endTimeFault");

if (args.options.find("faultBus") != args.options.end())
faultBusName = args.getOptionString("faultBus");

Expand Down Expand Up @@ -113,11 +113,11 @@ int main(int argc, char *argv[]) {
SystemTopology sys;
if (sgType=="3")
sys = reader2.loadCIM(60, filenames, Domain::SP, PhaseType::Single, CPS::GeneratorType::SG3OrderVBR);
else if (sgType=="4")
else if (sgType=="4")
sys = reader2.loadCIM(60, filenames, Domain::SP, PhaseType::Single, CPS::GeneratorType::SG4OrderVBR);
else if (sgType=="6b")
else if (sgType=="6b")
sys = reader2.loadCIM(60, filenames, Domain::SP, PhaseType::Single, CPS::GeneratorType::SG6bOrderVBR);
else
else
throw CPS::SystemError("Unsupported reduced-order SG type!");

// Optionally extend topology with switch
Expand Down
1 change: 1 addition & 0 deletions dpsim/examples/cxx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ if(WITH_CIM)
CIM/DP_WSCC-9bus_IdealVS.cpp
CIM/EMT_WSCC-9bus_IdealCS.cpp
CIM/EMT_WSCC-9bus_IdealVS.cpp
CIM/SP_WSCC9bus_SGReducedOrderVBR.cpp
)

if(WITH_RT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Dynamic WSCC 9-bus System "
"# DP Simulation of WSCC 9-bus System with Transient Stability Synchronous Generator"
]
},
{
Expand Down Expand Up @@ -306,7 +306,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.13"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Dynamic WSCC 9-bus System with Switch"
"# DP Simulation of WSCC 9-bus System with Transient Stability Synchronous Generator and Switch"
]
},
{
Expand All @@ -21,7 +21,7 @@
" content = requests.get(url, stream=True).content\n",
" out_file.write(content)\n",
"\n",
"url = 'https://git.rwth-aachen.de/acs/public/grid-data/cim-grid-data/-/raw/master/WSCC-09/WSCC-09_RX_Dyn/WSCC-09_RX'\n",
"url = 'https://raw.githubusercontent.com/dpsim-simulator/cim-grid-data/master/WSCC-09/WSCC-09_RX_Dyn/WSCC-09_RX'\n",
"filename = 'WSCC-09'\n",
"download_grid_data(filename+'_EQ.xml', url+'_EQ.xml')\n",
"download_grid_data(filename+'_TP.xml', url+'_TP.xml')\n",
Expand Down Expand Up @@ -284,7 +284,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.2 64-bit",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -298,7 +298,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.2"
"version": "3.9.13"
},
"vscode": {
"interpreter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# WSCC 9-bus System Static Test"
"# DP Simulation of WSCC 9-bus System with Synchronous Generator as Voltage Source"
]
},
{
Expand All @@ -21,8 +21,8 @@
" content = requests.get(url, stream=True).content\n",
" out_file.write(content)\n",
"\n",
"url = 'https://git.rwth-aachen.de/acs/public/grid-data/cim-grid-data/-/raw/master/WSCC-09/WSCC-09_RX/WSCC-09_RX'\n",
"filename = 'WSCC-09'\n",
"url = 'https://raw.githubusercontent.com/dpsim-simulator/cim-grid-data/master/WSCC-09/WSCC-09_RX/WSCC-09_RX'\n",
"filename = 'WSCC-09_RX_WithoutSyngenParams'\n",
"download_grid_data(filename+'_EQ.xml', url+'_EQ.xml')\n",
"download_grid_data(filename+'_TP.xml', url+'_TP.xml')\n",
"download_grid_data(filename+'_SV.xml', url+'_SV.xml')\n",
Expand Down Expand Up @@ -313,7 +313,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/Notebooks/Grids/PF_CIGRE_MV_withDG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
" content = requests.get(url, stream=True).content\n",
" out_file.write(content)\n",
"\n",
"url = 'https://git.rwth-aachen.de/acs/public/grid-data/cim-grid-data/-/raw/master/CIGRE_MV/NEPLAN/CIGRE_MV_no_tapchanger_noLoad1_LeftFeeder_With_LoadFlow_Results/Rootnet_FULL_NE_28J17h'\n",
"url = 'https://raw.githubusercontent.com/dpsim-simulator/cim-grid-data/master/CIGRE_MV/NEPLAN/CIGRE_MV_no_tapchanger_noLoad1_LeftFeeder_With_LoadFlow_Results/Rootnet_FULL_NE_28J17h'\n",
"filename = 'CIGRE-MV'\n",
"download_grid_data(filename+'_EQ.xml', url+'_EQ.xml')\n",
"download_grid_data(filename+'_TP.xml', url+'_TP.xml')\n",
Expand Down
Loading

0 comments on commit 77d0452

Please sign in to comment.