{'fraction_non_alphanumeric': 0.026823974622961766, 'fraction_numerical': 0.011297234125438255, 'mean_word_length': 4.802389409105586, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Smooth transition from grid to standalone solar diesel mode hybrid generation system with a battery

Received Mar 26, 2019 Revised Apr 20, 2019 Accepted Jul 21, 2019 This paper described a self-supply smart microgrid which may be a low voltage or medium voltage distribution network. It considered an efficient energy system in which different renewable sources as photo-voltaic array, wind, or conventional as diesel generator, and storage called distributed generators which organized to chance the load power demand at any time with reliability. It can operate either on-grid or off-grid configuration, especially limited areas far from the utility grid needed another backup power. By using Matlab/Simulink, a solar PV system is modeled, simulated, and determined the characteristic of a particular photovoltaic cell panel under the influence of different values of ambient conditions. Taking into consideration MPPT algorithm which increases the solar energy efficiency by Incremental conductance technique to track MPP correctly with fast response. Power electronic DC/DC converter and DC/AC inverter are used with PWM technique. To compensate the power fluctuations of the system under different possible transient cases, a high performance control based on an improved virtual synchronous generator is added to confirm smooth variants in voltage, frequency and active power during transient conditions. The results show the PV/Diesel generator/battery/power/frequency and voltage performance at two different conditions.


INTRODUCTION
The traditional power grid utilizes fossil fuels as its primary sources of energy which cause dust emissions, climate change, carbon dioxide, and continuous shortage of fossil fuels. But recently, renewable energy sources (RESs) based distributed generation (DG) units are preferred cause its several advantages such as flexible extensibility, environmental-friendliness, high efficiency and improved reliability. Consequently, the hybrid microgrid concept is also suggested to overcome the defects caused by the individual application due to its flexibility and efficiency. It's very important for faraway areas to build up a complete system able to meet their need demands and overcome disconnected from the utility grid with high efficiency and stability. So, this research will present a proposed hybrid power generation system which useful to this applications and discuss in details.
Microgrid (MG) is a building block of a distributed system that combines storage, loads, traditional and renewable sources. It has two states: firstly, 'off-grid configuration' to generate and hand out power across isolated remote areas during discontinuity or any interrupting from the utility grid. Secondly where the system is able to give-and-take power from the grid is named 'grid-connected configuration'. The performance of a MG is very important during switching mode. Where MG is responsible to adjust

PV system
The basic device of a PV system is the PV cell which directly converts sunlight into DC electrical energy. Cells can be collected to form panels or arrays and modules for higher power applications. In order to PV cell has a nonlinear voltage-current (V-I) characteristic, it can be modeled using current sources, diodes and resistors. Several methods have been developed to model a PV panel as mathematical modeling and software/simulation. Single-diode and double-diode models are commonly used to simulate PV characteristics but one diode model equivalent circuit is popular model used to evaluate the performance data which are represented by P-V characteristic curves [21]. An ideal single-diode model in Figure 2(a) has three components: photo-current source, diode parallel to source, output current. In Figure 2(b) because the shunt resistance Rsh is large, so it usually can be neglected then practical model simply added series resistance Rs [14]. In Figure 2(c) practical model with series resistance Rs and shunt resistance Rsh is selected to  [7]. Sun Power SPR-305E-WHT-D solar panel provides higher efficiency and performance than conventional designs and thin film solar panels. So, it saves both time and money and commonly used [4].

Mathematical model of PV
Case (a): neglecting the internal losses of the Current, by applying Kirchhoff's law: Where I is the output current, Iph is the photo current, Id is the diode current which proportional to the saturation current, IO is the reverse saturation or leakage current of the diode (A), V is the voltage imposed on the diode, Vt is called the thermal voltage because of its exclusive dependence of temperature, TC is the actual cell temperature (K), K is Boltzmann constant (1.381×10-23 J/K), q is charge of electron (1.602 × 10 -19 C), and Ns is the number of PV cells connected in series. A is the ideality factor which depends on PV cell technology. Case (b): neglect series resistance Rs and shunt resistance Rsh due to their effect on the efficiency of the PV cell and module. When Rs only is taken into consideration the equation will be as the next form [6].
Case(c): where Rs is the sum of several structural resistances in the solar cell and Rsh represents the leakage effect of the solar cell semiconductor material [5]. By applying Kirchhoff's law: Solar cells are arranged in series and/or parallel in PV modules to obtain higher values of voltages and currents as shown in Figure 3. It can be realized that the number of series modules (Nser) is directly proportional to the equivalent series and parallel resistance and the number of parallel modules (Npar) is inversely proportional to them. So, the output voltage is increased regularly with number of modules connected in series where the current remain unaffected. Similarly the voltage stay unchanged where the output current is improved proportionally to number of modules connected in parallel [11]. The equation for array using Nser & Npar is given by:

Effect of ambient conditions on I-V & P-V characteristics of PV
Power output of PV module is directly proportional to solar radiation. Selecting the best location is essential to install PV module and the strength of solar radiation need to be considered. Besides that, local climate and environmental factors such as temperature, wind, and humidity need to be observed as it has an effect on the output power of PV module. Where the performance of PV module depend on the quantity of solar radiation and the temperature of surrounding. Figure 4 is showed I-V and P-V characteristics in case of varying irradiation with constant temperature. When irradiation increases, the current increases obviously but voltage output increases slightly. This results increasing in output power in this operating condition. In Figure 5 I-V and P-V characteristics under varying temperature and constant irradiation. When the operating temperature increases, the current output rises marginally but the voltage output decreases drastically. This indicates a net drop in power output with increase in temperature [9].

Maximum power point tracking (MPPT)
For maximizing the PV conversion efficiency, MPPT is implemented. MPPT is not a mechanical tracking but at the same time it can be used with a mechanical tracking system. MPP does not lie at a particular point but it moves around P-V curve depends on light intensity and temperature as Figure 6(a). IC is the most commonly method due to its better performance, faster tracking time and has no oscillation [12]. The principle of IC is achieved when the slope of the P-V curve is zero at the MPP, positive at the left of the MPP, and negative at the right of the MPP. By comparing the instantaneous conductance (I/V) to the incremental conductance (ΔI/ΔV), MPP can be found [22]. This algorithm shown in Figure 6(b) is based on the principle that the MPP is reached when ( / = 0) [14].

Boost converter
In generally, PV systems used DC/DC converters step up or step down the PV voltage and automatically varying the duty cycle (D) in order to generate the required voltage to accesses maximum power [3]. A boost converter is also named a step up converter because the output voltage is higher than the input voltage. As a result to achieve power balance, the output current is lower than the input current [23]. The dc voltage is essentially regulated through the DC/DC converter to fix the output capacity and determined the microgrid total power output [2]. The duty ratio of the chopper is increased linearly with increase in cell temperature and therefore the intensity [11]. The input-output voltage relationship for continuous conduction mode is given by:

Inverter
In grid-connected PV systems; converting the DC output of the solar modules to AC power through the inverter is important to connect with utility and supplying local loads. Current-controlled H-bridge PWM inverter with low-pass output filters is the most common control structure for the DC/AC grid converter [24]. The DC/AC converters insert sinusoidal current into the grid controlling the power factor. Inverter controller confirm the control of active and reactive power generated to the grid, thus the control of DC-link voltage is achieved with high quality of the injected power and grid synchronization [3]. PWM is a technique which the switched voltage pulses are produced for different output frequencies and voltages. A distinctive modulator produces an average voltage value equal to the reference voltage within each PWM period. PWM provides a way to decrease the Total Harmonic Distortion (THD) of load current. THD requirement can be met when the output of a PWM inverter is filtered [23].

Diesel generator (DG)
In nuclear power plants especially, DG is one of the fundamental instruments needed to modeled and analyzed dynamically. Due to its critical function as a backup source to enable the MG performance in safe under transient conditions and its role in frequency and voltage regularity. Initially DG is in standby mode and delivering no active power. The plant is fed by the distribution network and the synchronous machine (SM) operates as a condenser to keep the bus voltage at 1.0 p.u.

Governor
Initially the governor and its design parameters are observed to set at steady state value 'zero' and the reference mechanical power also observed from no speed deviation scenario. This assumption when machine at the initialization state and changed directly once coming into the practical state [16]. It has two input terminals; one is the reference speed and another is the actual speed and one output terminal is the mechanical power (Pm). This produced Pm is fed into the synchronous generator block. The shaft speed that sensed from the generator block is fed back to the diesel engine block and the difference (error) between the reference and actual speed is measured and controlled with help of suitable PID controller which minimize the speed error. The actuator gets signal from governor to adjust the fuel injection rate which maintains the constant frequency output from the system [17]. The transfer function and the feedback loop of the modeled governor is shown in Figure 7.

Exciter
The presence of exciter is very important in any generator because of its ability to control the field and terminal voltages during normal and abnormal situations. Also a role in voltage instability by controlling active and reactive power in generator [16]. Automatic Voltage Regulator (AVR) system is controlled the excitation current by using the terminal voltage error as a control input in the excitation control loop and so the generator output voltage is continuously detected until this error becomes zero [18]. Generator's excitation control is a typical non-linear time-variant control system that implements a SM voltage regulator and exciter based on the IEEE type AC1A excitation system model. Its output is the field voltage (Vf) which considered an input to SM block. The voltage waveform of the isolated grid is generated by the SM and its AVR controls the voltage during the two modes of operation [19].

Energy storage system
In practice, any type of batteries can be used in RESs such as lead-acid, nickel-cadmium, and nickeliron batteries and practically found that the most usually used in RESs is the deep-discharge lead-acid battery [15]. This type is preferred because of its advantages including the performance, price and battery lifetime. This design is prepared to provide small amounts of power over long periods continuously and its discharge up to 80% of the total battery capacity without damaging the battery [20]. Lead-acid batteries is presumed an electrochemical storage for this standalone DC microgrid taking into consideration its relatively low cost and matured technology. In order to protect the batteries from over-recharging and over-discharging, the batteries SOCB is limited between SOCB_MAX and SOCB_ MIN as upper and lower limitation respectively, as shown in (10) [1].

SOCB_ MIN SOCB(t) SOCB_ MAX (10)
The temperature is a main factor for battery performance. Another important factor that characterizes the battery behavior is the state of charge (SOC) of a battery [25]. Often SOC is equivalent to a fuel gauge for a battery freight and its units are symbolized by a percentage points (i.e., 0% is empty, and 100% is full). There is a substitute form of the same measure that called the depth of discharge (DOD), and equal to one minus the SOC (i.e., 100% is empty, 0% is full). The SOC is commonly used to signify the current state of a battery in use and when discussing the lifetime of the battery after repeated use, the DOD is most often used [20].

Load
The load used in this paper is 500kw as a constant load at grid-connected mode and a variable load that initially 100kw resistive load and then variant into 300kw. This load inserted in simulation at islanded mode with step time 10s approximate. The inverter converts the DC input from the PV module or the battery depending on the mode of operation into AC voltage with RMS value of 3500V.

SIMULATION OF PROPOSED HYBRID POWER SYSTEM
All the elements of the simulated system which shown in Figure 8 are connected to one module through the point of common coupling (PCC). Matlab/Simulink is used to gain results in different conditions either grid-connected mode or islanded mode. System's frequency is set at 50Hz and operates in gridconnected mode before 4s then the MG is disconnected from the utility at 4s. The frequency and voltage during transition mode are regulated to be constant just minimum droop at this moment. This droop is improved by using PID controller on the power of the battery depend on the difference between reference and actual speed of the governor. This method is proposed and results are taken with PID and without to compare the performance of the system in different parameters. Also when the load changes during the islanding mode, all the DGs react promptly to stabilize the system and match the load automatically.

MPPT under constant temperature and variant irradiance
By using signal builder in Figure 9 to test the model at (T = 25℃, Ir = (400, 600, 800, 1000) w/m 2 ). The output waveforms are shown in Figure 10.

MPPT under constant irradiance and variant temperature
By using signal builder in Figure 11 to test the model at (Ir = 1000 w/m 2 , T = (25, 30, 35, 40)℃). The output waveforms are shown in Figure 12.

RESULTS DISCUSSION
MPPT is achieved step-by-step until reached 100kw by using IC method under different ambient conditions whoever increasing temperature from 25:40℃ or irradiance from 400:1000 w/m 2 as showed in Figure 9(b) & 10(b). The proposed Matlab/Simulink is proved that when irradiance is increased, PV power is increased frequently as showed in Figure 11(c). Also when temperature is increased, PV power is decreased as showed in Figure 12(c). I-V and P-V charachteristics of PV are showed at constant temperature and variant irradiance and vice versa. Modeling is compared that when adding PID controller to ESS, thus the results indicated that the performance of whole system is better than without PID connection. This is very clear in frequency, voltage, SOC, diesel power and battery power waveforms. Microgrid frequency is keeped constant at 50HZ with a small droop at discontinuity from the utility grid at step time 4s approximate and when load is increased 200kw at step time 10s approximate. Also microgrid phase voltage is regulated at 3500RMS value with higher drop when load is increased, but adding PID controller is reduced this drop. This achieved smooth transitions through the proposed system and new addition of PID to stabilize the system and match the load automatically specially when the load changes during the islanding mode. So all the DGs are reacted promptly. Initially DG is in standby mode and delivering no active power then it is increased its power when dicontinuity from the grid and when load is increased to compansate whole required power of demand. But adding PID is reduced its generated power that's clearly in in Figure 10

CONCLUSION
This paper is introduced a study of hybrid power generation system included renewable energy sources and conventional which has two operation modes; grid-connected and isolated system. The solar PV system is modeled and simulated using Matlab/Simulink to study the influence of different ambient conditions. Also, Diesel generator and storage is organized to chance the load power demand. The obtained results are confirmed stability of the system though voltage and frequency of MG in different transient cases. This proposed method is validated as effective, feasible and easy to implement and can be developed in the future to serve remote places. This research has a future vision to advance the proposed system with other subgrids to develop a fixed multi microgrid system able to work under transient cases with high efficiency.