> 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/hyperlab/example-models/power-electronics/rc-series.md).

# RC Series

## Description

An RC Series Circuit is a fundamental electrical circuit consisting of a resistor (R) and a capacitor (C) connected in series. It is commonly used to study transient behavior, energy storage, and the response of electrical systems to sudden voltage changes.

When a DC voltage step is applied, the capacitor does not charge instantaneously. Instead, its voltage increases progressively according to an exponential curve determined by the resistance and capacitance values.

Similarly, when the input voltage returns to zero, the capacitor releases its stored energy through the resistor, producing an exponential voltage decay.

This example introduces the concept of the **RC time constant**, which determines how quickly the circuit responds to changes in the input voltage.

## Requirements

This example does not require any additional resources.

## Detailed explanation

This example allows users to investigate the transient behavior of an RC Series Circuit by observing the capacitor voltage in response to a rectangular input voltage signal.

The input voltage alternates between **0 V and 10 V**, producing successive charging and discharging phases.

The interactive interface provides a circuit schematic, adjustable resistance and capacitance parameters, voltage measurements, and a real-time graph displaying:

* **Input voltage (v\_src):** The rectangular voltage signal applied to the RC circuit.
* **Capacitor voltage (v\_C):** The voltage measured across the capacitor during charging and discharging.

Users can modify the resistance and capacitance values to investigate their influence on the circuit's time constant and transient response.

<figure><img src="https://2712201518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbs0l9jugXixa0ghErrqs%2Fuploads%2FyOUF5PtgtHrj2Cw0jvkB%2Frc-series.png?alt=media&amp;token=c412f434-6258-40a8-b0a5-43444df0536e" alt=""><figcaption></figcaption></figure>

## Simulation and results

#### **Experiment 1 – Observation of the Charging Curve**

Apply a voltage step from 0 V to 10 V and observe the capacitor voltage.

Notice how the capacitor voltage initially increases rapidly before progressively approaching the input voltage.

Identify the characteristic exponential shape of the charging curve.

Measure the time required for the capacitor voltage to reach approximately **6.32 V**, corresponding to 63.2% of the final voltage.

Compare this measured time with the theoretical time constant calculated using τ = RC.

#### **Experiment 2 – Observation of the Discharging Curve**

Allow the capacitor to charge close to 10 V, then observe its response when the input voltage returns to 0 V.

Notice how the capacitor voltage decreases exponentially toward zero.

Measure the time required for the capacitor voltage to fall to approximately **3.68 V**, assuming an initial voltage of 10 V.

Verify that this duration corresponds to one time constant.

#### **Experiment 3 – Influence of Resistance and Capacitance**

Modify the resistance and capacitance values and observe how the charging and discharging curves change.

Suggested parameter combinations:

| Resistance (R) | Capacitance (C) | Time Constant (τ) |
| -------------- | --------------- | ----------------- |
| 100 Ω          | 1 µF            | 0.1 ms            |
| 1 kΩ           | 1 µF            | 1 ms              |
| 10 kΩ          | 0.1 µF          | 1 ms              |
| 10 kΩ          | 1 µF            | 10 ms             |

Observe that increasing either the resistance or capacitance increases the time constant, resulting in a slower circuit response.

Notice that different combinations of resistance and capacitance can produce the same time constant and therefore identical normalized capacitor voltage responses.

#### **Experiment 4 – Estimation of the Time Constant**

Select a resistance and capacitance combination and record the capacitor voltage over time.

Identify the instant when the input voltage changes from 0 V to 10 V.

Measure the elapsed time required for the capacitor voltage to reach 6.32 V.

Calculate the theoretical time constant using:

<pre><code><strong>τ = RC
</strong></code></pre>

Compare the theoretical and measured values to validate the exponential response model.


---

# 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/hyperlab/example-models/power-electronics/rc-series.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.
