> 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/hypersim/library-blocks-reference/network-sources/ac-voltage-source-with-impedance.md).

# AC Voltage Source with Impedance

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-c4c1c241aa4d7a2b65752149ef46aa2afbcab425%2Fimage%20(386).png?alt=media" alt="" width="159"><figcaption></figcaption></figure>

The **AC Voltage with impedance Source** block, located in the **Network Sources** library, models a three-phase voltage source with configurable internal impedance. Internal phase voltages are computed automatically when the source participates in load flow, or can be provided by the user. This source can be defined using a matrix, positive/zero-sequence data, or short-circuit data.

The impedance source participates in the load flow.

### Model equations

The equations below describe the source:

$$
\begin{aligned}
v\_a &= e\_a - R\_{aa} i\_a - R\_{ab} i\_b - R\_{ac} i\_c
\- L\_{aa} \frac{d i\_a}{dt} - L\_{ab} \frac{d i\_b}{dt} - L\_{ac} \frac{d i\_c}{dt}, \\\[8pt]
v\_b &= e\_b - R\_{ba} i\_a - R\_{bb} i\_b - R\_{bc} i\_c
\- L\_{ba} \frac{d i\_a}{dt} - L\_{bb} \frac{d i\_b}{dt} - L\_{bc} \frac{d i\_c}{dt}, \\\[8pt]
v\_c &= e\_c - R\_{ca} i\_a - R\_{cb} i\_b - R\_{cc} i\_c
\- L\_{ca} \frac{d i\_a}{dt} - L\_{cb} \frac{d i\_b}{dt} - L\_{cc} \frac{d i\_c}{dt}.
\end{aligned}
$$

Where

$$e\_a, e\_b, e\_c$$ are the internal voltages of the source for phases a, b, and c, respectively.

$$R\_{i,j}, L\_{i,j}$$ are the resistances, mutual inductances, and self-inductances of the voltage source for i = a, b, c and j = a, b, c.

{% hint style="info" %}
The internal voltages of the source are obtained automatically if the source participates in the load flow or are input by the user.
{% endhint %}

The resistances, mutual inductances, and self-inductances of the voltage source are obtained or calculated based on the selected Input Mode:

* If **Input Mode is Matrix**: The user provides the source impedance matrix.
* If **Input Mode is Sequences**: The user provides the positive and zero sequence impedances. The resistances, mutual inductances, and self-inductances are then calculated as follows:

$$
R\_{\text{self}} = \frac{2R\_{+} + R\_0}{3}, \\\[8pt]
R\_{\text{mutual}} = \frac{R\_0 - R\_{+}}{3}, \\\[8pt]
L\_{\text{self}} = \frac{2L\_{+} + L\_0}{3}, \\\[8pt]
L\_{\text{mutual}} = \frac{L\_0 - L\_{+}}{3}.
$$

* if **Input Mode is ShortCircuit data**: The user provides the three-phase and single-phase short-circuit powers, as well as the ratios between reactance and resistance for the positive and zero sequences. The resistances and reactances in the positive and zero sequences are then calculated as follows:

$$
X\_{+} = \frac{V\_{\text{Base}}^{2} / S\_{3cc}}{\sqrt{,1 + \frac{1}{K\_{+}^{2}},}} \\\[10pt]
R\_{+} = \frac{X\_{+}}{K\_{+}}
$$

Where $$K\_+$$ is the ratio between reactance and resistance of the positive sequence.

The zero-sequence resistance is calculated by solving the second-order equation below:

$$
A\_0R\_0^2 + B\_0R\_0 + C\_0 =0
$$

where

$$
A\_0 = 1 + K\_0^{,2}, \\\[6pt]
B\_0 = 4 \left( R\_1 + X\_1 K\_0 \right), \\\[6pt]
C\_0 = 4 \left( R\_1^{,2} + X\_1^{,2} \right)
\- \left( \frac{3 V\_{\text{Base}}^{,2}}{S\_{1cc}} \right)^{2}.
$$

And $$K\_0=\frac{X\_0}{R\_0}$$ is the ratio between the reactance and the resistance of the zero sequence. If this equation does not yield any real roots, $$X\_0=X\_1$$ and the resistance is obtained as follows $$R\_0=\frac{X\_0}{K\_0}$$

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-a032be4be11839e440a692e3acba540a2b9d6a23%2FACV%20impedance.jpg?alt=media" alt=""><figcaption></figcaption></figure>

### General

{% tabs %}
{% tab title="General" %}

<table><thead><tr><th width="220.48291015625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Base Power</strong></td><td>Rated power (MVA)</td></tr><tr><td><strong>Base Voltage</strong></td><td>Rated line-to-line voltage (kV)</td></tr><tr><td><strong>Base Frequency</strong></td><td>Rated frequency (Hz)</td></tr><tr><td><strong>Connection</strong></td><td>Winding connection with options Wye grounded and Wye with neutral</td></tr><tr><td><strong>Amplitude</strong></td><td>RMS phase-to-ground amplitude of each phase (kV)</td></tr><tr><td><strong>Angle</strong></td><td>Angle of each phase (degre)</td></tr></tbody></table>
{% endtab %}

{% tab title="Impedance" %}

<table><thead><tr><th width="246.069580078125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Input Mode</strong></td><td><p>Impedance entry method:</p><ul><li>Impedance in matrix form</li><li>Impedance in positive and zero sequence form</li><li>Short-circuit powers, and resistance/reactance ratios</li></ul></td></tr><tr><td><strong>R- matrix mode</strong></td><td>Resistance in matrix form</td></tr><tr><td><strong>L-matrix mode</strong></td><td>Inductance in matrix form</td></tr><tr><td><strong>R-sequence</strong></td><td>Positive and zero-sequence resistance (Ω)</td></tr><tr><td><strong>L-sequence</strong></td><td>Positive and zero-sequence inductance (H)</td></tr><tr><td><strong>S3cc-3 phase short-circuit power</strong></td><td>Three-phase short-circuit power (MVA)</td></tr><tr><td><strong>S1cc-1 phase short-circuit power</strong></td><td>Single-phase short-circuit power (MVA)</td></tr><tr><td><strong>X1R1-Ratio positive resistance and reactance</strong></td><td>Ratio between resistance and reactance of the positive sequence</td></tr><tr><td><strong>X0R0-Ratio homopolaire resistance and reactance</strong></td><td>Ratio between resistance and reactance of the zero sequence</td></tr></tbody></table>
{% endtab %}

{% tab title="Load flow" %}

<table><thead><tr><th width="219.78826904296875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Type of bus</strong></td><td>Bus type: Swing, PV, or PQ</td></tr><tr><td><strong>Voltage</strong></td><td>Desired voltage at the source terminals (pu)</td></tr><tr><td><strong>Angle</strong></td><td>Desired voltage angle at the source terminals (deg)</td></tr><tr><td><strong>Active power</strong></td><td>Active power delivered by the source (MW)</td></tr><tr><td><strong>Reactive power</strong></td><td>Reactive power delivered by the source (MVAr)</td></tr><tr><td><strong>Reactive power minimum</strong></td><td>Minimum reactive power that the source must deliver (MVAr)</td></tr><tr><td><strong>Reactive power maximum</strong></td><td>Maximum reactive power that the source must deliver (MVAr)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Conserving ports

<table><thead><tr><th width="199.6922607421875">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>Net_S</strong></td><td>Three-phase pin (+), Network connector on the AC side. It supports a three-phase connection.</td></tr><tr><td><strong>Net_Ns</strong></td><td>Single-phase neutral pin, Network connector on the AC side. Neutral connector. It supports single-phase connection.</td></tr></tbody></table>

## Inputs

This block has no inputs.

## Outputs

This block has no outputs.

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

Additional signals are also available and are listed below with their descriptions.

| Signal  | Description                   |
| ------- | ----------------------------- |
| **Eas** | Internal voltage, phase A (V) |
| **Ebs** | Internal voltage, phase B (V) |
| **Ecs** | Internal voltage, phase C (V) |
| **Ias** | Measured current, phase A (A) |
| **Ibs** | Measured current, phase B (A) |
| **Ics** | Measured current, phase C (A) |
| **Ps**  | Active power (W)              |
| **Qs**  | Reactive power (VAr)          |


---

# 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/hypersim/library-blocks-reference/network-sources/ac-voltage-source-with-impedance.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.
