| 627 | PI control |
| 628 | \end_layout |
| 629 | |
| 630 | \begin_layout Standard |
| 631 | The classical control is based on transformation to |
| 632 | \begin_inset Formula $dq$ |
| 633 | \end_inset |
| 634 | |
| 635 | reference frame: |
| 636 | \begin_inset Formula \begin{eqnarray*} |
| 637 | i_{d} & = & i_{\alpha}\cos(\vartheta)+i_{\beta}\sin(\vartheta),\\ |
| 638 | i_{q} & = & i_{\beta}\cos(\vartheta)-i_{\beta}\sin(\vartheta).\end{eqnarray*} |
| 639 | |
| 640 | \end_inset |
| 641 | |
| 642 | Desired |
| 643 | \begin_inset Formula $i_{q}$ |
| 644 | \end_inset |
| 645 | |
| 646 | current, |
| 647 | \begin_inset Formula $\overline{i}_{q}$ |
| 648 | \end_inset |
| 649 | |
| 650 | , is derived using PI controller |
| 651 | \begin_inset Formula \[ |
| 652 | \overline{i}_{q}=PI(\overline{\omega}-\omega,P_{i},I_{i}).\] |
| 653 | |
| 654 | \end_inset |
| 655 | |
| 656 | This current needs to be achieved through voltages |
| 657 | \begin_inset Formula $u_{d},u_{q}$ |
| 658 | \end_inset |
| 659 | |
| 660 | which are again obtained from a PI controller |
| 661 | \begin_inset Formula \begin{eqnarray*} |
| 662 | u_{d} & = & PI(-i_{d},P_{u},I_{u}),\\ |
| 663 | u_{q} & = & PI(\overline{i}_{q}-i_{q},P_{u},I_{u}).\end{eqnarray*} |
| 664 | |
| 665 | \end_inset |
| 666 | |
| 667 | These are compensated (for some reason) as follows: |
| 668 | \begin_inset Formula \begin{eqnarray*} |
| 669 | u_{d} & = & u_{d}-L_{S}\omega\overline{i}_{q},\\ |
| 670 | u_{q} & = & u_{q}+\Psi_{pm}\omega.\end{eqnarray*} |
| 671 | |
| 672 | \end_inset |
| 673 | |
| 674 | Conversion to |
| 675 | \begin_inset Formula $u_{\alpha},u_{\beta}$ |
| 676 | \end_inset |
| 677 | |
| 678 | is |
| 679 | \begin_inset Formula \begin{align*} |
| 680 | u_{\alpha} & =|U|\cos(\phi), & u_{\beta} & =|U|\sin(\phi)\\ |
| 681 | |U| & =\sqrt{u_{d}^{2}+u_{q}^{2}}, & \phi & =\begin{cases} |
| 682 | \arctan(\frac{u_{q}}{u_{d}})+\vartheta & u_{d}\ge0\\ |
| 683 | \arctan(\frac{u_{q}}{u_{d}})+\pi+\vartheta & u_{d}<0\end{cases}\end{align*} |
| 684 | |
| 685 | \end_inset |
| 686 | |
| 687 | |
| 688 | \end_layout |
| 689 | |
| 690 | \begin_layout Standard |
| 691 | PI controller is defined as follows: |
| 692 | \begin_inset Formula \begin{eqnarray*} |
| 693 | x & = & PI(\epsilon,P,I)\\ |
| 694 | & = & P\epsilon+I(S_{t-1}+\epsilon)\\ |
| 695 | S_{t} & = & S_{t-1}+\epsilon\end{eqnarray*} |
| 696 | |
| 697 | \end_inset |
| 698 | |
| 699 | Constants for the system: |
| 700 | \begin_inset Formula \[ |
| 701 | P_{i}=3,\,\, I_{i}=0.00375,\,\, P_{u}=20,\,\, I_{u}=0.5.\] |
| 702 | |
| 703 | \end_inset |
| 704 | |
| 705 | The requested values for |
| 706 | \begin_inset Formula $\omega$ |
| 707 | \end_inset |
| 708 | |
| 709 | should be kept in interval |
| 710 | \begin_inset Formula $<-30,30>$ |
| 711 | \end_inset |
| 712 | |
| 713 | . |
| 714 | \end_layout |
| 715 | |
| 716 | \begin_layout Subsection |