## 1. Introduction

The main objective of the chapter is the development of technological knowledge, based on Matlab/Simulink programming language, related to grid connected power systems for energy production by using Renewable Energy Sources (RES), as clean and efficient sources for meeting both the environment requirements and the technical necessities of the grid connected power inverters. Another objective is to promote the knowledge regarding RES; consequently, it is necessary to bring contribution to the development of some technologies that allow the integration of RES in a power inverter with high energy quality and security. By using these energetic systems, the user is not only a consumer, but also a producer of energy. This fact will have a direct impact from technical, economic and social point of view, and it will contribute to the increasing of life quality.

The chapter intends to integrate itself into the general frame of the EU energy policies by imposing the global objectives of reducing the impact upon the environment, and promoting the RES for the energy production. At the same time, the chapter is strategically oriented towards the compatibility with the priority requirements from some European programmes: the wide-spread implementation of the distributed energy sources, of the energy storage technologies and of the grid connected systems.

The chapter strategy follows two directions: the first, is thedevelopment of knowledge (a study and implementation of a high performance grid-power inverter; the fuel cells technology as RES; the control methods; specific modelling and simulation methods); the second focuses upon the applicative research (a real time implementation with dSPACE platform is provided).

The interdisciplinarity of the chapter consists of using specific knowledge from the fields of: energy conversion, power converters, Matlab/Simulink simulation software, real time implementation based on dSPACE platform, electrotechnics, and advanced control techniques.

## 2. The grid power converter

The increased power demand, the depletion of the fossil fuel resources and the growth of the environmental pollution have led the world to think seriously of other alternative sources of energy: solar, wind, biogas/biomass, tidal, geothermal, fuel cell, hydrogen energy, gas micro turbines and small hydropower farms.

The number of distributed generation (DG) units, including both renewable and nonrenewable sources, for small rural communities not connected to the grid and for small power resources (up to 1000 kW) connected to the utility network has grown in the last years. There has been an increase in the number of sources that are natural DC sources, for instance fuel cells and photovoltaic arrays, or whose AC frequency is either not constant or is much higher than the grid frequency, for instance micro gas-turbines. These generators necessarily require an DC/AC converter to be connected to the grid. Although some generators can be connected directly to the electric power grid, such as wind power driven asynchronous induction generators, there is a trend to adopt power electronics based interfaces which convert the power firstly to DC and then use an inverter to deliver the power to the 50Hz AC grid.

At the international level, SMA Technologies AG (www.sma.de) promotes the innovative technology based on the renewable sources. The following results can be mentioned: the stand-alone or grid connected systems by using either a single type of source (Sunny Boy 5000 Multi-String inverter based on the modular concept, Hydro-Boy and Windy Boy) or combined (Sunny Island) including the interconnection of wind turbines, photovoltaics, micro-hydro and diesel generators. It is well-known that for systems efficiency increasing, the inverter is the answer of the problem. With this respect, Sunways (www.sunways.de) adopted the HERIC concept (from the Fraunhofer Solar and Energetic Systems Institute), by using a tranformerless inverter, obtaining a 97,33% high efficiency of the inverter for low powers (www.ise.fraunhofer.de). The Master-Slave and Team concepts are embedded in SunnyTeam and Fronius inverters in order to increase the efficiency in the partial load conditions. At world level, the implementation of energetic policies (with respect to renewable sources) has been carried out by performing systems based on a single renewable source. There are such examples in countries all over the world: in Europe, Dewind, Vestas, Enercon, Fronius International GmbH, SMA Technologies AG; Renco SpA, Ansaldo Fuel Cells SpA; in North America-Nyserda, Beacon Power, Magnetek Inc., Sustainable Energy Technology, Logan Energy Corp., IdaTech; Australia-Conergy Pty Ltd, Rainbow Power Company Ltd; and Asia-Nitol Solar, Shenzen Xinhonghua Solar-Energy Co Ltd).

In EU, the implementation of the energetic policies is based upon a legal document, Norm 2001/77/EC regarding the promotion of the electrical energy produced from renewable sources on the Energy Single Market. The objectives of the Norm provide that till 2020, a contribution of 20% of the total energy consumption shall be covered by energy produced from renewable sources. The monitoring of this Norm implementation is managed by the EU Energy General Directorship which presents periodical reports on the European researching and development stages. Considering these reports, under the conditions of implementing the DER concept (Distributed/Descentralized Energy Resources), it is obvious that the futurer research activities will be based upon the hybrid systems (wind-photovoltaic, wind-biomass, wind-diesel generator) having the target of the energetic security by removing the disadvantages of using a single renewable source.

The consolidation of the objectives proposed by Norm 2001/77/EC and the extension in more geographical areas are possible only by using hybrid systems.

The EU gives a great importance to the improvement of the energy efficiency and to the promotion of the renewable sources. Related to the above mentioned issues, the objectives of the EU are to produce at least 20% ofthe gross energy consumption from renewable sources until 2020 (COM, 2006) and to increase the energy efficiency by 20% until 2020 (EREC, 2011). As far as the energy efficiency is concerned, an EU norm aims at a reduction of 9% of the energy losses until 2020 (EREC, 2008)

### 2.1. A generic topology of the RES integration

In the context of the international scientific studies related to the development of new alternative solutions for electrical energy production by using renewable energy sources (RES), the aim of this chapter is to contribute to these studies by evaluating and working out the possible concepts for stand-alone and grid connected operating interface of these hybrid systems and the efficient and ecologic technologies to ensure an optimal use of the sources (solar energy, wind energy, hydrogen energy by using fuel cells, hydro-energy, biomass) in industry and residential buildings.The battery and the fuel cells are also meant to be reserve sources (which ensure the additional energy requirements of the consumers and the supply ofboth the residential critical loads and the critical loads of the hybrid system-auxiliary circuits for fuel cell start-up and operating), increasing the safety of the system. The fuel cell integration is provided by using a unidirectional DC/DC converter (to obtain regulated high voltage DC), an inverter and a filter in order to accommodate the DC voltage to the required AC voltage (single phase or three phase). The bidirectional DC/DC converter (double arrow, Fig.1) is used in order to charge/discharge the batteries (placed in order to increase the energy supply security and to improve load dynamics). The unidirectional DC-DC converter prevents the negative current going into the fuel cell stack. Due to the negative current, the cell reversal could occur and damage the fuel cell stack. The ripple current seen by the fuel cell stack due to the switching of the boost converter (unidirectional DC/DC converter) has to be low.

### 2.2. Three-phase versus single phase

Firstly,the problem of choosing the number of phase for the front end converter is a matter of power. In this case, the three-phase line should be used for a 37kVA power converter.

Secondly, in case of using balanced three phase AC loads, the possibility that low frequency components to occur in the fuel cell input current is reduced.

### 2.3. System description

The proposed way of the efficient integration of RES is illustrated in Fig.1. With this respect only one inverter is used in DC-AC conversion for interfacing the stand-alone or grid-connected consumer (Gaiceanu, *et al.,* 2007b). By its control, the inverter can ensure the efficient operation and the accomplishment of the energy quality requirements related to the harmonics level. The hybrid system can ensure two operation modes: the normal one, and the emergency one (as backup system).

#### 2.3.1. Operation modes

There are four modes of operation:

* Direct Supply from Utility*: consists of direct supply of the residential consumers from Utility via the Static Switch;

* Precharge Operation*: The DC capacitors in the inverter part of the Power

*Conditioning*System (PCS) can be precharged from the AC busutility. After the DC capacitors are charged, the inverter can be switched on. As soon as it is running, the inverter by itself will keep the DC capacitors charged to a DC level higher than the No-Load level of the Solid Oxide Fuel Cell (SOFC). During the precharge operation, the residential consumers will still be supplied from Utility;

* Normal Operation*: The PCS converts the DC energy from the SOFC into AC and feeds the Utility and the eventual residential consumers.

* Island Operation*(failure operation mode): If the Utility goes out of tolerance during normal operation, the PCS will change to island operation. The PCS converts the DC from SOFC and battery and supplies the critical loads.

For the sake of simplicity and for chapter length limit reason, only the grid-connected hybrid system with fuel cell generator and battery pack will be investigated.

### 2.3.1.1. The failure operation mode (Island Operation)

In this operation mode, the power system must assure the power supply for the critical loads (as alarms, auxiliary power systems for fuel cell, reformer and so on, depending on the consumer requirements). In the first stage, the power supply is assured from the battery pack, followed by the SOFC. Therefore, by knowing the critical load power, an adequate Simulink file is designed (Fig.2).A simple and effective energetic model has been considered. This model puts in evidence the inverter power losses at critical load conditions. A repeating table block from the Simulink tool is used in order to implement the load cycle of the residential consummer (critical load cycle, Fig.4). The available acquisition time for the load cycle was at 10 s for each sample, and two days as time interval length. By knowing the critical load power cycle, it is possible to size the required battery pack. Therefore the output inverter power,

The losses of the Power Conditioning System (PlossPCS=P_{loss,inv}) are modelled by using a quadratic function(Metwally, 2005), which is the most used one. The power loss function requires three parameters extracted from the experimental data by the least-squaresmethod.

The first parameter, *p*_{0}, takes into account the load independent losses[W]. The second parameter, *p*_{1}, represents the voltage drops in semiconductors as load linear proportional losses. The last term, *p*_{2}, includes the magnetic losses [1/W], known as load ohmic losses. The PCS model has been implemented in Simulink (Fig.3) based on the following function:

in which the coefficients of the approximated function are as follows: p0 = 0.0035*Prated, p1=0.005, p2=0.01/Prated.

In the Fig.3. the energetic component of the PCS block is presented. By knowing the total inverter losses at critical power,

The input and the output inverter powers are related to the inverter efficiency:

By taking into account the power requirements of the auxiliary circuits, which are supported only by the battery pack in critical load case during the fuel cell start-up, the corresponding DC power is (Fig.4):

The necessary energy of the battery pack is obtained as:

The blowers have been considered as main auxiliary loads; the value of

## PCU. Matlab/Simulink simulator results

Based on the PCUMatlab/Simulink simulator (Fig.2, Fig. 5a), the required capacity and energy of the battery have been obtained (Fig. 5b)

### 2.3.1.2. The Normal operation mode

## A. The Fuel Cell Power Conditioning System

The fuel cell power conditioning system consists of fuel cell stack and DC power converter.The fuel cell is an electrochemical device which produces DC power directly, without any intermediate stage. It has high power density and zero emission of green house gases. Fuel cell stacks were connected in series/parallel combination to achieve the desired rating. The main issue for the fuel cell power converter design is the fuel cell current ripple reduction. The secondary issue is to maintain a constant DC bus voltage. The former is solved by introducing an internal current loop in the DC/DC power converter control. The latter design requirement is solved by DC voltage control.

### A.1. The Fuel cell stack Matlab/Simulink based model

The polarization curve of the SOFC is based on Tafel equation. The output voltage of the SOFC is built taking into account the Nernst instantaneous voltage equation

transport losses *et al*. 2002). The first three terms are multiplied by No, number of series cells, in order to obtain the fuel cell stack mathematical model.

The parameters of the Tafel equation are the load current, the temperature and the pressures of the hydrogen and oxygen. The demanded current of the fuel cell system is limited between *et al.*, 2000):

The Simulink model of the FC Power System before starting must be initialized (based on *Ifc_init.m* file, Fig.6) from the Fuel Cell data initialization block (Fig.5). In order to obtain the demanded current between certain limits, an adequate Matlab function has been created(Fcn).

### A.2. Simulation results

By using the implemented Simulink model (Fig.5), the output voltage and the output power have been obtained, as shown in Figure 7.

### A.3. Mathematical modeling of the DC-DC power converters for fuel cells and energy storage elements integration: Boost and Buck-Boost power converters

In order to obtain a constant DC voltage, a boost power converter has been taken into consideration (Figure 9), operating in continuous conduction mode (CCM).

The method of the time averaged commutation device is applied to the unitary modeling of the power converters presented in Fig. 9 (Ionescu, 1997).

During the *p* is connected to the common terminal *c*. The duty factor is denoted D and

In the similar manner, the specific instantaneous voltages are obtained:

If averaging is carried out over a period of switching time, equations (9) - (10) will assume the equivalent form of the currents

and of voltages, respectively:

where, for the sake of convenience, values such as *i*_{a} are still considered as time averaged values for a period of switching time.

To demonstrate the validity of the time-averaged commutation device model, the mathematical models for DC –DC converters, boost and boost-buck are considered.

### A.4. The Boost converter

From the Fig.11a, the following equivalent relations are obtained:

By applying the first Kirchhoff's theorem to the Fig.11b, the first differential equation that characterizes the output voltage dynamic state

By applying the second Kirchhoff's theorem, the second differential equation that characterizes the inductor current dynamic state,

The commutation mathematical model in state space form will be as following:

The voltage

By vanishing the differential terms, the steady-state regime is obtained from the above deducted dynamic state-vector

## B. Battery Power Conditioning System

The Battery Power Conditioning Systemconsists of a battery pack and a DC-DC power converter. The NiMH battery produces a variable DC power. The battery pack has as main task to deliver the critical load power (Fig.1).

Therefore, individual batteries are connected in series/parallel combination to achieve the desired rating. The Matlab/Simulink battery model from the Mathworks has been used. The main issue for the battery power converter is to charge/discharge battery according to the available flow power. The problem is solved by introducing an internal current loop (Fig.12) in the DC/DC power converter control (Fig.13).

## B1. Simulink implementation of the SMC control diagram for DC-DC Boost Power Converter

In (Gulderin Hanifi, 2005) it is shown that the existence condition of the SMC is that the output voltage must be greater than the input one.

The DC-link voltage control is based on the Proportional Integral (PI) controller having k_{p}=0.00001 and k_{i}=0.01 as parameters. The circuit parameters of the boost converter are L_{boost}=80*1e-6 [H], C_{boost}=3240*1e-6 [F], R_{boost}=20[Ω].

The current loop is based on the sliding mode control (Fig.14); theMatlab Simulink implementation is shown in Fig.13.

The sliding mode surface S consists of the current error:

,which vanishes (S=0) in order to force the system to enter the sliding surface. The sliding mode controller has two functions: the control function and the modulator one. Therefore, the output control of the SMC is the duty cycle, D, of the boost power converter.

In order to follow the current reference, the output DC voltage must be greater than the following limit:

where the RMS grid voltage is

After the simulation, results have confirmed the benefits of SMC control (Fig.15a). The output voltage of the converter reaches and stabilizes at the reference value of 690 V at a time of

The fundamental purpose of using this converter is to raise the voltage from the fuel cell generator. Thus, the battery pack delivers 380Vdc, being the input voltage of the boost converter; the output voltage must be compatible with that of the three-phase voltage source inverter input, i.e. 690Vdc.

The advantages of this type of control are: stability, robustness and a good dynamics.

## B1. The mathematical model of the Buck-Boost power converter

From the Fig.16a, the following equivalent relations are obtained:

Following the above procedure applied to the boost power converter, the dynamic model of the buck boost converter is deducted :

and the steady state regime, respectively:

### B.2. The Simulink model of the Buck Boost power converter

Both the buck boost power converter and the current controller have been implemented and simulated in Simulink (Fig.17).

#### B.2.1. The Current Controller

By imposing the inductor current reference (ILref, Fig.18), the current controller will assure the fast reference tracking at the same time with delivering the appropriate duty cycles (D). By introducing an anti-parallel diode for each active power device, a bidirectional buck-boost converter is obtained.

The buck-boost converter is necessary to connect the battery stack (U_{d}=U_{dc}) to the power inverter system and it comes into operation when the electrical power demanded by consumers is higher than the electrical power obtained from the fuel cell generator. Another reason for the use of the buck-boost converter is to recharge the batteries from the other available sources. The circuit parameters of the buck boost power converter are L=100*1e-5[H], C=500*1e-8[F], R=50[Ω].

Thanks to the buck boost current controller, the actual inductor current follows the reference current. In the output current a delay of 0.001 s could be found (Fig.19a). The input voltage of the buck-boost converter, U_{d}, is about 390 Vdc and it is delivered from the battery stack, while the output voltage, U_{o}, is boosted at 690 Vdc (Fig.19b).

## C. Power Source Management (PSM) (Fig.20)

The purpose of the PSM is to assure an adequate DC-link voltage to the power inverter from both power source generators: the solid oxide fuel cell stack and the battery pack.

The final DC link voltage (VDC_inverter, Fig.21) is delivered to the Voltage Source Inverter (VSI) by the Power Source Management block (Fig.20).

## 3. Inverter modelling and control

The fundamental types of control can be classified into two categories: current control and voltage control. When the inverter is connected to the network, the network controls the amplitude and frequency of the inverter output and the inverter operates in current control mode. The classical current control can lead to other control methods can be obtained such as active and reactive power control/voltage control. If the network being power injected is not available due to improper network parameters, the inverter will autonomously supply the load; consequently it adequately supplies the alternative voltage in amplitude and frequency and it is not affected by network black outs. In this case, the inverter will control the voltage. The 50 Hz frequency is assured by a phase-locked loop (PLL) control. The grid converter is a full-bridge IGBT transistor-based converter and it normally operates in inverter mode such that the energy is transferred from the hybrid source to the utility grid and/or to the load. When the system is operating in grid-connected mode, the PLL tracks the grid voltage to ensure synchronization; but when the system enters in islanding mode of operation, the VSI can no longer track the grid characteristics. As seen in Fig. 22, the PLL for the VSI changes the frequency which is sent to the pure integrator for angle calculation by switching between the frequency from the filter and that from another fixed reference. In the islanding mode of operation the VSI needs to have an external frequency reference provided, ω_{fixed} (Fig.22). The PLL for the VSI is the main catalyst for the re-synchronization and re-closure of the system to the Utility once disturbances have passed. The frequency from the filter is used during the grid-connected mode.

The Grid Power Inverter for Renewable Energy Sources Integration is of 37kVA and delivers the power to the grid (simulated as three-phase programmable voltage source in Fig. 23) and the necessary power to the consumers (simulated as three-phase parallel RLC load in Fig. 23). There is an adequate boost inductor (three-phase series RL branch, Fig. 23) between the grid and the inverter. In order to calculate the *dq* components of the grid current, (ID, IQ), the Feedback Signals Acquisition block is used (Fig. 24). Through the implemented Simulink blocks (Figs.25a, 25b), the active power of the load is known.

### 3.1. The grid inverter control

The grid inverter control block delivers the corresponding duty-cycles to the Power Inverter (Gate_Pulses in Fig.23 or SW^{*}_{ABC} in Fig. 26). To achieve full control of the utility-grid current, the DC-link voltage must be boosted to a level higher than the amplitude of the grid line-line voltage. The power flow of the grid side inverter is controlled in order to keep the DC-link voltage constant. The structure of the DC/AC converter control system is shown in Fig. 27. The control structure of the power inverter is of vector control type and it uses the power balance concept (Sul and Lipo, 1990). Therefore, the load current feedforward component was introduced in order to increase the dynamic response of the bus voltage to load changes.

On the basis of the DC voltage reference V^{*}_{DC}, DC voltage feedback signal (V_{DC}), AC input voltages (E_{ab} and E_{bc}), current feedback signals (I_{a}, I_{b}), and the load power signal (got through a load power estimator) (Gaiceanu, 2004a), the Digital Signal Processor-based software operates the control of the power inverter (DC link voltage and current loops) system and generates the firing gate signals to the PWM modulator (Fig.27). The grid connected PWM inverter supplies currents into the utility line by maintaining the system power balance. By controlling the power flow in power conditioning system, the unidirectional DC-link voltage can be kept at a constant value. Using the synchronous rotating frame the active power is controlled independently by the*q*-axis current whereas the reactive power can be controlled by the *d*-axis current.

The control of the grid inverter is based on the minor current loop in a synchronous rotating-frame with a feedforward load current component added in the reference, completed with the DC voltage control loop in a cascaded manner.The outer loop controller consists of two parts: the phase-locked loop (PLL) and the DC link voltage controller. The former, the PLL, is used to extract the fundamental frequency component of the grid voltages and it also generates the corresponding quadrature signals in *d-q* synchronous reference frame, *E*_{d}-*E*_{q}, which are necessary to calculate the active and reactive power of the grid. The latter monitors the power control loop. The power control of the PWM inverter, is based on the power detection feedforward control loop and the DC-voltage feedback control loop (Fig.27). The main task of the voltage controller is to maintain the DC link voltage to a certain value. Another task is to control the grid converter power flow. The task of the DC link voltage and of the current regulation has been accomplished by means of the Proportional-Integral (PI) controller type, because of its good steady-state and dynamic behavior with the power inverter. It is important to underline that the PI controller performances are parameters sensitive, because of its design procedure, based on the DC bus capacitor and inductor values. However, in these specific applications, the system parameters values are known with reasonable accuracy. The design of the linear control systems can be carried out in either the time or the frequency domain. The relative stability is measured in terms of **gain margin**, and **phase margin**. These are typical frequency-domain specifications and should be used in conjunction with such tools as Bode plot.

The transfer function of the PI controller (Gaiceanu, 2007b) has the form:

The calculation of the PI controller coefficients, *K*_{pc} (proportional gain) and *T*_{ic} (integral time), is done imposing the phase margin ϕ_{mc} (in radian) and the bandwidth,ω_{c}, (in radian per second). Imposing these two conditions, the following relations for *K*_{pc} and *T*_{ic} are obtained(Gaiceanu, 2007b):

### 3.2. The Phase Locked Loop (PLL)

A phase locked loop (PLL) ensures the synchronization of the reference frame with the source phase voltages by maintaining their *d* component at zero (*E*_{d}=0) through a PI controller; the grid frequency is delivered by knowing the line-line grid voltages (EBA, EBC), as in Figs.28, 29.

#### 3.3. The current controllers

By using a decoupling of the nonlinear terms, the cross coupling (due to boost input inductance) between the *d* and *q* axes was compensated. To decouple current loops, the proper utility voltage components have been added (Gaiceanu, 2004b) (Fig 32).

Fig.33 shows the Simulink implementation of the reverse transformation from synchronous reference frame (d,q) tofixed reference frame (A,B,C) through the (alfa,beta) transformations.

## 4. The DClink current estimator

The load power (*P*_{load}=*P*_{out}) is calculated from the load inverter terminals. Another method is to estimate the load power from the DC link, indirectly, through a first or second order DC load current estimator (Gaiceanu, 2004a). The power feedforward control (Uhrin, 1994) allows the calculus of the input current reference based on the generated power, and it satisfies the power balance in a feedforward manner. By using the load feedforward control, the input reference of the current is changed with load, thus it is obtained a better transient response. The increase in the power response of the DC-AC inverter leads to the possibility of reduction the size of the DC link capacitor by maintaining the stability of thesystem.

The block diagram of the second degree estimator is presented in the Fig. 34, where the input needs the measure of the DC link voltage *V*_{dc}*(p)* and the calculus of the input ac load current component *I*_{q}. The output of the estimator is the estimated DC link load power *P*^{^}_{dcout}*(p)*.

The estimator (Fig. 34), after some manipulations (Fig.35), gets the form presented in the Fig. 36.

Using Laplace transform the DC link voltage equation gets the form

(24) or:This means that the block diagram from Fig.35 can be redrawing as in Fig. 36.

### 4.1.Calculus. of the estimator parameters

The problem consists of the calculation of the parameters *k* and *τ* such that the error between the estimated DC load current *I*^{^}_{dcout}*(p)*and the actual DC load current *I*_{dcout}*(p)* to be insignificant. The closed loop transfer function of the estimator, (Fig.37), derived from Fig.36, is given by:

Considering a step variation for the *I*_{dcout}*(p),* by setting:

the estimated DC load current gets the form

The usual form of the equation (28) is given by

where the damping factor is

(30)and the pulsation factor

The parameters *k* and *τ* are chosen such that the response *I*^{^}_{dcout}(*p*) to have an acceptable overshoot

a small step time response

,and a minimum output noise.

An advantage of the estimated method is that there is no ripple presence in the feed-forward reference current of the source side. The small reference current ripple is delivered from the output of the DC link voltage controller.

### 4.2. Simulation results

Fig. 41 shows the comparison of the grid voltage and the converter voltage (Ed,Vdref): the Ed component is 0 and the voltage Vdref is calculated as Vdref =om*L_{in}*I_{qN}+E_{d} in steady state regime (Gaiceanu, 2007a). The voltages Eqref and Vqref have the same value of 326.55[V].

The reference and actual *d* axis current waveforms (Id-Idref) are shown in Fig.41 proving the cancellation of the reactive power.

The DC link voltage step response was obtained by using a DC link voltage test generator (Fig.42) under a load current variation between [0.65, 1.15]×I_{N} (Fig.41), I_{N} being the rated value of the line current.

The performances of the active current inverter control are shown in Fig.41. The actual active current, *I*_{q}, accurately follows the reference *I*_{qref} (Fig.41). In Fig. 42 the performances of DC-link voltage controllers are shown. The trace of the A phase of the line current is in phase with A phase of the grid voltage, which clearly demonstrates the unity power factor operation (Fig. 43). Comparative waveforms showing unity power factor operation during regeneration obtained from DC-AC power converter are shown in Fig. 43. For all three methods of active and reactive power deduction (Fig.44) the steady state values are the same, however the first method is more accurate in transient regime (Fig.44) (Gaiceanu, 2004b).

The 2nd degree DC link current estimator was implemented for a 37kVA power inverter. The dynamic performances of the DC load current estimator are presented (Gaiceanu, 2004a).

By an adequate choice of the estimator parameters an acceptable step response can be obtained (Fig.45).

Through simulation (Figs. 45-46) the real and the estimated DC link currents are obtained.

The power semiconductor active devices operate with a switching time T_{s}=125μs, and a 2μs dead time. The converter specifications are given as follows: Supply voltage (line-to-line): 400V; Main frequency: 50Hz, Line current: 69A, Line inductance: 0.5 mH, DC bus capacitor: 1000 μF, Ambient temperature 40^{0}C,DC voltage reference: 690V.

## 5. dSpace implementation

The PI Current Control in Synchronously Reference Frame is shown in Fig.47. The current regulators have two tasks: the error cancelling, and the modulation (the appropriate switching states are provided).

For an adequate tuning of the current regulators, the actual load current, iA, accurately follows its reference i*A (Fig. 49), despite of an inappropriate tuning of the current controllers (Fig.48).

## 6. Conclusions

The main outcomes of the chapter:

The chapter pursuits to increase the awareness of public regarding the renewable energy technologies through the open access, and to determine the researchers to implement renewable energy projects.

The chapter will contribute the promotion of RES through the formation of experts so that these experts can later carry out RES projects with outstanding results.

The implicit longer term outcomes are related to:

Accurate models for fuel cells power systems.

New design of the adequate controllers for integrated systems, which will enable the efficient operation of such power inverters connected to the grid, with high stability in service and power quality.

The rapid prototyping through dSpace real time platform can prove very useful in medium and longer term for further modelling/investigation/development of similar systems.

The chapter will also bring contributions to the development of the theoretical knowledge if the following aspects are taken into account: the complexity of the issue, its interdisciplinary, the performance of an experimental model and the necessary theoretical knowledge of the interface solutions for the renewable system, in particular for fuel cells.

Through a proper control sinusoidal input current, a nearly unity power factor (0,998), bi-directional power flow, small (up to 5%) ripple in the DC-link voltage in any operated conditions, disturbance compensation capability, fast control response and high quality balanced three-phase output voltages were obtained. By using the load feed-forward component the input reference of the current is changed with load so that a better transient response is obtained. The proposed control was successfully implemented by the author on quasi direct AC-AC power converter (Gaiceanu M., 2004b) and based on the Matlab/Simulink software the simulation test has been performed for the modified topology of the grid power inverter. The experimental results (Figs. 48, 49) have been obtained by using dSpace platform (Fig.47). The second-degree DC load current estimator for DC-AC power converter system is developed in this chapter. Since the DC-AC power converter control by means of pulse-width modulation (PWM) is based on the power balance concept, its load power should be known. In order to overcome the measuring solution with well-known disadvantages, the load power can be estimated from the DC side by using the DC load current estimator. Thus, it is mandatory to have the information regarding the DC load current. The DC voltage regulation with good dynamic response is achieved even if DC capacitance is substantially reduced. This implies also the good accuracy of the DC link load current estimation.