> 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-switches-and-breakers/diode.md).

# Diode

## Description

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

The **Diode** block, located in the **Network Switches and Breakers** library, models a non-linear resistance with configurable forward bias threshold, forward and reverse break-over voltages, blocking current, snubber elements, holding current, and on/off resistance. An optional precision function compensates for errors caused by the digital implementation during state switching as a function of the time step.

The block also provides an **optional fail reset** mode that outputs a signal when the diode reaches its forward or reverse breakdown voltage or when an untimely firing occurs.

## Mask parameters

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

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

<table><thead><tr><th width="201.79998779296875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Vmin</strong></td><td>Forward voltage drop (V) Range: [0, 1e12].</td></tr><tr><td><strong>Ropen</strong></td><td>Open-state resistance (Ohm) Range: [0, 1e12].</td></tr><tr><td><strong>Rclose</strong></td><td>Closed-state resistance (Ohm) Range: [0, 1e12].</td></tr><tr><td><strong>Rsnubber</strong></td><td>Snubber resistance (Ohm) Range: [0, 1e12].</td></tr><tr><td><strong>Csnubber</strong></td><td>Snubber capacitance (F) Range: [0, 1e12].</td></tr></tbody></table>
{% endtab %}

{% tab title="Advanced" %}

<table><thead><tr><th width="199.4000244140625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Fail reset</strong></td><td>Enables fail reset mode.</td></tr><tr><td><strong>Precision valve</strong></td><td>Enable: Recalculates the state-switch command using the exact time between steps (as a percentage of the time step). Disable: Does not use the precision valve.</td></tr><tr><td><strong>Imin</strong></td><td>Holding current (A) Range: [0, 1e12].</td></tr><tr><td><strong>Fbov</strong></td><td>Forward break-over voltage (V) Range: [0, 1e12].</td></tr><tr><td><strong>Rbov</strong></td><td>Reverse break-over voltage (V) Range: [0, 1e12].</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
To ensure natural computation, enable the option **Activate iterative method** in Simulation Settings.
{% endhint %}

## Conserving ports

| Port   | Description        |
| ------ | ------------------ |
| Net\_1 | Network connection |
| Net\_2 | Network connection |

## 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                               |
| ------- | ----------------------------------------- |
| FailSig | Fail reset signal.                        |
| I       | Diode current (A).                        |
| Delay   | Delay caused by forward voltage drop (s). |
| State12 | Diode state.                              |


---

# 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-switches-and-breakers/diode.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.
