Engee documentation

inductor

Creates an inductor object.

Library

EngeeRF

Syntax

Function call

  • lobj = inductor(lvalue) — creates an inductor object lobj with inductance lvalue and by default name.

Arguments

Input arguments

# lvalue — inductance, Gn

+ real scalar

Details

The inductance in Gn, given as a real scalar.

# lname is the name of the inductor

+ "L" (by default) | character vector

Details

The name of the inductor, given as a vector of symbols.

Output arguments

# lobj — inductor object

+ scalar descriptor object

Details

The inductor object. The inductor object contains the following properties:

  • Inductance — inductance in Gn in the form of a real scalar, for example 1e-9.

  • Name — the name of the inductor in the form of a character vector, for example "L2uf".

  • Terminals — inductor terminals in the form of a vector of cells, for example ("p", "n").

  • ParentPath — the full path to the circuit to which the inductor object belongs, in the form of a character vector. This path appears only after adding an inductor to the circuit. For example "example".

  • ParentNodes — nodes of the parent circuit to which the inductor terminals are connected, in the form of a vector of integers. This property appears only after adding an inductor to the circuit. For example [1, 2].

Examples

Creating an inductor

Details

Let’s create an inductor and derive its properties.

using EngeeRF
hL1 = inductor(3e-9)
println(hL1)
inductor(Terminals = ("p", "n"), Name = "L", Inductance = 3.0e-9)

Adding an inductor to the circuit

Details

Add an inductor to the circuit and derive its properties.

using EngeeRF

hL2 = inductor(3e-6,"L2uf")
hckt2 = circuit("example")
add(hckt2,[1 2],hL2)
setports(hckt2, [1 0],[2 0])
println(hL2)
inductor(ParentPath = "example", Terminals = ("p", "n"), Name = "L2uf", ParentPath = "example", ParentNodes = [1, 2], Inductance = 3.0e-6)