Skip to content

Commit

Permalink
Meeting1
Browse files Browse the repository at this point in the history
  • Loading branch information
gkhalley committed Nov 17, 2023
1 parent 8a6d6b6 commit dc07e5a
Show file tree
Hide file tree
Showing 10 changed files with 1,909 additions and 1,970 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tutorial for Using EditiX to Analyze and Translate CGMES XML
CGMES XML translation to OpenIPSL using XSLT is beneficial because it allows extended dynamic analysis of power systems. Many models are created and maintained in PSS®E which doesn't provide multi-domain modeling like OpenIPSL. This tool allows you to learn how to translate. Please see the [Documentation](https://github.com/ALSETLab/XSLTConferencePaper).
CGMES XML translation to OpenIPSL using XSLT is beneficial because it allows extended dynamic analysis of power systems. Many models are created and maintained in PSS®E which doesn't provide multi-domain modeling like OpenIPSL. This tool allows you to learn how to translate. Please see the [Documentation](https://alsetlab.github.io/XSLTConferencePaper/tutorials.html).

[Editix](https://www.editix.com/) is an interactive development environment for XML/XSLT.

Expand Down
Binary file added documentation/images/Scenario-Run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/images/Scenario-parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/images/ScenarioSuccess.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/images/Scenarios-Source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified documentation/images/Scenarios.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 16 additions & 5 deletions documentation/topics/PreconfiguredImport.topic
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,29 @@
<p>Scenarios combine paths and parameters as a table entry to simplify translations for multiple files.</p>
<chapter title="Scenarios" id="scenarios">
<p>The file 'scenarios.xfl' is in the 'source' folder. Open and run a single table entry.</p>
<procedure id="opensenario">
<procedure id="openscenario">
<step>
<p>Open source/scenarios.xfl by double-clicking in the Project Panel.</p>
<p>Open ../source/scenarios.xfl by double-clicking in the Project Panel.</p>
</step>
<step>
<p>Click on the Visual Editor at the bottom center.</p>
<img src="VisualEditor.png" alt="Visual"/>
<p>The Source Editor is an XML view of the scenarios. You can copy a single node to create a starting point for a new scenario. This starts at tag &lt;task&gt; and ends at tag &lt;/task&gt;.</p>
<img src="Scenarios-Source.png" alt="ScenariosSource"/>
</step>
<step>
<p>Click on the IEEE14 scenario.</p>
<p>Click on the Visual Editor at the bottom center.</p>
<p>Click on the IEEE14 scenario. You can see the paths and other configuration settings.</p>
<img src="Scenarios.png" alt="Scenarios"/>
</step>
<step>
<p>Click on the Parameters '...'. This will open parameter dialog that is identical to the single-file translation parameters.</p>
<img src="Scenario-parameters.png" alt="Scenario Parameters"/>
</step>
<step>
<p>While you have Order 1 (IEEE14) selected, click on the top right.</p>
<img src="Scenario-Run.png" alt="Run Scenario"/>
<p>Provided there aren't any errors, an updated output file is stored in the Target path. The Task Log will provide feedback with a single asterisk (*) for warnings and double-asterisk (**) for errors that must be corrected.</p>
<img src="ScenarioSuccess.png" alt="Scenario Success" />
</step>
</procedure>
</chapter>
</topic>
3,753 changes: 1,837 additions & 1,916 deletions output/nordic-44.mo

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/CIMtoMO4.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</xsl:choose>
</xsl:function>
<xsl:function name="gkh:powerBase" as="xs:double">
<xsl:value-of select="$base * 10*e6"/>
<xsl:value-of select="$base * 1000000"/>
</xsl:function>
<xsl:function name="gkh:baseImpedance" as="xs:double?">
<xsl:param name="basePower" as="xs:double?"/>
Expand Down
101 changes: 54 additions & 47 deletions source/scenarios.xfl
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,54 @@
<scenario>
<task name="IEEE14" type="XSLT">
<params>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\bus-14\ieee14_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\bus-14\ieee14_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="60" type="1"/>
<param key="param_frequency" value="60.0" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="BUS5_24f0" type="1"/>
<param key="param_filename" value="examples/bus-14/ieee14" type="1"/>
<param key="param_bus" value="BUS5" type="1"/>
<param key="param_filename" value="../examples/bus-14/ieee14" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\ieee14.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\ieee14.mo" type="0"/>
<param key="param_time" value="1.0" type="1"/>
<param key="param_resistance" value="0.0" type="1"/>
</params>
</task>
<task name="GENCLS" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\smib\Machines\GENCLS\CIM\smib_gencls_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\smib\Machines\GENCLS\CIM\smib_gencls_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="60" type="1"/>
<param key="param_frequency" value="60.0" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="FAULT_04a9" type="1"/>
<param key="param_filename" value="examples/smib/Machines/GENCLS/CIM/smib_gencls" type="1"/>
<param key="param_bus" value="FAULT" type="1"/>
<param key="param_filename" value="../examples/smib/Machines/GENCLS/CIM/smib_gencls" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\gencls.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\gencls.mo" type="0"/>
<param key="param_time" value="1.0" type="1"/>
<param key="param_resistance" value="0.0" type="1"/>
</params>
</task>
<task name="IEEET1" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\smib\Exciters\IEEET1\CIM\smib_ieeet1_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\smib\Exciters\IEEET1\CIM\smib_ieeet1_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="60" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="FAULT_efb7" type="1"/>
<param key="param_filename" value="examples/smib/Exciters/IEEET1/CIM/smib_ieeet1" type="1"/>
<param key="param_filename" value="../examples/smib/Exciters/IEEET1/CIM/smib_ieeet1" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\ieeet1.mo" type="0"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\ieeet1.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
</params>
Expand All @@ -56,64 +59,67 @@
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\brazil-7bus\CIM\Brazilian_7_bus_Equiv_Model_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\brazil-7bus\CIM\Brazilian_7_bus_Equiv_Model_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="50" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="FOZ_AREIA_54e5" type="1"/>
<param key="param_filename" value="examples/brazil-7bus/CIM/Brazilian_7_bus_Equiv_Model" type="1"/>
<param key="param_filename" value="../examples/brazil-7bus/CIM/Brazilian_7_bus_Equiv_Model" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\brazil-7bus.mo" type="0"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\brazil-7bus.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
</params>
</task>
<task name="CSVGN1" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\smib\Machines\CSVGN1\CIM\smib_csvgn1_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\smib\Machines\CSVGN1\CIM\smib_csvgn1_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="60" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="FAULT_ee83" type="1"/>
<param key="param_filename" value="examples/smib/Machines/CSVGN1/CIM/smib_csvgn1" type="1"/>
<param key="param_filename" value="../examples/smib/Machines/CSVGN1/CIM/smib_csvgn1" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\csvgn1.mo" type="0"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\csvgn1.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
</params>
</task>
<task name="bus-23" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\bus-23\CIM\23bus_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\bus-23\CIM\23bus_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="60" type="1"/>
<param key="param_frequency" value="60.0" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="EAST500_9441" type="1"/>
<param key="param_filename" value="examples/bus-23/CIM/23bus" type="1"/>
<param key="param_bus" value="EAST500" type="1"/>
<param key="param_filename" value="../examples/bus-23/CIM/23bus" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\bus-23.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\bus-23.mo" type="0"/>
<param key="param_time" value="1.0" type="1"/>
<param key="param_resistance" value="0.0" type="1"/>
</params>
</task>
<task name="icelandic-sys" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\icelandic-sys\CIM\Iceland_modified_PF_solved_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\icelandic-sys\CIM\Iceland_modified_PF_solved_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="50" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="BUS5_24f0" type="1"/>
<param key="param_filename" value="examples/icelandic-sys/CIM/Iceland_modified_PF_solved" type="1"/>
<param key="param_bus" value="BUS5" type="1"/>
<param key="param_filename" value="../examples/icelandic-sys/CIM/Iceland_modified_PF_solved" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="param_base" value="1000.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\icelandic-sys.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
Expand All @@ -122,18 +128,19 @@
<task name="nordic-44" type="XSLT">
<params>
<param key="sourcefilter" value="(.*).xml" type="0"/>
<param key="stylesheet" value="C:\Users\glen\OneDrive\Desktop\Editix\CIMtoMO4.xsl" type="0"/>
<param key="stylesheet" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="0"/>
<param key="param_reactance" value="0.1" type="1"/>
<param key="sourcepath" value="C:\Users\glen\OneDrive\Desktop\Editix\examples\nordic-44\CIM_new\N44_BC_EQ.xml" type="0"/>
<param key="sourcepath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\nordic-44\CIM_new\N44_BC_EQ.xml" type="0"/>
<param key="version" value="2.0" type="0"/>
<param key="param_frequency" value="50" type="1"/>
<param key="param_frequency" value="50.0" type="1"/>
<param key="targetname" value="$1.txt" type="0"/>
<param key="param_bus" value="AJAURE_d27e" type="1"/>
<param key="param_filename" value="examples/nordic-44/CIM_new/N44_BC" type="1"/>
<param key="param_bus" value="AJAURE" type="1"/>
<param key="param_filename" value="../examples/nordic-44/CIM_new/N44_BC" type="1"/>
<param key="param_time2" value="1.1" type="1"/>
<param key="targetpath" value="C:\Users\glen\OneDrive\Desktop\Editix\nordic-44.mo" type="0"/>
<param key="param_time" value="1" type="1"/>
<param key="param_resistance" value="0" type="1"/>
<param key="param_base" value="100.0" type="1"/>
<param key="targetpath" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\nordic-44.mo" type="0"/>
<param key="param_time" value="1.0" type="1"/>
<param key="param_resistance" value="0.0" type="1"/>
</params>
</task>
<task name=""/>
Expand Down

0 comments on commit dc07e5a

Please sign in to comment.