# Gyrator

Ideal gyrator in electrical systems

## Library

Electrical Elements

## Description

Gyrators can be used to implement an inductor with a capacitor. The main benefit is that an equivalent inductance can be created with a much smaller physically sized capacitance. In practice, a gyrator is implemented with an op-amp plus additional passive components.

The Gyrator block models an ideal gyrator with no losses, described with the following equations:

`$I1=G·V2$`
`$I2=G·V1$`

where

 `V1` Input voltage `V2` Output voltage `I1` Current flowing into the input + terminal `I2` Current flowing out of the output + terminal `G` Gyration conductance

The two electrical networks connected to the primary and secondary windings must each have their own Electrical Reference block.

### Variables

To set the priority and initial target values for the block variables prior to simulation, use the Variables tab in the block dialog box (or the Variables section in the block Property Inspector). For more information, see Set Priority and Initial Target for Block Variables.

## Parameters

Gyration conductance

The gyration conductance constant G. The default value is `1`.

## Ports

The block has four electrical conserving ports. Polarity is indicated by the + and – signs. Ports labeled 1+ and 1– are connected to the primary winding. Ports labeled 2+ and 2– are connected to the secondary winding.

## Extended Capabilities

### C/C++ Code GenerationGenerate C and C++ code using Simulink® Coder™.

Introduced in R2008a