Wednesday, February 3, 2016

Low voltage ride through

Low voltage ride through

In electric power systems, low-voltage ride through (LVRT), or fault ride through (FRT), sometimes under-voltage ride through (UVRT), is the capability of electric generators to stay connected in short periods of lower electric network voltage (cf. voltage dip). It is needed at distribution level (wind parks, PV systems, distributed cogeneration, etc.) to avoid that a short circuit on HV or EHV level will lead to a wide-spread loss of generation. Similar requirements for critical loads such as computer systems and industrial processes are often handled through the use of an uninterruptible power supply (UPS) or capacitor bank to supply make-up power during these events.

General concept
Many generator designs use electric current flowing through windings to produce the magnetic field on which the motor or generator operates. This is in contrast to designs that use permanent magnets to generate this field instead. Such devices may have a minimum working voltage, below which the device does not work correctly, or does so at greatly reduced efficiency. Some will cut themselves out of the circuit when these conditions apply. This effect is more severe in doubly-fed induction generators (DFIG), which have two sets of powered magnetic windings, than in squirrel-cage induction generators which have only one. Synchronous generators may slip and become unstable, if the voltage of the stator winding goes down below a certain threshold.
Risk of chain reaction
In a grid containing many distributed generators subject to a low-voltage disconnection, it is possible to cause a chain reaction that takes other generators offline as well. This can occur in the event of a voltage dip that causes one of the generators to disconnect from the grid. As voltage dips are often caused by too little generation for the load in a distribution grid, removing generation can cause the voltage to drop further. This may bring the voltage down enough to cause another generator to trip, lower the voltage even further, and may cause a cascading failure.
Ride through systems
Modern large-scale wind turbines, typically 1 MW and larger, are normally required to include systems that allow them to operate through such an event, and thereby “ride through” the low voltage. Similar requirements are now becoming common on large solar power installations that likewise might cause instability in the event of a disconnect. Depending on the application the device may, during and after the dip, be required to:
disconnect temporarily from the grid, but reconnect and continue operation after the dip
stay operational and not disconnect from the grid
stay connected and support the grid with reactive power (defined as the reactive current of the positive sequence of the fundamental)
Standards
A variety of standards exist and generally vary across jurisdictions. Examples of the such grid codes are the German BDEW grid code and its supplements 2, 3, and 4 as well as the National Grid Code in UK.
Testing
Testing of the devices with less than 16 Amp rated current is described in the standard IEC 61000-4-11 and for higher current devices in IEC 61000-4-34. For wind turbines the LVRT testing is described in the standard IEC 61400-21 (2nd edition August 2008). More detailed testing procedures are stated in the German guideline FGW TR3 (Rev.22).

Anti Islanding Protection

What is Anti-Islanding?

Power lines and solar panels


Electric utility companies refer to residential grid-tie solar power arrays as distributed generation (DG) generators. They use this term because your solar panels are producing and distributing electrical power back into our utility grid. 
Islanding refers to the condition of a DG generator that continues to feed the circuit with power, even after power from the electric utility grid has been cut off. Islanding can pose a dangerous threat to utility workers, who may not realize that a circuit is still "live" while attempting to work on the line.
Distributed generators must detect islanding and immediately stop feeding the utility lines with power. This is known as anti-islanding. A grid-tied solar power system is required by law to have a gridtie inverter with an anti-islanding function, which senses when a power outage occurs and shuts itself off. 


One common misconception is that a grid tied system will continue to generate power during a blackout. Unless there is abattery back-up system, the gridtie solar system will not produce power when the grid is down.
The common example of islanding is a grid supply line that has solar panels attached to it. In the case of a blackout, the solar panels will continue to deliver power as long as irradiance is sufficient. In this case, the supply line becomes an "island" with power surrounded by a "sea" of unpowered lines. For this reason, solar inverters that are designed to supply power to the grid are generally required to have some sort of automatic anti-islanding circuitry in them.

In intentional islanding, the generator disconnects from the grid, and forces the distributed generator to power the local circuit. This is often used as a power backup system for buildings that normally sell their excess power to the grid.

Monday, February 1, 2016

Direct–quadrature–zero transformation

Direct–quadrature–zero transformation



In
 electrical engineering, direct–quadrature–zero (or dq0 or dqo) transformation or zero–direct–quadrature (or 0dq or odq) transformation is a mathematical transformation that rotates the reference frame of three-phase systems in an effort to simplify the analysis of three-phase circuits. The dqo transform presented here is exceedingly similar to the transform first proposed in 1929 by Robert H. Park.[1] In fact, the dqo transform is often referred to as Park’s transformation. In the case of balanced three-phase circuits, application of the dqo transform reduces the three AC quantities to two DC quantities. Simplified calculations can then be carried out on these DC quantities before performing the inverse transform to recover the actual three-phase AC results. It is often used in order to simplify the analysis of three-phase synchronous machines or to simplify calculations for the control of three-phase inverters. In analysis of three-phase synchronous machines the transformation transfers three-phase stator and rotor quantities into a single rotating reference frame to eliminate the effect of time varying inductances.

Definition

A power-invariant, right-handed dqo transform applied to any three-phase quantities (e.g. voltages, currents, flux linkages, etc.) is shown below in matrix form:[2]
x_{dqo} = Kx_{abc} = \sqrt{\frac{2}{3}}\begin{bmatrix} \cos(\theta)&\cos(\theta - \frac{2\pi}{3})&\cos(\theta + \frac{2\pi}{3}) \\
 - \sin(\theta)& - \sin(\theta - \frac{2\pi}{3})& - \sin(\theta + \frac{2\pi}{3}) \\
\frac{\sqrt{2}}{2}&\frac{\sqrt{2}}{2}&\frac{\sqrt{2}}{2} \end{bmatrix}\cdot\begin{bmatrix}x_a\\x_b\\x_c\end{bmatrix}
The inverse transform is:
x_{abc} = K^{-1}x_{dqo} = \sqrt{\frac{2}{3}}\begin{bmatrix}\cos(\theta)& - \sin(\theta)&\frac{\sqrt{2}}{2}\\
\cos(\theta - \frac{2\pi}{3})& - \sin(\theta - \frac{2\pi}{3})&\frac{\sqrt{2}}{2}\\
\cos(\theta + \frac{2\pi}{3})& - \sin(\theta + \frac{2\pi}{3})&\frac{\sqrt{2}}{2}\end{bmatrix} \cdot
\begin{bmatrix}x_d\\x_q\\x_o\end{bmatrix}

Geometric Interpretation

The dqo transformation is two sets of axis rotations in sequence. We can begin with a 3D space where ab, and c are orthogonal axes.
ABC axes in 3D space without rotation applied
If we rotate about the a axis by -45°, we get the following rotation matrix:
\begin{bmatrix}1&0&0\\
0& \cos(- \pi/4)& \sin(- \pi/4)\\
0& -\sin(- \pi/4)& \cos(- \pi/4)\end{bmatrix}
,
which resolves to
\begin{bmatrix}1&0&0\\
0& \frac{1}{\sqrt{2}}& \frac{-1}{\sqrt{2}}\\
0& \frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}}\end{bmatrix}
.
With this rotation, the axes look like
ABC axes in 3D space rotated about the A axis
Then we can rotate about the new b axis by about 35.26° (\phi = \cos^{-1}{\sqrt{\frac{2}{3}}}):
\begin{bmatrix}\cos(\phi)&0&-\sin(\phi)\\
0& 1& 0\\
\sin(\phi)& 0& \cos(\phi)\end{bmatrix}
,
which resolves to
\begin{bmatrix}\frac{\sqrt{2}}{\sqrt{3}}& 0& \frac{-1}{\sqrt{3}}\\
0& 1& 0\\
\frac{1}{\sqrt{3}}& 0& \frac{\sqrt{2}}{\sqrt{3}}\end{bmatrix}
.
ABC axes in 3D space rotated about the B axis
When these two matrices are multiplied, we get the Clarke transformation matrix C:
\sqrt{\frac{2}{3}} \begin{bmatrix} 1&\frac{-1}{2}&\frac{-1}{2} \\
0& \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2}\\
\frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}} \end{bmatrix}
=
\begin{bmatrix}\frac{\sqrt{2}}{\sqrt{3}}& 0& \frac{-1}{\sqrt{3}}\\
0& 1& 0\\
\frac{1}{\sqrt{3}}& 0& \frac{\sqrt{2}}{\sqrt{3}}\end{bmatrix}
\cdot
\begin{bmatrix}1&0&0\\
0& \frac{1}{\sqrt{2}}& \frac{-1}{\sqrt{2}}\\
0& \frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}}\end{bmatrix}
ABC axes in 3D space rotated about the A and B axes
This is the first of the two sets of axis rotations. At this point, we can relabel the rotated ab, and c axes as αβ, and z. This first set of rotations places the z axis an equal distance away from all three of the original ab, and c axes. In a balanced system, the values on these three axes would always balance each other in such a way that the z axis value would be zero. This is one of the core values of the dqo transformation; it can reduce the number relevant variables in the system.
The second set of axis rotations is very simple. In electric systems, very often the ab, and c values are oscillating in such a way that the net vector is spinning. In a balanced system, the vector is spinning about the z axis. Very often, it is helpful to rotate the reference frame such that the majority of the changes in theabc values, due to this spinning, are canceled out and any finer variations become more obvious. So, in addition to the Clarke transform, the following axis rotation is applied about the z axis:
\begin{bmatrix}\cos(\theta)&\sin(\theta)&0\\
-\sin(\theta)& \cos(\theta)& 0\\
0& 0& 1\end{bmatrix}
.
Multiplying this matrix by the Clarke matrix results in the dqo transform:
\sqrt{\frac{2}{3}}\begin{bmatrix} \cos(\theta)&\cos(\theta - \frac{2\pi}{3})&\cos(\theta + \frac{2\pi}{3}) \\
 - \sin(\theta)& - \sin(\theta - \frac{2\pi}{3})& - \sin(\theta + \frac{2\pi}{3}) \\
\frac{\sqrt{2}}{2}&\frac{\sqrt{2}}{2}&\frac{\sqrt{2}}{2} \end{bmatrix}
=
\begin{bmatrix}\cos(\theta)&\sin(\theta)&0\\
-\sin(\theta)& \cos(\theta)& 0\\
0& 0& 1\end{bmatrix}
\cdot
\sqrt{\frac{2}{3}} \begin{bmatrix} 1&\frac{-1}{2}&\frac{-1}{2} \\
0& \frac{\sqrt{3}}{2} & -\frac{\sqrt{3}}{2}\\
\frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}}& \frac{1}{\sqrt{2}} \end{bmatrix}
.
The dqo transformation can be thought of in geometric terms as the projection of the three separate sinusoidal phase quantities onto two axes rotating with the same angular velocity as the sinusoidal phase quantities. The two axes are called the direct, or d, axis; and the quadrature or q, axis; that is, with the q-axis being at an angle of 90 degrees from the direct axis.

Shown above is the dqo transform as applied to the stator of a synchronous machine. There are three windings separated by 120 physical degrees. The three phase currents are equal in magnitude and are separated from one another by 120 electrical degrees. The three phase currents lag their corresponding phase voltages by \delta. The d-q axis is shown rotating with angular velocity equal to \omega, the same angular velocity as the phase voltages and currents. The d axis makes an angle \theta = \omega t with the A winding which has been chosen as the reference.The currents I_d and I_q are constant DC quantities.

Comparison with other transforms

Park's transformation

The transformation originally proposed by Park differs slightly from the one given above. Park's transformation is:
P= \frac{2}{3}\begin{bmatrix} \cos(\theta)&\cos(\theta - \frac{2\pi}{3})&\cos(\theta + \frac{2\pi}{3}) \\
-\sin(\theta)&-\sin(\theta - \frac{2\pi}{3})&-\sin(\theta + \frac{2\pi}{3}) \\
\frac{1}{2}&\frac{1}{2}&\frac{1}{2} \end{bmatrix}
and
P^{-1} = \begin{bmatrix}\cos(\theta)& -\sin(\theta)&1\\
\cos(\theta - \frac{2\pi}{3})& -\sin(\theta - \frac{2\pi}{3})&1\\
\cos(\theta + \frac{2\pi}{3})& -\sin(\theta + \frac{2\pi}{3})&1\end{bmatrix}
Although useful, Park's transformation is not power invariant whereas the dqo transformation defined above is.[2]:88 Park's transformation gives the same zero component as the method of symmetrical components. The dqo transform shown above gives a zero component which is larger than that of Park or symmetrical components by a factor of \sqrt{3}.

αβγ transform

Main article: αβγ transform
The dqo transform is conceptually similar to the αβγ transform. Whereas the dqo transform is the projection of the phase quantities onto a rotating two-axis reference frame, the αβγ transform can be thought of as the projection of the phase quantities onto a stationary two-axis reference frame.
REF:From Wikipedia, the free encyclopedia

PID controller theory

PID controller theory

This section describes the parallel or non-interacting form of the PID controller. For other forms please see the section Alternative nomenclature and PID forms.
The PID control scheme is named after its three correcting terms, whose sum constitutes the manipulated variable (MV). The proportional, integral, and derivative terms are summed to calculate the output of the PID controller. Defining u(t) as the controller output, the final form of the PID algorithm is:
\mathrm{u}(t)=\mathrm{MV}(t)=K_p{e(t)} + K_{i}\int_{0}^{t}{e(\tau)}\,{d\tau} + K_{d}\frac{de(t)}{dt}
where
K_p: Proportional gain, a tuning parameter
K_i: Integral gain, a tuning parameter
K_d: Derivative gain, a tuning parameter
e: Error  = SP - PV
SP: Set Point
PV: Process Variable
t: Time or instantaneous time (the present)
\tau: Variable of integration; takes on values from time 0 to the present t.
Equivalently, the transfer function in the Laplace Domain of the PID controller is
L(s)=K_p + K_{i}/s + K_{d}s
where
s: complex number frequency

Proportional term


Plot of PV vs time, for three values of Kp (Ki and Kdheld constant)
The proportional term produces an output value that is proportional to the current error value. The proportional response can be adjusted by multiplying the error by a constant Kp, called the proportional gain constant.
The proportional term is given by:
P_{\mathrm{out}}=K_p\,{e(t)}
A high proportional gain results in a large change in the output for a given change in the error. If the proportional gain is too high, the system can become unstable (see the section on loop tuning). In contrast, a small gain results in a small output response to a large input error, and a less responsive or less sensitive controller. If the proportional gain is too low, the control action may be too small when responding to system disturbances. Tuning theory and industrial practice indicate that the proportional term should contribute the bulk of the output change.[citation needed]
In a real system, proportional-only control will leave an offset error in the final steady-state condition. Integral action is required to eliminate this error.

Integral term


Plot of PV vs time, for three values of Ki (Kp and Kdheld constant)
The contribution from the integral term is proportional to both the magnitude of the error and the duration of the error. The integral in a PID controller is the sum of the instantaneous error over time and gives the accumulated offset that should have been corrected previously. The accumulated error is then multiplied by the integral gain (K_i) and added to the controller output.
The integral term is given by:
I_{\mathrm{out}}=K_{i}\int_{0}^{t}{e(\tau)}\,{d\tau}
The integral term accelerates the movement of the process towards setpoint and eliminates the residual steady-state error that occurs with a pure proportional controller. However, since the integral term responds to accumulated errors from the past, it can cause the present value to overshoot the setpoint value (see the section on loop tuning).

Derivative term


Plot of PV vs time, for three values of Kd (Kp and Kiheld constant)
The derivative of the process error is calculated by determining the slope of the error over time and multiplying this rate of change by the derivative gain Kd. The magnitude of the contribution of the derivative term to the overall control action is termed the derivative gain, Kd.
The derivative term is given by:
D_{\mathrm{out}}=K_d\frac{de(t)}{dt}
Derivative action predicts system behavior and thus improves settling time and stability of the system.[12][13] An ideal derivative is not causal, so that implementations of PID controllers include an additional low pass filtering for the derivative term, to limit the high frequency gain and noise.[14]Derivative action is seldom used in practice though - by one estimate in only 25% of deployed controllers[14] - because of its variable impact on system stability in real-world applications.[14]

Loop tuning

Tuning a control loop is the adjustment of its control parameters (proportional band/gain, integral gain/reset, derivative gain/rate) to the optimum values for the desired control response. Stability (no unbounded oscillation) is a basic requirement, but beyond that, different systems have different behavior, different applications have different requirements, and requirements may conflict with one another.
PID tuning is a difficult problem, even though there are only three parameters and in principle is simple to describe, because it must satisfy complex criteria within the limitations of PID control. There are accordingly various methods for loop tuning, and more sophisticated techniques are the subject of patents; this section describes some traditional manual methods for loop tuning.
Designing and tuning a PID controller appears to be conceptually intuitive, but can be hard in practice, if multiple (and often conflicting) objectives such as short transient and high stability are to be achieved. PID controllers often provide acceptable control using default tunings, but performance can generally be improved by careful tuning, and performance may be unacceptable with poor tuning. Usually, initial designs need to be adjusted repeatedly through computer simulations until the closed-loop system performs or compromises as desired.
Some processes have a degree of nonlinearity and so parameters that work well at full-load conditions don't work when the process is starting up from no-load; this can be corrected by gain scheduling (using different parameters in different operating regions).

Stability

If the PID controller parameters (the gains of the proportional, integral and derivative terms) are chosen incorrectly, the controlled process input can be unstable, i.e., its output diverges, with or without oscillation, and is limited only by saturation or mechanical breakage. Instability is caused by excess gain, particularly in the presence of significant lag.
Generally, stabilization of response is required and the process must not oscillate for any combination of process conditions and setpoints, though sometimesmarginal stability (bounded oscillation) is acceptable or desired.[citation needed]
Mathematically, the origins of instability can be seen in the Laplace domain.[15] The total loop transfer function is:
H(s)=\frac{K(s)G(s)}{1+K(s)G(s)}
where
K(s): PID transfer function
G(s): Plant transfer function
The system is called unstable where the closed loop transfer function diverges for some s.[15] This happens for situations where K(s)G(s)=-1. Typically, this happens when |K(s)G(s)|=1 with a 180 degree phase shift. Stability is guaranteed when K(s)G(s)<1 for frequencies that suffer high phase shifts. A more general formalism of this effect is known as the Nyquist stability criterion.

Optimum behavior

The optimum behavior on a process change or setpoint change varies depending on the application.
Two basic requirements are regulation (disturbance rejection – staying at a given setpoint) and command tracking (implementing setpoint changes) – these refer to how well the controlled variable tracks the desired value. Specific criteria for command tracking include rise time and settling time. Some processes must not allow an overshoot of the process variable beyond the setpoint if, for example, this would be unsafe. Other processes must minimize the energy expended in reaching a new setpoint.
REF:wikipedia

What is the difference between Socket and Port?

Socket Sockets allow communication between two different processes on the same or different machines. To be more precise, it's a way to ...