In [1]:
%pdb
In [2]:
from lcapy import Circuit
cct = Circuit(netlist=
"""
V 1 0 {v(t)}; down
R1 1 2; right
L 2 3; right=1.5, i={i_L}
R2 3 0_3; down=1.5, i={i_{R2}}, v={v_{R2}}
W 0 0_3; right
W 3 3_a; right
C 3_a 0_4; down, i={i_C}, v={v_C}
W 0_3 0_4; right
""")
cct.draw(svg=True)
In [3]:
ss=cct.ss
In [4]:
ss.x
Out[4]:
In [5]:
ss.u
Out[5]:
In [6]:
ss.y
Out[6]:
In [7]:
ss.state_equations()
Out[7]:
In [8]:
ss.output_equations()
Out[8]:
In [9]:
ss.P
Out[9]:
In [10]:
ss.eigenvalues
Out[10]:
In [11]:
ss.M
Out[11]:
In [12]:
ss.Phi
Out[12]:
In [13]:
ss.G
Out[13]: