Skip to content

Commit

Permalink
Scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
gkhalley committed Nov 17, 2023
1 parent e898b19 commit 38428a2
Show file tree
Hide file tree
Showing 75 changed files with 265 additions and 226 deletions.
2 changes: 1 addition & 1 deletion .editix/config.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><root nodestate="project/examples/bus-14;project;project/examples"/>
<?xml version="1.0" encoding="UTF-8"?><root nodestate="project;project/source"/>
31 changes: 31 additions & 0 deletions .editix/workspace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,35 @@
<param name="encoding" value="AUTOMATIC"/>
</file>
<file open="false" path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\imports\dynamics\PssIEEE2B.xsl" type="XSLT"/>
<file open="true" path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl" type="XSLT">
<param name="xslt.data.file" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\examples\bus-14\ieee14_EQ.xml"/>
<param name="xslt.xslt.file" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\CIMtoMO4.xsl"/>
<param name="xslt.fop" value="false"/>
<param name="xslt.param.name.7" value="filename"/>
<param name="xslt.displayFile" value="false"/>
<param name="xslt.result.file" value="C:\Users\glen\IdeaProjects\XSLTConferencePaper\output\IEEE14.mo"/>
<param name="xslt.param.value.0" value="60.0"/>
<param name="xslt.ok" value="true"/>
<param name="xslt.param.name.1" value="bus"/>
<param name="xslt.param.value.6" value="100.0"/>
<param name="xslt.param.name.2" value="resistance"/>
<param name="xslt.param.value.5" value="1.1"/>
<param name="xslt.param.value.7" value="../examples/bus-14/ieee14"/>
<param name="xslt.param.name.0" value="frequency"/>
<param name="xslt.param.value.2" value="0.0"/>
<param name="xslt.param.name.5" value="time2"/>
<param name="xslt.openFile" value="false"/>
<param name="xslt.param.value.1" value="BUS5"/>
<param name="xslt.param.name.6" value="base"/>
<param name="xslt.param.name.3" value="reactance"/>
<param name="xslt.param.value.4" value="1.0"/>
<param name="xslt.param.value.3" value="0.1"/>
<param name="xslt.param.name.4" value="time"/>
</file>
<file path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source"/>
<file open="true" path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\Writerside" type="XML"/>
<file open="false" path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\Writerside\writerside.cfg" type="">
<param name="lastView" value="Source"/>
</file>
<file open="true" path="C:\Users\glen\IdeaProjects\XSLTConferencePaper\source\scenarios.xfl" type="XSC"/>
</root>
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Tutorial for Using EditiX to Analyze and Translate CGMES XML
Interactive CGMES XML translation to OpenIPSL using XSLT running in EditiX. Please see the <a href="https://alsetlab.github.io/XSLTConferencePaper/tutorials.html" target="_blank">Documentation</a>.
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).

Editix is an interactive development environment for XML/XSLT:
https://www.editix.com/
This tutorial will use the features of EditiX to analyze CGMES XML and lcoated the parameters necessary to load into OpenIPSL. While editing XML, it also allows quick and clear separation of components into files that show up as tabs.
[Editix](https://www.editix.com/) is an interactive development environment for XML/XSLT.

Please return after the November 15, 2023 to see a more complete tutorial. To see the files that will be used for this tutorial check back regularly. This initial set has at least one runnable example: ieee14.mo.
This tutorial will use the features of EditiX to analyze CGMES XML and located the parameters necessary to load into OpenIPSL. While editing XML, it also allows quick and clear separation of components into files that show up as tabs.
Binary file removed Writerside/images/Project.png
Binary file not shown.
Binary file removed Writerside/images/TransformDialog.png
Binary file not shown.
Binary file removed Writerside/images/completion_procedure_dark.png
Binary file not shown.
Binary file removed Writerside/images/convert_table_to_xml_dark.png
Binary file not shown.
Binary file removed Writerside/images/new_topic_options_dark.png
Binary file not shown.
File renamed without changes.
Binary file added documentation/images/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/Project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added 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.
File renamed without changes
File renamed without changes
Binary file added documentation/images/TransformDialog.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/VisualEditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
1 change: 1 addition & 0 deletions Writerside/t.tree → documentation/t.tree
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<toc-element topic="Tutorials.md">
<toc-element topic="Overview.md"/>
<toc-element topic="How-to-perform-Basic-Translation.topic"/>
<toc-element topic="PreconfiguredImport.topic"/>
<toc-element topic="How-to-Create-Schema.md"/>
</toc-element>
<toc-element topic="Analysis.md">
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

Create a XML schema to determine the types of components within a particular model.

> **Highlight important information**
>
> You can change the element to *tip* or *warning* by renaming the style attribute below.
>
{style="note"}

## Before you start

It is good practice to list the prerequisites that are required or recommended.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,19 @@
<code-block lang="plain text">
XSLT/XQuery -> Transform a document with this XSLT ...
or
</code-block><img src="Transform.png" alt="Transform.png"/>
</code-block>
<img src="Transform.png" alt="Transform.png"/>
</step>
<step>
<p>The transform dialog will appear. Press OK.</p><img src="TransformDialog.png" alt="TransformDialog.png"/>
<p>The transform dialog will appear. Re-path the XSLT Document, Document source, and Result document for the part including "\XSLTConferencePaper\..." .</p>
<img src="TransformDialog.png" alt="TransformDialog.png"/>
<p>Then, click on the Parameters tab and enter the parameters as shown.</p>
<img src="Parameters.png" alt="Parameters"/>
</step>
<step>
<p>The examples/bus-14 CIM files (ieee14_EQ.xml, ieee14_SV.xml, ieee14_TP.xml, and ieee14_DY.xml) are translated and shown in the Result window. These results can be pasted into Modelica IDE and run with the OpenIPSL library.</p><img src="Results.png" alt="Results.png"/>
<p>If the operation is successful, you will see the blue box at the bottom right!</p>
<img src="OperationComplete.png" alt="Complete"/>
</step>
</procedure>
</chapter>
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions documentation/topics/PreconfiguredImport.topic
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
title="Preconfigured Translation - Multiple Files" id="PreconfiguredImport">

<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">
<step>
<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"/>
</step>
<step>
<p>Click on the IEEE14 scenario.</p>
<img src="Scenarios.png" alt="Scenarios"/>
</step>
</procedure>
</chapter>
</topic>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 38428a2

Please sign in to comment.