> 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/blocks-functions-tools/basics/passives/parallel-rlc-branch.md).

# Parallel RLC Branch

## Description

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

The **Parallel RLC Branch** block, located in the **OPAL-RT SPS Software/Passives** library, implements a single resistor, inductor, and capacitor or a parallel combination of these. Use the **Branch type** parameter to select elements you want to include in the branch.

Negative values are allowed for resistance, inductance, and capacitance.

## Parameters

<table><thead><tr><th width="143.5999755859375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Branch type</strong></td><td>Select the elements you want to include in the branch. The <strong>R</strong> letter defines the resistor, the <strong>L</strong> letter defines the inductor, and the <strong>C</strong> letter defines the capacitor. Select <strong>Open circuit</strong> to define an open circuit (R=inf, L=inf, C=0). Only existing elements are displayed in the block icon. Default is RLC.</td></tr><tr><td><strong>Resistance</strong></td><td>The branch resistance, in ohms (Ω). Default is 1. The <strong>Resistance</strong> parameter is not visible if the resistor element is not specified in the <strong>Branch type</strong> parameter.</td></tr><tr><td><strong>Inductance L</strong></td><td>The branch inductance, in henries (H). Default is 1e-3. The <strong>Inductance</strong> parameter is not visible if the inductor element is not specified in the <strong>Branch type</strong> parameter.</td></tr><tr><td><strong>Set the initial inductor current</strong></td><td>If selected, the initial inductor current is defined by the <strong>Inductor initial current</strong> parameter. If cleared, the software calculates the initial inductor current in order to start the simulation steady-state. Default is cleared.</td></tr><tr><td><strong>Inductor initial current (A)</strong></td><td>The initial inductor current used at the start of the simulation. Default is <code>0</code>. This parameter is not visible and has no effect on the block if the inductor is not modeled and if the <strong>Set the initial inductor current</strong> parameter is not selected.</td></tr><tr><td><strong>Capacitance C</strong></td><td>The branch capacitance, in farads (F). Default is 1e-6. The <strong>Capacitance</strong> parameter is not visible if the capacitance element is not specified in the <strong>Branch type</strong> parameter.</td></tr><tr><td><strong>Set the initial capacitor voltage</strong></td><td>If selected, the initial capacitor voltage is defined by the <strong>Capacitor initial voltage</strong> parameter. If cleared, the software calculates the initial capacitor voltage in order to start the simulation in steady-state. Default is cleared.<br>The <strong>Set the initial capacitor voltage</strong> parameter is not visible and has no effect on the block if the capacitor element is not specified in the <strong>Branch type</strong> parameter.</td></tr><tr><td><strong>Capacitor initial voltage (V)</strong></td><td>The initial capacitor voltage used at the start of the simulation. The <strong>Capacitor initial voltage</strong> parameter is not visible and has no effect on the block if the capacitor is not modeled and if the <strong>Set the initial capacitor voltage</strong> parameter is not selected.</td></tr><tr><td><strong>Measurements</strong></td><td>Select <strong>Branch voltage</strong> to measure the voltage across the Parallel RLC Branch block terminals.<br>Select Branch current to measure the total current (sum of R, L, C currents) flowing through the Parallel RLC Branch block.<br>Select Branch voltage and current to measure the voltage and the current of the Parallel RLC Branch block.<br>Default is None.<br>Place a Multimeter block in your model to display the selected measurements during the simulation. In the <strong>Available Measurements</strong> list box of the Multimeter block, the measurement is identified by a label followed by the block name.<br>Labels for Measurements:<br>Branch voltage- Ub:<br>Branch current - Ib:</td></tr></tbody></table>

## Examples

The power\_paralbranch example is used to obtain the frequency response of an eleventh-harmonic filter (tuned frequency at 660 Hz) connected on a 60 Hz power system:

The network impedance in the Laplace domain is

$$
Z(s) = \frac{V(s)}{I(s)} = \frac{RLCs^{2} + Ls + R}{LCs^2+RCs}.
$$

To obtain the frequency response of the impedance you have to get the state-space model (A B C D matrices) of the system.

This system is a one input (Is) and one output (Vs) system.

{% hint style="info" %}
If you have Control System Toolbox™ software installed, you can get the transfer function Z(s) from the state-space matrices and the bode function.
{% endhint %}

```matlab
[A,B,C,D] = power_analyze('power_paralbranch');
freq = logspace(1,4,500);
w = 2*pi*freq;
[Zmag,Zphase] = bode(A,B,C,D,1,w);
subplot(2,1,1)
loglog(freq,Zmag)
grid
title('11th harmonic filter')
xlabel('Frequency, Hz')
ylabel('Impedance Z')
subplot(2,1,2)
semilogx(freq,Zphase)
xlabel('Frequency, Hz')
ylabel('phase Z')
grid
```

You can also use the Impedance Measurement block and the Powergui block to plot the impedance as a function of frequency.


---

# 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/blocks-functions-tools/basics/passives/parallel-rlc-branch.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.
