Salta al contenuto
Note per Studenti Mathematical Models of Electrical Systems Report

Mathematical Models of Electrical Systems

Electrical lumped-parameter systems are the counterpart of the mechanical ones in Mathematical Models of Mechanical SystemsThe lumped elements of mechanical systems (mass, spring, damper and their rotational versions, force and displacement sources, lever and gearbox) and the procedure that turns a free-body diagram into a linear ODE, worked on the mass-spring-damper system.Mathematical Models of Mechanical Systems →; the general framework is in Continuous-Time Modeling of Dynamic SystemsWhy control engineers need a model, white-box versus black-box modeling, the assumptions behind linear time-invariant lumped models, linear ODEs with constant coefficients, and the classification of lumped elements as passive or active.Continuous-Time Modeling of Dynamic Systems →.

Lumped elements in electrical systems

Convention for every element: ii is the current flowing into the element [A], vv is the voltage across the element, with the "+" sign where ii enters [V].

Element Law Parameter
Resistor v=R iv = R\,i RR resistance [Ohm]
Capacitor i=C dvdti = C\,\dfrac{dv}{dt} CC capacitance [F]
Inductor v=L didtv = L\,\dfrac{di}{dt} LL inductance [H]

The resistor is dissipative, the capacitor and the inductor are accumulators (they store energy in the electric and magnetic field respectively).

Sources (active elements)

  • Ideal voltage source: imposes a prescribed voltage independently of the current drawn.
  • Ideal current source: imposes a prescribed current independently of the voltage across it.

Ideal transformer

With primary and secondary windings of N1N_1 and N2N_2 turns, currents i1,i2i_1, i_2 flowing into the element and voltages v1,v2v_1, v_2 (same convention as above):

(v2i2)=(N2N100−N1N2)(v1i1)\begin{pmatrix} v_2 \\ i_2 \end{pmatrix} = \begin{pmatrix} \dfrac{N_2}{N_1} & 0 \\[2mm] 0 & -\dfrac{N_1}{N_2} \end{pmatrix} \begin{pmatrix} v_1 \\ i_1 \end{pmatrix}

The element is lossless: the algebraic sum of the input powers is zero, v1i1+v2i2=0v_1 i_1 + v_2 i_2 = 0. It is the electrical analogue of the lever and of the gearbox.

Derivation of the mathematical model: Kirchhoff's laws

  • Kirchhoff's current law (KCL): the algebraic sum of the currents entering a node is zero: ∑nin=0\sum_n i_n = 0
  • Kirchhoff's voltage law (KVL): the algebraic sum of the voltage drops around a closed loop is zero: ∑nvn=0\sum_n v_n = 0

Together with the law of each element, these give a set of equations in time-domain variables that can be reduced to a single ODE.

Example: series RLC circuit

A voltage source ee drives, in a single loop, a resistor RR, an inductor LL and a capacitor CC; the loop current is ii and the output is the voltage vv across the capacitor.

      R        L
  +--/\/\/---(((((---+------o
  |                  |      
 (e) +        i ->  === C   ^ v
  |                  |      
  +------------------+------o

KVL on the single loop, plus the element laws, with vC=vv_C = v:

{e−vR−vL−vC=0vR=R ivL=L didti=C dvCdt⟹ LC d2vdt2+RC dvdt+v=e \begin{cases} e - v_R - v_L - v_C = 0\\ v_R = R\,i\\ v_L = L\,\dfrac{di}{dt}\\ i = C\,\dfrac{dv_C}{dt} \end{cases} \quad\Longrightarrow\quad \boxed{\,L C\,\frac{d^2 v}{dt^2} + R C\,\frac{dv}{dt} + v = e\,}

Derivation: from i=C v˙i = C\,\dot v we get vR=RC v˙v_R = RC\,\dot v and vL=L ddt(Cv˙)=LC v¨v_L = L\,\dfrac{d}{dt}(C\dot v) = LC\,\ddot v; substituting into the KVL gives e=LC v¨+RC v˙+ve = LC\,\ddot v + RC\,\dot v + v.

Taking vv as the output, the model is a 2nd-order linear ODE with constant coefficients; compare it with the mass-spring-damper mx¨+bx˙+kx=Fm\ddot x + b\dot x + kx = F of Mathematical Models of Mechanical SystemsThe lumped elements of mechanical systems (mass, spring, damper and their rotational versions, force and displacement sources, lever and gearbox) and the procedure that turns a free-body diagram into a linear ODE, worked on the mass-spring-damper system.Mathematical Models of Mechanical Systems → (the two have the same structure). Its step response is studied in Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →.

The same laws in the DC servomotor

The armature circuit of the DC motor in Course Overview and Laboratory SetupOrganisation of the Control Systems Laboratory course (credits, lab types, exam rules, prerequisites) and a preview of the whole model-to-real-system workflow, illustrated on the speed control of a DC servomotor.Course Overview and Laboratory Setup → is a series of the resistance Ra+RsR_a + R_s, the inductance LaL_a and the back-EMF generator ueu_e; KVL gives La diadt+(Ra+Rs) ia=udrv−ueL_a\,\dfrac{di_a}{dt} + (R_a+R_s)\,i_a = u_{drv} - u_e.

Versione ripasso

Convention: ii flows into the element, vv has "+" where ii enters.

Elements: resistor v=Riv=Ri (dissipative); capacitor i=C dvdti=C\,\dfrac{dv}{dt}; inductor v=L didtv=L\,\dfrac{di}{dt} (accumulators). Sources (active): ideal voltage source (prescribed vv), ideal current source (prescribed ii). Ideal transformer (lossless, v1i1+v2i2=0v_1i_1+v_2i_2=0): (v2i2)=(N2N100−N1N2)(v1i1)\begin{pmatrix} v_2\\ i_2\end{pmatrix}=\begin{pmatrix}\frac{N_2}{N_1}&0\\0&-\frac{N_1}{N_2}\end{pmatrix}\begin{pmatrix} v_1\\ i_1\end{pmatrix}

Kirchhoff: KCL ∑nin=0\sum_n i_n=0 at a node; KVL ∑nvn=0\sum_n v_n=0 around a loop.

Series RLC (source ee, output v=vCv=v_C): e−vR−vL−vC=0e-v_R-v_L-v_C=0, vR=Riv_R=Ri, vL=L i˙v_L=L\,\dot i, i=Cv˙Ci=C\dot v_C give LC v¨+RC v˙+v=eLC\,\ddot v+RC\,\dot v+v=e a 2nd-order linear ODE with constant coefficients, same form as the mass-spring-damper.

Typical mistake: wrong sign convention for vv and ii (the "+" sign is where the current enters).

Teoria collegata