> 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/ehs/3.7/model-in-schematic-editor/library-blocks-reference/transformer-blocks/scaling-transformer.md).

# Scaling Transformer

## Description

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-02025a8007f115abe91add0d68fcc4858e54c6ea%2FSE_ScalingTransformer.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Scaling Transformer** block is an ideal transformer where the voltage and current gains can be set arbitrarily. It can be used to simulate the presence of multiple identical circuits on its secondary side.

For example, using the following circuit of six identical cells:

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-1a8b93e6eda6f12b79460ad1f41bc40843670f74%2FSE_ScalingTransformer_CellsEquivalentCircuit.png?alt=media" alt=""><figcaption></figcaption></figure>

This circuit can be represented with a single cell using the Scaling Transformer. The voltage gain is set to the number of cells in series (2) and the current gain is set to the number of branches in parallel (3). The resulting circuit behaves the same way as the original one:

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-cb5a6ab00759cbc338697eeed1cda9a438de2cd5%2FSE_ScalingTransformer_SingleCellCircuit.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This block is only available in the eHS library.
{% endhint %}

{% hint style="danger" %}
Since the voltage and current gains are set manually, this transformer does not respect energy conservation laws and does not represent a physical component. The two sides of the Scaling Transformer should not be connected together to avoid infinite current loops.
{% endhint %}

## Parameters

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-57bbf9436cb67967dfe38a0bfbb76d730bf39b90%2FSE_ScalingTransformer_Parameters.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th>Parameter</th><th width="310">Description</th><th width="100">Sets feature</th><th>I/O &#x26; Monitoring</th></tr></thead><tbody><tr><td><strong>Current scaling factor (K</strong><sub><strong>i</strong></sub><strong>)</strong></td><td>Current scaling between the primary and the secondary side. Represents the number of parallel branches for the secondary side equivalent circuit.</td><td>Yes</td><td>N/A</td></tr><tr><td><strong>Voltage scaling factor (K</strong><sub><strong>v</strong></sub><strong>)</strong></td><td>Voltage scaling between the primary and the secondary side. Represents the number of cells in series for the secondary side equivalent circuit.</td><td>Yes</td><td>N/A</td></tr></tbody></table>

{% hint style="info" %}
This block has the same parameter set in eHS and HSCS circuits.
{% endhint %}

## Conserving ports

| Port  | Description   |
| ----- | ------------- |
| **A** | Positive port |
| **B** | Negative port |
| **Y** | Positive port |
| **Z** | Negative port |


---

# 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/ehs/3.7/model-in-schematic-editor/library-blocks-reference/transformer-blocks/scaling-transformer.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.
