> 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/smart-power-simulation-software-sps/example-models/get-started-with-sps/inductive-current-chopping.md).

# Inductive Current Chopping

## Overview

This example shows the effect of current chopping in an inductive circuit.

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

## Description

The Ideal Switch is used to switch off and on an inductor (L = 1 H, R = 50 Ω) on a 120 Vrms, 60 Hz source. The inductor has a stray capacitance C = 50 nF. The switch resistance is 1e-3 Ω. The switch is initially closed. It is opened at t = 36 ms and then reclosed at t = 0.15 s.

## Simulation

Start the simulation and observe the inductor voltage U\_L and inductor current I\_L on Scope1.

{% stepper %}
{% step %}

### At opening (t = 36 ms)

* The current in the inductor at opening is I\_L = 0.187 A.
* Current chopping produces a high-frequency overvoltage (≈ 711 Hz) across the inductor.
* The maximum voltage can be calculated from the following equation:

  U\_Lmax = I\_L \* sqrt(L / C) = 0.187 \* sqrt(1 / 50e-9) = 836 V
  {% endstep %}

{% step %}

### At reclosing (t = 0.15 s)

* The source voltage is zero at reclosing, so a full offset is observed in the inductor current.
* The switch current spike observed on trace 1 of Scope2 at reclosing is due to the capacitor discharge through the source resistance.
* Zooming on this spike shows:
  * A current step of \~30 A (30 V capacitor voltage / 1 Ω source resistance).
  * A fast discharge time constant: RC = 1 \* 50e-9 = 50e-9 s.
    {% endstep %}
    {% endstepper %}

## Command

Example model name: power\_switching

{% code lineNumbers="true" %}

```matlab
open('power_switching')
```

{% endcode %}


---

# 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/smart-power-simulation-software-sps/example-models/get-started-with-sps/inductive-current-chopping.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.
