Engee documentation

shuntRLC

Creates a two-port parallel RLC circuit.

Library

EngeeRF

Description

Use the function shuntRLC to create a circuit consisting of a resistor, an inductor, and a capacitor connected in parallel. The object of the parallel RLC circuit is a two-port network, as shown in this diagram.

shuntrlc

Syntax

Function call

  • rlc = shuntRLC() — creates a parallel RLC circuit object, the properties of which are set by default.

  • rlc = shuntRLC(Name=Value) — sets properties specified by one or more name-value arguments. Unspecified properties retain their default values.

Arguments

Name-value input arguments

Specify optional argument pairs as Name=Value, where Name — the name of the argument, and Value — the appropriate value.

Example: rlc = shuntRLC(R = 80) creates a parallel RLC circuit object with resistance 80 Om. You can specify multiple name-value pairs.

# Name is the name of the parallel RLC circuit

+ "ShuntRLC" (by default) | line

Details

The name of the parallel RLC circuit, set as a string.

Типы данных

String

# R is the resistance value, ohms

+ Inf (by default) | scalar

Details

The resistance value of a parallel RLC circuit, set as a positive scalar in ohms.

Типы данных

Float64

# L is the value of the inductance, Gn

+ Inf (by default) | scalar

Details

The value of the inductance of the parallel RLC circuit, set as a positive scalar in Gn.

Типы данных

Float64

# C — capacity value, F

+ 0 (by default) | scalar

Details

The value of the capacity of the parallel RLC circuit, set as a positive scalar in F.

Типы данных

Float64

# NumPorts — number of input and output ports

+ 2 (by default) | scalar

Details

The number of input and output ports of a parallel RLC circuit, set as a positive scalar.

This argument is read-only.
Типы данных

Int64

# Terminals — terminals of the parallel RLC circuit

+ ("p1+", "p2+", "p1−", "p2−") (by default) | tuple of strings

Details

Terminals of a parallel RLC circuit, specified as a tuple of strings from 4 elements.

This argument is read-only.

Output arguments

# rlc is an object of a parallel RLC circuit

+ object

Details

A parallel RLC circuit object containing the following properties:

  • Name — the chain name in the form of a string, for example "ShuntRLC";

  • R — circuit resistance;

  • L — circuit inductance;

  • C — circuit capacity;

  • NumPorts — number of ports;

  • Terminals — terminal names in the form of a tuple of strings.

Examples

S-parameters of the parallel RLC circuit

Details

Let’s create a parallel RLC circuit with the following properties:

  • Resistance: 60 Om;

  • Inductance: 1 mGn;

  • Container: 50 The International Film Festival.

using EngeeRF

rlc = shuntRLC(R = 60, L = 1e-3, C = 50e-6)

println("Name: ", rlc.Name,
        "\nR: ", rlc.R,
        "\nL: ", rlc.L,
        "\nC: ", rlc.C)
Name: ShuntRLC
R: 60.0
L: 0.001
C: 5.0e-5

Calculate the S-parameters of the parallel RLC circuit at the frequency 1 GHz.

spar = sparameters(rlc, 1e9)

println("Impedance: ", spar.Impedance,
        "\nFrequencies: ", spar.Frequencies,
        "\nParameters: ", spar.Parameters)
Impedance: 50.0
Frequencies: [1.0e9]
Parameters: ComplexF64[-0.999999999999977 - 1.2732395447357662e-7im 2.2966134958952415e-14 - 1.2732395447357662e-7im; 2.2966134958952415e-14 - 1.2732395447357662e-7im -0.999999999999977 - 1.2732395447357662e-7im;;;]