Dynamic Modeling and Simulation of a Thermoelectric-Solar Hybrid Energy System Using an Inverse Dynamic Analysis Input Shaper

This study presents the behavioral model of thermal temperature and power generation of a thermoelectric-solar hybrid energy system exposed to dynamic transient sources. In the development of thermoelectric-solar hybrid energy system, studies have focused on the regulation of both systems separately. In practice, a separate control system affects hardware pricing. In this study, an inverse dynamic analysis shaping technique based on exponential function is applied to a solar array (SA) to stabilize output voltage before this technique is combined with a thermoelectric module (TEM).Thismethod can be used to estimate themaximum power point of the hybrid system by initially shaping the input voltage of SA.The behavior of the overall system can be estimated by controlling the behavior of SA, such that SA can follow the output voltage of TEM as the time constant of TEM is greater than that of SA. Moreover, by employing a continuous and differentiable function, the acquired output behavior of the hybrid system can be attained. Data showing the model is obtained from current experiments with predicted values of temperature, internal resistance, and current attributes of TEM.The simulation results show that the proposed input shaper can be used to trigger the output voltage of SA to follow the TEM behavior under transient conditions.


Introduction
Issues involving the continuous increase in oil price and environmental awareness have attracted extensive research interests for renewable energy power generation.Solar energy, hydro energy, nuclear energy, and wind energy are commonly used to produce electricity, thereby reducing carbon dioxide gas emissions [1].Solar energy is one of the most frequently used types of renewable energy; however, solar energy should be stored for future use because sunlight is the only source of this type of energy; as such, the availability of this type of energy varies with time.
The conversion of solar energy into electricity can be conducted by applying photovoltaic technology.This technology has received remarkable progress since 1839 [2].However, solar array (SA) fails to function at certain times of the day; for this reason, researchers have been prompted to improve SA efficiency.Although efficiency can be further enhanced, the improvement of SA performance has been impeded because of heat dissipation and development costs [2,3].TEM is a preferable device to overcome the current problems on photovoltaics, in which this solid state device is able to transform waste thermal energy into electricity when thermal gradient is present between two junctions [4].This device can be considered as one of the most efficient candidates used for energy conversion because this energy produces no waste matter during conversion.However, TEM cannot operate individually as a beneficial energy converter.In several studies, SAs and TEMs have been combined to develop a hybrid energy system that utilizes the benefits of both technologies [1,[5][6][7].
SA and TEM are nonlinear devices with output characteristics depending permanently on external substantial effects, such as maximum power point that should be tracked efficiently [5].In a previous study [1], a hybrid energy system comprised a dual Ćuk converter to lodge power for multiple 2 Modelling and Simulation in Engineering inputs; this hybrid is suitable for a grid connected system.The proposed method in another study [5] considers an optimal circuit design to control solar energy power, in which SA and TEM are arranged in a master/slave mode.Using an optimal circuit, a controller is developed to predict the maximum power point and can control both systems simultaneously.An extension hybrid TEM-SA system with liquid cooling is assembled to increase the efficiency of current hybrid systems [6,7].
This study aims to conduct a dynamic analysis of a hybrid TEM-SA configuration by using MATLAB with extra identification to increase the efficiency of the existing hybrid TEM-SA and to reduce the energy consumption of the system.Previous studies have also focused on an MPPTdesigned circuit in hybrid energy systems.As such, this MPPT circuit should be designed separately for both systems because various maximum power points are obtained for different systems.Although an optimal controller circuit is designed to control SA behavior [5], this circuit uses passive element devices, together with a digital signal processor.One of the drawbacks of this technique is the increased power consumption of the power circuit because of digital computation.For this reason, a feedforward controller with regard to input shaping scheme is introduced in this study.Input shaping is commonly used controller technique to control the vibration of moving or flexible systems [8,9].This technique is also used to control the settling time of a positioning system from one value to another [10].Studies have also focused on this field since the 1980s.In input shaping, several approaches, including "posicast" control [11,12], impulse shaping [13], command shaping [14], zero vibration derivative technique (ZVD) [15], and extra insensitive technique [16], are used.In a previous study [17], a three-step (TS) input shaping technique was applied, in which three-impulse shaping is provided with positive and negative shapers.In this technique, this new shaper extends the current zero vibration derivative (ZVD) technique to a generalized TS shaper method; this improved technique can function appropriately in any dynamic model.In these methods, input function should be computed and output behavior mainly depends on the given input.An inverse dynamic analysis type of input shaper has been proposed by Piazzi and Visioli [18] via employing polynomial function as the acquired output function.Although the ideas of Piazzi and Visioli are interesting and useful, they need to switch the polynomial function into another function because of the erratic behaviour of this function after attaining the end point.This argument is accepted by all critics.For instance, Iravani and Sahinkaya in [19] hold that the switching will bring in the discontinuity in both the first and second derivatives of the function which leads to the unstable output behaviour of the applied system.Particularly, Zhao et al. in their continuous works in [20][21][22] concentrate on the stability problem in arbitrary switching.The addressed problem is solved by introducing multiple copositive types Lyapunov-Krasovskii functional.Additionally, the multiple copositive types Lyapunov-Krasovskii functional is reduced to the common copositive type Lyapunov-Krasovskii functional.In here, they consider applying the suggested method to the feedback controller.Another method regarding the switching signal is the dwell time method which has received increasing attention since this method is able to stabilize the system when the dwell time is adequately high; see [23][24][25].
Moreover, the idea from Piazzi and Visioli has been extended in previous studies [8,9,19,26] using exponential function which has been proven to overcome the limitation of the polynomial function.On the whole, this inversion scheme is based on the feedforward control technique which does not need feedback measurements.As a matter of fact, in SA design, the occurrence of feedback measurement to obtain the maximum power tends to increase the energy consumption of the overall system.
In this study, an inverse dynamic analysis type of an input shaper based on exponential function was added to the SA model to control the input behavior of a photovoltaic array.The controller part in SA is designed so that the SA is able to collect solar energy throughout the day.More importantly, the voltage and intensity formed by the SA can be controlled consecutively to function at the highest operating point.With this method, the energy consumption of the system is further minimized.Significant efforts have been devoted to the development of this input shaper, in which the input shaper is designed according to the acquired output behavior of the hybrid energy system.In addition, the inverse dynamic type input shaper can be established by using built-in control blocks, which can be further combined using SimPowerSystem tools for the MPPT circuit development.

Modeling of the Thermoelectric Module and Solar Array
The models of TEM and SA modules are designed separately by inserting the corresponding numbers of modules in series or parallel before both systems are combined.As the time constant of TEM is evidently greater than that of SA, TEM is designed to function as the master and SA is designed as the slave.

Modeling of the Thermoelectric Module.
In this model, TEM functions under a dynamic condition, in which the temperature of the cold side is maintained for natural cooling to produce a dynamic response because many studies have focused on the analysis of a steady state behavior, which only involves constant temperature [4].In practice, the temperature of TEM input fluctuates with time.
To obtain the heat model of TEM, we considered several effects, including thermal conduction, Joule, Peltier, Seebeck, and Thomson.However, Thomson effect is ignored because such effect is very small.
To ensure that heat is distributed equally at both junctions, we should ensure that TEM exhibits high thermal conductivity.Thermal conductivity is expressed according to Fourier process with heat transfer,  tc , as follows: where  tc is the thermal conductivity and Δ is the difference between sides of high and low temperatures.Joule effect is produced internally when electrical current, , flows across a thermoelectric leg.This effect is observed in both sides at different temperatures but with the same amount of energy as follows: where  is the electrical resistance.Peltier effect is observed when electrical current flows through two different junctions and the total heat transfer is expressed as follows: where  is the Seebeck coefficient of the TEG.Seebeck effect shows that the temperature difference between two different electrical conductors or semiconductors produces a voltage difference between two junctions.Seebeck coefficient is also defined as follows: In the design of a TEM at specific thermal flow and temperature, the maximum power point should be obtained.If load resistance is equal to the internal resistance of TEM, output power is equal to the peak value.Equation ( 5) shows the energy balance equations used for steady state analysis at hot and cold junctions of TEM as follows: To develop a good TEM, a high Seebeck coefficient, together with low electrical resistance and low thermal conductivity, should be provided [27].In the figure of merit,  relates this statement and is expressed as follows: In terms of the electrical properties of TEM, the following parameters are frequently used to specify TEM characteristics:  ℎ , temperature in the hot side;   , temperature in the cold side;   , the power at the load resistance,   , internal resistance, , where (  = ); and   , load voltage.Electrical resistance and Seebeck coefficient are expressed as follows: The following relationship shows that load resistance can be varied in proportion to internal resistance.Consider where  is the ratio between load resistance and internal resistance.In (4),  is expressed as follows: The maximum output power at matching load,   = , is obtained before any controller or MPPT circuit is designed.The maximum current of TEM is the short-circuit current at zero load voltage,   = 0, which is expressed as follows: According to Ohm's Law and the resulting equations ( 9) and ( 10), the TEM voltage can then be obtained as follows: The TEM model TEP1-12656-0.6(Thermonamic) is used in this model, in which steady-state analysis is initially conducted to verify the electrical parameters of the TEM model.The specifications of the TEG module (TEP1-12656-0.6) are listed in Table 1 and the parameters for steady state condition verification are obtained by applying equations (1) to (6).The value of the model parameter under steady state analysis can be calculated as follows;  = 0.031 V/K,  = 1.2 Ω,  tc = 20.85W/K, and  = 3.869 × 10 −5  −1 .
The TEM model is implemented using MATLAB/SIM-ULINK as shown in Figure 1.The inputs of the model include the sides with cold and hot temperatures of the TEM configuration.

Modeling of Solar Array.
The characteristics of SA depend on the solar radiation and temperature of the SA surface.As solar radiation is increased, power produced by SA is increased; by comparison, an increase in temperature reduces output power.To attain the highest output power, we should reduce the temperature of SA.The equivalent circuit of the solar cell is shown in Figure 2.
A group of solar cells is then combined in series-parallel configuration to structure as an SA.In Figure 2, cell photocurrent,  PH , functions as current source,  SH is the internal shunt resistance of the cell, and   is the series resistance of the cell.In a previous study [28], SA can be modeled mathematically using (12) to (15).The - characteristic of SA is represented as follows: where  SC is the short circuit current,   is the short circuit current coefficient at  SC , and  is the PV module illumination.The module saturation current, which keeps changes with cell temperature, is expressed as follows: where  RS is the reverse saturation current,  ref is the reference temperature, and   is the band gap for silicon (1.1 eV). RS in ( 14) is expressed as follows: where  OC is the open circuit voltage.Solar module SR10-36 from Raloss is used as the SA model in this design.The details of the electrical characteristics of the module are listed in Table 3 and this specification is modeled using MATLAB/SIMULINK (Figure 3).
The - and - characteristics of SA depend on terminal operating voltage, insolation, and surface temperature.These characteristics are obtained by varying insolation at constant temperature or varying temperature at constant insolation.The polycrystalline silicon solar cells chosen in this SA yield low power consumption and entail less production costs, which likely increase the total performance of development [6].

Input Shaper for the Hybrid Energy System
The thermoelectric-solar hybrid energy system is implemented in the SIMULINK/MATLAB (Figure 4).The input shaper used in inverse dynamic analysis is added at the input of SA to control the output characteristic of SA, such that the TEM characteristic is observed.This system comprises six pieces of TEM, two pieces of SA, and an input shaper.The TEM is connected in series and thermally in parallel, whereas both SAs are connected electrically in parallel to increase the output power of an individual system before these SAs are combined to perform a hybrid energy system.SA exhibits a nonlinear characteristic because the output characteristics depend on external factors, such as temperature and sunlight irradiation.Considering these factors, we should accurately track the maximum power point of this device.In this study, the inverse dynamic analysis exponential type of input shaper is used to simulate the input voltage of SA before it is connected to the other parts of the SA subsystem.This input shaper also aims to reverse the control method by initially indicating the system output function and then deriving the input form.In this way, the form of output characteristics can be selected based on system limitations.In the present study, the output function should be used with only one parameter to control the characteristics from the final point onwards; as a result, a simple input function is obtained.The particular constraint of output form determines output power along with controlling the system limitations.Figure 5 shows the - and - characteristics of a solar cell.In particular, power curve contains a maximum power point (MPP).In this study, the MPP voltage,  MPP , is less than the open circuit voltage,  OC , and  MPP is lower than  SC .At MPP, current and voltage exhibit almost the same relation to irradiance and temperature changes.
The power behavior of SA is constant from an initial time point to a specific end point until power decreases drastically to a negative value.For the selected SA model, power decreases to a large negative value, which likely results in an overall power curve to follow SA behavior.As a result, TEM automatically follows the SA behavior, which is impractical to obtain the maximum power of the overall system, when an SA diagram and a TEM block diagram are combined to form a hybrid system.

Inverse Dynamic.
The inverse dynamic is only applied to the voltage equation of the SA since the current behaviour automatically changed when the voltage function is changed.
As mentioned earlier, the SA power needs to be set to follow the TEM behaviour.Before designing any input shaper, the form of the target output waveform needs to be confirmed first.In the simulation, the SA input voltage is set to be a sawtooth signal and based on Weisstein [30] this signal is represented as follows: where frac() is the fractional part frac() ≡  − ⌊⌋,  is the amplitude,  is the period of the wave, and  is its phase.The output voltage of the SA is equivalent to the input voltage.From (16), it shows that the SA voltage form is a first order system.
The system transfer function by only concentrating on voltage form is expressed as follows: where () is the normalized input of the SA and () is the normalized desired output function.The normalized input is obtained using inverse dynamic by substituting the SA sawtooth function and the desired output form in (17).

Desired Output Behavior.
The function representing the point-to-point output characteristic should be differentiable and continuous at least up to a second order derivative at which the first derivative and the second derivatives at initial and final simulation time points,   , are zero and remain zero.According to [18], asymptotic behavior is desired when the final position is reached to remain in the same position and the use of exponential functions introduced by [8] is one of the most efficient solutions.Here, the third order exponential function of the output function is evaluated to control the system from time = 0 to   as the target output waveform is similar to the first derivative of this exponential function (Table 4).This third order exponential function is expressed as follows: To generalize the analysis, we can define the normalized time  as follows: From ( 18) and ( 19), the normalized equation of the desired output function is derived as follows: The derivatives are shown in the following equations: V in V out Table 4 shows the characteristics of the proposed output function defined by the actual output function as well as the first and second derivatives of the actual output functions.As the desired output voltage function of the SA is the same as the first derivative of the third order exponential function, () is set to be 3.3.Exponential Input Shaping Design.The input function corresponds to the input voltage, which initially increases proportionally with time to the exponential behavior.As such, the input function is calculated to be where  = 30 V,  = 10 s, and  = 0 ∘ .The new output power is determined to be the same behavior as the input voltage.As a result, the total hybrid power tracks the TEM behavior because the SA power behavior is changed by the new input signal.Figure 6 shows the design process of inverse dynamic analysis.

Simulation Results
Two simulation models are designed using MATLAB: one model is the hybrid system with an input shaper and the other model does not have an input shaper.From the standpoint of the TEM application, the maximum output power is desired, in which load resistance is set at the same value as internal resistance.The behavior of the individual system is plotted to configure mathematical modeling and the characteristic of output performance.For TEM, the low temperature data from a previous study [4] is used in the dynamic analysis of the TEM block at a constant high temperature of 115 ∘ C. The variation in the low temperature is shown in Figure 7.The low temperature is gradually increased from 25 ∘ C to 75 ∘ C and maintained at that value until the end of simulation time.
The characteristic of TEM, in which six thermoelectric generators are connected in series, is shown in Figure 8.As TEGs are cascaded, single TEG voltages are combined and expressed as follows: where  is the number of cascaded thermoelectric generators.Considering that power is directly proportional to voltage, we can express total power as the maximum power of single TEG multiplied by the factor of .In Figure 8, the total power is 87.6 W at the matched load current of 3.4 A and the matched load voltage of 25.2 V.For the SA block, the surface temperature is maintained at 40 ∘ C and simulation is conducted by varying insolation at 300, 500, 800, and 1000 W/m 2 .The - and - characteristics of SA are shown in Figure 9.
We compared the characteristics to verify the design by adding the input shaper to the input of SA and to the other one without the input shaper.After the input shaper was added, the input voltage of SA changed to the first derivative of exponential behavior (Figure 10).
For the next analysis, the SA voltage curve is changed to different curvature to see the effect after adding the same input shaper as the previous analysis.It is notable by comparing Figures 10 and 11 that the characteristic of the SA voltage with input shaper is the same regardless of the given curve of the initial SA voltage.The curve shows its peak value is 1.18 V at time 0.88 s for both cases.This is the beauty of this exponential input shaper in view of the fact that it is able to maintain and stabilize any form of curve according to its exponential characteristic.
The performance of the hybrid energy system with the input shaper is observed by varying the input of TEM as the SA branch is fixed at 1000 W/m 2 .The temperature of the cold side of TEM is varied from 25 ∘ C to 85 ∘ C as observed in the power curve in Figure 12.The result shows that the overall output power corresponds to the TEM behavior by only controlling the SA part.
To summarize this method, we present the comparison results of the performance of the individual system and the hybrid system with and without the input shaper in Figure 13.
Figure 13 shows that the inverse dynamic analysis can control the output behavior of SA to follow the TEM behavior under a transient operating condition.It is worth stressing that the following remarks can be concluded from Figures 7-13.
(1) This finding is one of the most important factors that should be considered before any MPPT circuit is designed for this hybrid system.This observation is considered because the time constant of SA is less than that of TEM.SA is also established to imitate the TEM behavior.Hence, an appropriate behavior of the output power curve is initially developed to falsify the acquired overall output behavior of the hybrid system.
(2) The extra recognition of the inverse dynamic analysis involves a user that selects the optimum overall system behavior; this behavior is chosen to induce the designed input function to respond to the selected output function.This procedure can be conducted to reduce hardware pricing by not designing the separate controller for both systems before a hybrid system is formed.For this reason, this hybrid system can be used to estimate the MMP of the overall system by using a single controller to regulate both systems.
(3) In contrast to the method presented in a previous study [5], the proposed method can reduce the power consumption of this hybrid system without using any digital controller and achieve the desired output power curve.
(4) This system also reduces the bare bones of designing the MPPT for different systems before such bones are combined to form a hybrid system.
(5) By comparing with the existing works, it can be seen from Figure 10(b) that the SA voltage with the proposed input shaper follows the same characteristics of the similar input shaper applied to flexible system in [8].This proposed method is able to stabilize the hybrid system to certain condition which is to follow the characteristic of the TEM.From this observation, the exponential function input shaper is capable of obtaining the same characteristic in the application of energy systems although the system is different since previously it was solitude to the application of flexible systems.(6) Again, from Figure 10(b), the peak value of the SA voltage is close to 1.18 V at the normalized time of Modelling and Simulation in Engineering 0.88 s.The same characteristic is drawn from [8] where the different systems are looking on.
The effectiveness of the exponential function input shaper when applied to the hybrid energy system of TEM-SA is convincible to work very well since the output power curve needs to be stabilized to certain value before MPPT circuit is designed.The stability factor is one of the main parameters that will be stressed out after the MPPT is designed for this hybrid energy system.

Conclusion
A formulation of the TEM-SA behavior, which includes thermal behavior and electrical properties, has been developed using MATLAB/SIMULINK.This model is used to determine the output power characteristics of TEM, SA, and hybrid energy system for transient analysis.Simulation results show that an inverse dynamic analysis based on exponential function can be applied to control the output behavior of the SA.The satisfactory curve of the hybrid output power is achieved using this method.In addition, this method simplifies the control of the overall system, in which the controller is only designed to control the SA output behavior, such that SA behavior follows the TEM characteristic.The controlled input behavior is applied to further minimize the energy consumption of the system.Significant efforts have been devoted to the development of this input shaper.In this system, the input shaper is designed according to the acquired output behavior of the hybrid energy system.In addition, the inverse dynamic type input shaper can be built by using built-in control blocks, which can be combined further using SimPowerSystem tools to develop the MPPT circuit.The MPPT circuit can then be applied in the hybrid system to obtain the MPP and generate electricity for electronic device applications.Considering that the overall output behavior follows the TEM behavior, we recommend that only one MPPT circuit should be designed for this hybrid system.

Figure 1 :Figure 2 :
Figure 1: TEM block model as applied in MATLAB.

Figure 3 :
Figure 3: SA block model applied in MATLAB.

Table 4 :
Characteristics of the proposed output function.

Table 2 :
[31]or of  depends on PV technology[31].SA and  SA are the output current and the output voltage of SA, respectively,  SAT is the saturation current that varies with cell temperature,   and   are the total number of cells in parallel and in series, respectively,  is the charge of an electron (1.6 × 10 −19 C),   is the series resistance,  is the ideality factor of a p-n junction, which depends on the photovoltaic voltage (PV) technology (Table2),  is Boltzmann constant (1.3805×10 −23 J/K), and  is the module operating temperature.PH is directly proportional to solar insolation and is defined as follows: