> 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/power-systems-with-artemis/model-optimization/use-rt-optimized-artemis-switch-models.md).

# Use RT-Optimized ARTEMiS Switch Models

ARTEMiS provides several blocks and methods for accurately simulating switching devices such as IGBTs, diodes, thyristors, and MOSFETs in real-time environments. These blocks and methods aim to balance numerical stability, accuracy, and computational efficiency, depending on the topology and switching frequency of the simulated converter.

The main switch modeling blocks and methods available are:

* **TSB (Time-Stamped Bridge)** blocks
  * A legacy but efficient model based on time-step interpolation of PWM signals.\
    It routes DC voltage to the load and current to the DC link proportionally to gate signal duration.
    * Supports deadtime and natural rectification
    * High-impedance states are stabilized using RC snubbers
* **TSB with Real Diodes (TSB-RD)** blocks
  * Enhances TSB by including real SPS diodes or thyristors for high-impedance operation.
    * Improves numerical stability
    * Supports parallel inverter operation
    * Recommended with SSN grouping for large-scale drives
* **SSN Inverter** blocks
  * The most modern approach — fully embedded in the SSN nodal matrix.
    * Provides interpolation without delay
    * More stable in high-impedance and fault conditions
    * Ideal for advanced inverter-based systems (e.g., VSC-HVDC)
* **ITVC (Inlined Thyristor Valve Compensation)** algorithm
  * Corrects firing delay effects for thyristor-based converters.
    * Improves current smoothness and firing accuracy
    * Requires RT-Events or Time-Stamped Digital Inputs
* [**Iterative methods**](https://www.opal-rt.com/docs/rt-lab/model-and-simulation/power-systems-with-artemis/model-optimization/use-iterative-methods.md) **such as iSWITCH**

Each block and method is designed for specific use cases, such as inverter PWM applications, thyristor-based converters, or fast current-loop systems.

## Recommended use

| Model             | Recommended Use                                            | Key Benefits                                                   | Notes                                                           |
| ----------------- | ---------------------------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------- |
| **TSB**           | Classic inverter topologies (2-level, 3-level NPC)         | Simple, interpolation-based PWM simulation; no memory impact   | May require large snubbers in high-impedance mode               |
| **TSB-RD**        | General-purpose inverters with DC fault handling           | Better high-impedance support and parallel inverter handling   | Requires SSN grouping (counts as SPS switches)                  |
| **SSN Inverters** | High-fidelity inverter models with precise interpolation   | Fully embedded in SSN; better stability under fault conditions | Requires ARTEMiS with ArtEvents                                 |
| **ITVC**          | Thyristor applications (HVDC, SVC, etc.)                   | Highly accurate, inlined algorithm; supports time-stamped I/O  | Works automatically when gate interpolation is active           |
| **iSWITCH**       | General converter topologies requiring iterative precision | Highest accuracy; supports any switch type                     | Slower for large models; no interpolation except for thyristors |

## Performance and trade-offs

| Model            | Interpolation Accuracy | High-Impedance Stability | Speed (Real-Time) | Parallel Inverter Support | Suitable for PWM | Iterative Behavior |
| ---------------- | ---------------------- | ------------------------ | ----------------- | ------------------------- | ---------------- | ------------------ |
| **TSB**          | High                   | Moderate                 | Very fast         | Limited                   | Yes              | No                 |
| **TSB-RD**       | High                   | Excellent                | Fast              | Yes                       | Yes              | No                 |
| **SSN Inverter** | Very high              | Excellent                | Fast              | Yes                       | Yes              | No                 |
| **ITVC**         | High                   | Excellent                | Very fast         | N/A                       | No               | No                 |
| **iSWITCH**      | Low (except ITVC)      | Excellent                | Slower            | Yes                       | Limited          | Yes                |


---

# 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/power-systems-with-artemis/model-optimization/use-rt-optimized-artemis-switch-models.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.
