seriesRLC
Creates a two-port serial RLC circuit.
| Library |
|
Description
Use the function seriesRLC to create a circuit consisting of a series-connected resistor, inductor and capacitor. The serial RLC circuit object is a two-port network, as shown in this diagram.

Syntax
Function call
-
rlc = seriesRLC()— creates a serial RLC circuit object, the properties of which are set by default.
-
rlc = seriesRLC(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 = seriesRLC(R = 80) creates a serial RLC circuit object with a resistance 80 Om. You can specify multiple name-value pairs.
# Name is the name of the serial RLC circuit
+
"SeriesRLC" (by default) | line
Details
The name of the serial RLC circuit, set as a string.
| Типы данных |
|
# R is the resistance value, ohms
+
0 (by default) | scalar
Details
The resistance value of a serial RLC circuit, set as a positive scalar in ohms.
| Типы данных |
|
# L is the value of the inductance, Gn
+
0 (by default) | scalar
Details
The value of the inductance of a serial RLC circuit, set as a positive scalar in the Gn.
| Типы данных |
|
# C — capacity value, F
+
Inf (by default) | scalar
Details
The value of the capacity of the serial RLC circuit, set as a positive scalar in F.
| Типы данных |
|
# NumPorts — number of input and output ports
+
2 (by default) | scalar
Details
The number of input and output ports of the serial RLC circuit, set as a positive scalar.
| This argument is read-only. |
| Типы данных |
|
# Terminals — terminals of the serial RLC circuit
+
("p1+", "p2+", "p1−", "p2−") (by default) | tuple of strings
Details
Terminals of a serial RLC circuit, specified as a tuple of strings from 4 elements.
| This argument is read-only. |
Output arguments
# rlc is an object of a sequential RLC circuit
+
object
Details
A sequential RLC circuit object containing the following properties:
-
Name— the chain name in the form of a string, for example"SeriesRLC"; -
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 serial RLC circuit
Details
Let’s create a sequential RLC circuit with the following properties:
-
Resistance:
2cOm; -
Inductance:
40mGn; -
Container:
1The International Film Festival.
using EngeeRF
rlc = seriesRLC(R = 2e3, L = 40e-3, C = 1e-6)
println("Name: ", rlc.Name,
"\nR: ", rlc.R,
"\nL: ", rlc.L,
"\nC: ", rlc.C)
Name: SeriesRLC
R: 2000.0
L: 0.04
C: 1.0e-6
Calculate the S-parameters of the serial 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.9999999999966754 + 3.978873577022118e-7im 3.3246013380363064e-12 - 3.9788735770221114e-7im; 3.3246013380363064e-12 - 3.9788735770221114e-7im 0.9999999999966754 + 3.978873577022118e-7im;;;]