> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/rt-lab/model-and-simulation/phasor-domain-with-ephasorsim/integrate-a-power-system-model-to-ephasorsim/use-a-cyme-model/prepare-the-sxst-file/export-cyme-power-flow-results.md).

# Export CYME Power-Flow Results

## Introduction

In power system analysis, **load flow** and **power flow** refer to the same steady-state network calculation. CYME uses the term *Load Flow Analysis*, while ePHASORSIM refers to the exported results as **power-flow data**.

ePHASORSIM can initialize the network using its own internal power-flow solution. Optionally, the network data can be accompanied by a CYME power-flow solution exported as an Excel workbook (`.xls`). This approach is recommended for **unbalanced networks**, as support for multiphase power-flow initialization is more limited and CYME power-flow results provide a more accurate network initialization point.

The procedure below describes how to calculate and export a load-flow solution using **CYME 7.2**. Steps may vary slightly in other CYME versions.

## Procedure

{% stepper %}
{% step %}

### Run the load-flow analysis

Select **Analysis > Load Flow**, as shown in the figure below.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-d5b81695fed44c889b50de41d2c83ff7a2fe1850%2Feph-PF1.png?alt=media" alt=""><figcaption></figcaption></figure>

Alternatively, click the **Load Flow** button in the toolbar.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-4b1ab3fec52df76dfcb6c355883723f668340237%2Fimage%20(205).png?alt=media" alt=""><figcaption></figcaption></figure>

Ensure the **Load Flow Analysis** settings match the figure below.

Select **As Defined** in **Load and Generation Scaling Factors**. Select it in **Voltage and Frequency Sensitivity Load Model**.

Click **Run** to calculate the load-flow solution.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-939106b1c759a34414f6f727ad1ab10cb6d8532f%2Feph-PF3.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open analysis reports

Select **Analysis** from the **Report** menu to open **Analysis Reports**.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-f23b1cb8c0318c03da9970271a442ee39b7ef71d%2Feph-PF4.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-813aed92f84f0b067845523f781b0362ecbfda9d%2Feph-PF5.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create a power-flow report template

Create a blank report the first time you export analysis data. Reuse this template for later exports.

Click **Add New Report** in **Report Selection**. Name the report, for example, `ephload`.

Select **User Defined** for **Category**. Enter the value manually if it is unavailable. Select **Microsoft Excel (`*.xls`)** for **Output format**.

Select **All Sections** in **Select Items**. Add these keywords to **Select Keywords**, in order:

`NodeId`, `KVLLBase`, `VLNA`, `VLNB`, `VLNC`, `PH-AngleA`, `PH-AngleB`, `PH-AngleC`, `GenMinKVAR`, `GenMaxKVAR`, `GenKW`, `GenKVA`, `CapId`, `SpotNumber`, `SectionId`.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-51169efeed6c820fe2532e5b28782104cf34c8db%2Feph-PF6.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Export the power-flow data

Click **OK** to create the template. Select it in **Analysis Reports**.

Set an appropriate workbook name. Click **OK** again to export the Excel workbook.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-c72b063ae93c18fed7d323af02bcee98a38f8684%2Feph-PF7.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Review the power-flow data

The following table contains the list of data that are read from the power-flow Excel:

<table data-search="false"><thead><tr><th>Entry</th><th>Description</th></tr></thead><tbody><tr><td><strong>NodeId</strong></td><td>Node identifier. Supports 32 alphanumeric characters</td></tr><tr><td><strong>KVLLBase</strong></td><td>Bus Base line-to-line Voltage (kV)</td></tr><tr><td><strong>VLNA</strong></td><td>Phase A line-to-nature Voltage Mag­nitude (kV)</td></tr><tr><td><strong>VLNB</strong></td><td>Phase B line-to-nature Voltage Mag­nitude (kV)</td></tr><tr><td><strong>VLNC</strong></td><td>Phase Cline-to-nature Voltage Mag­nitude (kV)</td></tr><tr><td><strong>PH-AngleA</strong></td><td>Phase A line-to-nature Voltage Angle (degree)</td></tr><tr><td><strong>PH-AngleB</strong></td><td>Phase B line-to-nature Voltage Angle (degree)</td></tr><tr><td><strong>PH-AngleC</strong></td><td>Phase C line-to-nature Voltage Angle (degree)</td></tr><tr><td><strong>GenMinKVAR</strong></td><td>Minimum Reactive power of the generator</td></tr><tr><td><strong>GenMaxKVAR</strong></td><td>Maximum Reactive power of the generator</td></tr><tr><td><strong>GenKW</strong></td><td>Active power of the generator</td></tr><tr><td><strong>GenKVA</strong></td><td>Reactive power of the generator. Any value between GenMinKVAR and GenMaxKVAR</td></tr><tr><td><strong>CapId</strong></td><td>Capacitor identifier. Supports up to 31 alphanumeric characters</td></tr><tr><td><strong>SpotNumber</strong></td><td>Spot load number. Supports any alphanumeric string</td></tr><tr><td><strong>SectionId</strong></td><td>Section Identifier. May not contain blank spaces</td></tr></tbody></table>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/rt-lab/model-and-simulation/phasor-domain-with-ephasorsim/integrate-a-power-system-model-to-ephasorsim/use-a-cyme-model/prepare-the-sxst-file/export-cyme-power-flow-results.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
