> 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/model-in-schematic-editor/library-blocks-reference/switches-blocks/fet-with-antiparallel-diode.md).

# FET with Antiparallel Diode

## Description

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

The **FET with Antiparallel Diode** block models a field-effect transistor (FET) with a diode connected in antiparallel. The device can conduct current in both directions but can block voltage only in the forward direction (from drain to source). The FET state is controlled by the gate signal, while the overall device behavior also depends on the conditions imposed by the external circuit.

The antiparallel diode allows reverse current conduction when reverse voltage is applied across the device.

## Parameters

### In eHS circuit

<figure><img src="https://3212678799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABuoXNYgvaoO7wIe3bfO%2Fuploads%2Fgit-blob-64b0a1f183b0a2ecc65d52a2778e99d8b5c10833%2FSE_FET_diodeparam.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

| Parameter                                                    | Description                                                                                                                                                                              | Sets feature | I/O & Monitoring                                                                                   |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------- |
| **Internal on resistance (R**<sub>**on**</sub>**)**          | The diode internal on resistance, in ohms (Ω).                                                                                                                                           | Yes          | N/A                                                                                                |
| **Internal off Resistance (R**<sub>**off**</sub>**)**        | The diode internal off resistance, in ohms (Ω).                                                                                                                                          | Yes          | N/A                                                                                                |
| **Switching method (Sm)**                                    | Refer to [Select & Tune the Switching Method](https://www.opal-rt.com/docs/ehs/model-in-schematic-editor/optimize-the-ehs-circuit/select-and-tune-the-switching-method.md) for guidance. | No           | N/A                                                                                                |
| **Gate control signal (g)**                                  | The signal to control on/off state of the switch.                                                                                                                                        | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |
| **Discrete-time switch conductance (G**<sub>**s**</sub>**)** | <p><em>Available only when Switching Method is set to Pejovic.</em><br>Switch conductance.</p>                                                                                           | Yes          | N/A                                                                                                |
| **Relaxation (Relax)**                                       | *Available only when Switching Method is set to Quasi-Supra.*                                                                                                                            | Yes          | N/A                                                                                                |
| **Damping resistance (R**<sub>**damp**</sub>**)**            | <p><em>Available only when Switching Method is set to Quasi-Supra.</em><br>Damping resistance value, in ohms (Ω).</p>                                                                    | Yes          | N/A                                                                                                |

### In HSCS circuit <a href="#conserving-ports" id="conserving-ports"></a>

<figure><img src="https://3212678799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABuoXNYgvaoO7wIe3bfO%2Fuploads%2Fgit-blob-b09a8324d0afe3c61c91ad86a6d6db1f1803661e%2Fse-fet-anti-parameters-hscs.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                                             | Description                                       | Sets feature | I/O & Monitoring                                                                                   |
| ----------------------------------------------------- | ------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------- |
| **Internal on resistance (R**<sub>**on**</sub>**)**   | The diode internal on resistance, in ohms (Ω).    | Yes          | N/A                                                                                                |
| **Internal off Resistance (R**<sub>**off**</sub>**)** | The diode internal off resistance, in ohms (Ω).   | Yes          | N/A                                                                                                |
| **Gate control signal (g)**                           | The signal to control on/off state of the switch. | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |

## Conserving ports <a href="#conserving-ports" id="conserving-ports"></a>

| Port   | Description   |
| ------ | ------------- |
| **p1** | Positive port |
| **n1** | 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/model-in-schematic-editor/library-blocks-reference/switches-blocks/fet-with-antiparallel-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.
