Next Article in Journal
Renewable-Based Isolated Power Systems: A Review of Scalability, Reliability, and Uncertainty Modeling
Previous Article in Journal
Sorption Behavior of Nickel(II) on Natural and Fe(III)-Modified Clinoptilolite: Optimization and Mechanism Insight
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Control for a DC Microgrid for Photovoltaic–Wind Generation with a Solid Oxide Fuel Cell, Battery Storage, Dump Load (Aqua-Electrolyzer) and Three-Phase Four-Leg Inverter (4L4W)

by
Krakdia Mohamed Taieb
* and
Lassaad Sbita
*
PEESE (Processes, Energetics, Environments and Electrical Systems) Research Laboratory LR18ES34, National Engineering School of Gabes, University of Gabes, St Omar Ibn-Elkhattab, Zrig, Gabes 6029, Tunisia
*
Authors to whom correspondence should be addressed.
Clean Technol. 2025, 7(3), 79; https://doi.org/10.3390/cleantechnol7030079
Submission received: 2 February 2025 / Revised: 22 July 2025 / Accepted: 6 August 2025 / Published: 4 September 2025

Abstract

This paper proposes a nonlinear control strategy for a microgrid, comprising a PV generator, wind turbine, battery, solid oxide fuel cell (SOFC), electrolyzer, and a three-phase four-leg voltage source inverter (VSI) with an LC filter. The microgrid is designed to supply unbalanced AC loads while maintaining high power quality. To address chattering and enhance control precision, a super-twisting algorithm (STA) is integrated, outperforming traditional PI, IP, and classical SMC methods. The four-leg VSI enables independent control of each phase using a dual-loop strategy (inner voltage, outer current loop). Stability is ensured through Lyapunov-based analysis. Scalar PWM is used for inverter switching. The battery, SOFC, and electrolyzer are controlled using integral backstepping, while the SOFC and electrolyzer also use Lyapunov-based voltage control. A hybrid integral backstepping–STA strategy enhances PV performance; the wind turbine is managed via integral backstepping for power tracking. The system achieves voltage and current THD below 0.40%. An energy management algorithm maintains power balance under variable generation and load conditions. Simulation results confirm the control scheme’s robustness, stability, and dynamic performance.

1. Introduction

The integration of renewable energy sources (RESs) into microgrids introduces challenges due to their intermittent and nonlinear behavior. This paper studies a stand-alone DC microgrid depicted in Figure 1, composed of a PV generator, wind turbine (PMSG), lithium-ion battery, solid oxide fuel cell (SOFC), and an aqua-electrolyzer used as a dump load. Each component is interfaced with the DC bus via appropriate DC-DC converters: boost for PV and SOFC, buck-boost for the battery, and buck for the electrolyzer. The SOFC operates when the battery’s SOC falls below 20%, while the electrolyzer absorbs excess energy when the SOC exceeds 80%. The electrolyzer generates hydrogen, which can be stored for later uses as an input to the SOFC. In [1], a hybrid microgrid combining solar energy and wind turbines with doubly fed induction generators and fuel cells was proposed to streamline energy conversion processes. However, the design did not incorporate batteries to support fuel cell operations and power management. In [2], the MPC-based controller employs a nonlinear system model combined with ARIMA forecasting to anticipate environmental and load disturbances. However, the PV system continuously operates at its Maximum Power Point Tracking (MPPT) without taking into account the potential overcharging or undercharging conditions of the Battery Energy Storage (BES). In [3], a hybrid microgrid comprising fuel cells (FCs), an electrolyzer, and a Battery Bank Energy Storage System (BBESS) is presented, demonstrating confirmed performance and efficiency. However, to achieve optimal efficiency and power stability, the implementation of a three-level inverter is essential. In [4], a third energy source is essential. In this setup, a Supercapacitor Energy Storage System (SCESS) is used for power balancing, while a fuel cell and electrolyzer are integrated to improve energy quality [5].
Sliding mode control (SMC) is commonly utilized in photovoltaic (PV) system regulation because of its strong robustness and high control accuracy, particularly in environments with significant disturbances [6]. However, a major limitation of SMC is the chattering effect, which can reduce system reliability and hinder practical deployment. In response to this issue, researchers have investigated alternative control strategies. Backstepping control (BC) is a widely used nonlinear method developed to address the drawbacks of sliding mode control (SMC). To enhance system robustness, it is often combined with other techniques, including integration with SMC [7,8]. Model Predictive Control (MPC) has been applied to DC-DC boost converters [9,10], and Stochastic Fuzzy MPPT techniques have also been proposed [11]. While these methods deliver solid performance outcomes, they typically rely on comprehensive and precise information about PV system parameters such as ambient temperature and solar irradiance, which may not always be readily accessible or easy to measure accurately in real-world conditions.
The proposed integral backstepping–super twisting algorithm (IBSTA) combines robustness and fast convergence, making it suitable for systems with uncertainties and disturbances. Compared to Model Predictive Control (MPC), which excels in constraint handling but requires significant computational resources, IBSTA offers lower complexity and faster response, favoring real-time applications. Fuzzy Logic Control (FLC), while simple and adaptable to imprecise models, may lack strong stability guarantees in highly nonlinear systems. IBSTA thus provides a balanced alternative, offering both robustness and practical feasibility for embedded implementations.
Due to nonlinearity in the system components, advanced power electronic interfaces are essential. A four-leg, two-level voltage source inverter (VSI) is used to regulate output power quality and manage unbalanced loads [12]. These inverters are widely used in APF [13,14,15], UPS [16], DVR [17], UPQC [18], and stand-alone systems [19,20], and elimination of current leakage in PV applications [21].
In control design, various strategies have been explored for four-leg inverters, including the pole-placement method [22], sliding mode control (SMC) [23], deadbeat (DB) model-based control [24], MPC [25], and the resonant and repetitive control methods [26,27]. This paper proposes an integral backstepping control method based on Lyapunov theory for output voltage and current regulation. It ensures fast, robust dynamic performance with reduced complexity compared to sliding mode and hysteresis-based methods.
The control coordination between the multiple energy sources, the battery, and the dump load is illustrated in the energy management chart shown in Figure 2.
Results demonstrate clearly that the control strategy proposed in this paper provides the best solution, with good tracking and optimization performance, fast dynamic response, and stable static power output, even when weather conditions (irradiation and wind speed) are rapidly changing.
The proposed strategy is developed in the next sections. The control and quality energy performances are presented using Matlab/Simulink 2017a.
In this paper, we propose a robust nonlinear control scheme for a multi-source microgrid to maintain high power quality under unbalanced AC loads. To reduce chattering in conventional sliding mode control, we incorporate a super-twisting algorithm (STA) within a hybrid integral backstepping–STA (IBSTA) controller, improving PV power extraction and dynamic response. System stability is ensured via Lyapunov-based analysis, and voltage/current THD is maintained below 0.40%. Additionally, an adaptive energy management algorithm coordinates generation and storage under dynamic conditions.
The main contributions are as follows. We develop an integrated control framework combining integral backstepping, Lyapunov-based methods, and second-order sliding mode control through the STA. A four-leg voltage source inverter enables independent phase control, enhancing voltage quality under unbalanced loads. We also propose a real-time energy management strategy for coordinated operation of distributed energy resources and storage components.
The remainder of the paper is organized as follows. Section 2 presents the modeling of the DC microgrid components. Section 3 describes the case study and evaluates system performance through MATLAB/Simulink simulations. Finally, Section 4 provides the conclusions.

2. Modeling of DC Microgrid Components

2.1. Modeling of the PV Energy System in the DC Microgrid

This section focuses on the photovoltaic (PV) subsystem integrated into the DC microgrid depicted in Figure 1. The PV system consists of four identical arrays connected in parallel, with each array formed by eight modules arranged in series. Under standard irradiance conditions (G = 1000 W/m2), the PV module operates with a maximum power point voltage of approximately 30.1 V, a short-circuit current of 8.83 A, and an open-circuit voltage of 37.4 V, as illustrated in Figure 3 and Figure 4. To interface the PV arrays with the DC bus, a DC-DC boost converter is implemented. This converter serves dual purposes: (1) to maximize energy harvesting from the PV arrays through a maximum power point tracking (MPPT) algorithm, and (2) to elevate the lower PV voltage to the required DC bus level. The control strategy continuously monitors the PV voltage V p v , PV current I p v , and the output voltage of the boost converter V d c to regulate the switching and ensure optimal operation. The approach ensures stable DC bus voltage while maintaining high energy conversion.
The boost converter’s average state model is given by the following equations:
d x 0 d t = 1 C p v i p v 1 C p v x 1   d x 1 d t = 1 L x 0 ( 1 u p v ) L V d c  
where:
x = x 0   x 1 T = V p v   I L T

Control of PV System: Integral Backstepping–STA Controller

The first variable that represents the tracking error is formulated as:
E 1 = x 0 V p v r e f
The integrator of the error is:
γ 1 = 0 t ( x 0 V p v r e f ) d t
Based on system (1.2), the derivative of the tracking error is expressed as:
E 1 ˙ = 1 C p v i p v 1 C p v x 1   V p v r e f ˙
The Lyapunov candidate function is defined as:
V 1 = 1 2 E 1 2 + 1 2 K 0 γ 1 2
where K 0 is a design parameter and must remain a positive constant.
This Lyapunov function represents a measure of system energy in terms of the PV voltage tracking error and its integral. Physically, it quantifies how far the system is from the desired voltage V p v r e f . Ensuring that this function decreases over time implies that the error and its accumulation reduce steadily, leading the PV output voltage to converge toward the reference value.
The time derivative of   V 1 obtained from Equation (5) is:
V ˙ 1 = E 1 ˙   E 1 + K 0   E 1   γ 1 = E 1 ( 1 C p v i p v 1 C p v x 1 V p v r e f + ˙ K 0   γ 1 )
Judicious choice of the entity within the brackets permits:
1 C p v i p v 1 C p v x 1 V p v r e f + ˙ K 0   γ 1 = k 1   E 1
The derivative of   V 1 versus time becomes:
V ˙ 1 = E 1 ( 1 C p v i p v 1 C p v x 1 V p v r e f + ˙ K 0   γ 1 ) = k 1   E 1 2
The condition V ˙ 1 , where,   k 1 > 0 , guarantees asymptotic stability of the voltage tracking error.
This has direct physical importance: it ensures the photovoltaic panel voltage will follow the reference set point despite internal dynamics, ensuring maximum power point operation or stable output behavior depending on the reference strategy.
The chosen surface:
  S p v = i p v x 1 C p v   V p v r e f + ˙ C p v K 0   γ 1 + C p v k 1   E 1
The derivative of the surface:
S p v ˙ = i p v ˙ x 1 ˙ C p v   V p v r e f ¨ + C p v K 0   E 1 + C p v k 1   E 1 ˙
Integrating x 1 ˙ from (1) in (11), S p v ˙ becomes:
S p v ˙ = i p v ˙ 1 L x 0 + ( 1 u p v ) L V d c C p v   V p v r e f ¨ + C p v K 0   E 1 + C p v k 1   E 1 ˙
The second Lyapunov function considered is:
V 2 = 1 2 E 1 2 + 1 2 K 0 γ 1 2 + 1 2 S p v 2
The second Lyapunov function V 2 extends the stability analysis to include the sliding surface S p v , which incorporates dynamic system variables and enhances the robustness of control. This reflects the total error of the system, including deviations in output voltage and their rates of change, which is essential for handling fast dynamics in PV systems.
The derivative of V 2 is:
V ˙ 2 = E 1 ˙   E 1 + K 0   E 1   γ 1 +   S p v   S p v ˙
Integrating S p v ˙ from Equation (12) in Equation (14), V ˙ 2 becomes:
V ˙ 2 = E 1 ˙   E 1 + K 0   E 1   γ 1 +   S p v   (   i p v ˙ 1 L x 0 + 1 u p v L V d c C p v   V p v r e f ¨ + C p v K 0   γ 1 + C p v k 1   E 1 ˙ )
The derivative V ˙ 2 combines both tracking error dynamics and the system’s surface dynamics, allowing us to shape the closed-loop behavior. From a practical viewpoint, minimizing V ˙ 2 leads to fast convergence and improved transient performance, which are critical for grid-connected PV applications subject to changing environmental conditions.
The surface law chosen in this case is:
S p v ˙ = ρ S p v 1 2 s i g n S p v σ s i g n ( S p v )
This sliding mode law introduces robustness against model uncertainties and external disturbances by enforcing finite-time convergence to the sliding surface. Physically, this translates into the system rejecting small perturbations in irradiance or load without losing voltage regulation performance.
Equation (12) can be written as a nonlinear states space equation in the following form:
S p v ˙ = A V p v + B V p v u p v
where:
A V p v = i p v ˙ 1 L x 0 + 1 L V d c   C p v   V p v r e f ¨ + C p v K 0   γ 1 + C p v k 1   E 1 ˙
B V p v = 1 L V d c
The equivalent control law u p v e q   is derived when   S p v ˙ = 0 [28]. Its expression can be obtained from Equation (17) as:
u p v e q   = A V p v B V p v
Then the equivalent control law u p v e q   is equal to:
u p v e q   = ( i p v ˙ 1 L x 0 + 1 L V d c C p v   V p v r e f ¨ + C p v K 0   γ 1 + C p v k 1   E 1 ˙ )   L V d c
where x 0 = V p v .
The discontinuous function u p v n is defined as follows:
u p v n   = u S T A   B V p v = u S T A   L V d c   .
where u S T A is the STA term defined by [29].
u S T A   = ρ S p v 1 2 s i g n S p v σ s i g n ( S p v )
According to [30], the adaptive gains of the algorithm gains are calculated as follows:
ρ ˙ = Ω θ 2   s i g n S p v δ ϕ   i f   α b   α c   i f   α b > α c
σ = α b
where Ω ,   ρ , δ ,   , θ,   σ , φ, α b , and α c are positive constants.
Then the expression for the control law u p v   is determined by [28]:
u p v = u p v e q   + u p v n  
From Equations (21)–(23) the final expression of u p v is:
u p v = ( i p v ˙ 1 L V p v + 1 L V d c C p v   V p v r e f ¨ + C p v K 0   E 1 + C p v k 1   E 1 ˙ + ρ S p v 1 2 s i g n S p v + σ s i g n ( S p v ) ) L V d c
The final control law u p v combines equivalent and discontinuous components to achieve both accuracy and robustness. It is physically implementable through duty-cycle modulation of the DC-DC converter. The structure ensures that the PV voltage remains tightly regulated around the reference, even under rapid changes in solar input or load conditions.
Proof of the derivative of V 2 must be negative:
From Equation (13), V 2 is expressed as follows:
V 2 = 1 2 E 1 2 + 1 2 K 0 γ 1 2 + 1 2 S p v 2
This expression demonstrates that V 2 0 .
The derivative of V 2 is expressed as follows:
V ˙ 2 = V ˙ 1 +   S p v   S p v ˙ = E 1 ˙   E 1 + K 0   E 1   γ 1 +   S p v   S p v ˙
Integrating the value of V ˙ 1 from (8), V ˙ 2 becomes:
V ˙ 2 = k 1   E 1 2 +   S p v   S p v ˙
From Equation (16), we integrate the expression of S p v   ˙ in the term
S p v   S p v ˙ :
  S p v   S p v ˙ =   S p v ( ρ S p v 1 2 s i g n S p v σ s i g n S p v )   = S p v . s i g n ( S p v ) ( ρ S p v 1 2 + σ t )   ˂   0
Then, from Equations (26) and (27), V ˙ 2 can be expressed:
V ˙ 2 = k 1   E 1 2 S p v . s i g n ( S p v ) ( ρ S p v 1 2 + σ t )
= ( k 1   E 1 2 S p v . ( ρ S p v 1 2 + σ t ) 0
where k 1 , ρ , and σ are positive constants and t is time. This assumption results in a negative derivative of the Lyapunov function V 2 ˙ , which guarantees that the error variables ( E 1 , γ 1 , S p v ) will converge asymptotically to the origin. This, in turn, ensures that x 0 converges asymptotically to the origin V p v r e f , thereby allowing the PV system to extract the maximum power from the array. The MPPT algorithm’s objective is to calculate the optimal output voltage V p v r e f , ensuring that the system operates at its MPP. For this purpose, the Incremental Conductance (IncCond) algorithm is employed, and its steps are as follows:
V p v r e f t = V p v r e f t h + k i n k s i g n i p v V p v + I p v V p v i p v = i p v t i p v t h v p v = V p v t V p v t h k i n k = k 3 V p v t    
The control configuration of the DC-DC boost converter within the photovoltaic system is depicted in Figure 5.
General Integral Backstepping Control Framework:
The integral backstepping control (IBC) method is used for current regulation in the battery, wind, fuel cell, and dump load systems:
Let the error be defined as:
e = x r e f x or   e = x x r e f
Its derivative:
e ˙ = x r e f ˙ x ˙ or   e ˙ = x ˙ x r e f ˙
The integral of the error:
γ = 0 t ( x r e f x ) d t or   γ = 0 t ( x x r e f ) d t
The Lyapunov candidate function:
V = 1 2 e 2 + 1 2 ( K 1 γ ) 2
The derivative of the Lyapunov function is:
V ˙ = e ˙   e + K 1 γ   e
To ensure stability:
e ˙ + K 1 γ = K e
where K 1 and K are positive constants.
This leads to a control law structure that is tailored to each subsystem’s dynamic model.

2.2. Modelling Battery in DC Microgrid

The DC-DC bidirectional buck-boost converter links the BESS [31,32,33] to the DC bus. The buck-boost converter includes two IGBT switches Q 1 and Q 2 , an inductor L b a t with its equivalent series resistance R b a t , and an output capacitor   C d c , and the operating voltage is around 220 V.
The switches are activated by binary signals sent to their gates. The converter, responsible for regulating the DC bus voltage, can operate in both charging and discharging modes, depending on the load and state of charge (SOC). In the discharging mode (Boost), with Q 1 on and Q 2 off, the battery supplies energy to the DC bus ( I b a t r e f > 0). When Q 1 is off and Q 2 is on, the converter enters buck mode ( I b a t r e f < 0), and the battery is charged.
The buck-boost converter’s average state model is given by the following equations:
d I b a t d t = V b a t d b L b a t 1 d b V d c L b a t R b a t L b a t I b a t
d V d c d t = 1 d b I b a t C d c I b a t o C d c
where V d c , I b a t ,   I b a t o , C d c , and d b are average-state values of battery output voltage, battery current, the output current of the converter, the output capacitor, and the control signal.

2.2.1. Battery Current Control

Applying the IBC framework to the battery current control, where:
x = I b a t
x r e f = I b a t r e f
The error chosen is:
e b a t = I b a t I b a t r e f
By combining Equation (39) with Equation (41), the derivative of   e b a t can be expressed as:
e b a t ˙ = V b a t d b L b a t 1 d b V d c L b a t R b a t L b a t I b a t I b a t r e f ˙
From the latter equation and Equation (38) we can deduce:
d b = I b a t r e f ˙ + V d c L b a t + R b a t L b a t I b a t L b V d c + V b a t ( K b a t e b a t + K b a t 1 γ b a t ) L b V d c + V b a t
where K 1 and K are replaced successively by K b a t 1 and K b a t .

2.2.2. DC Bus Voltage Regulation Based on STA Controller

The system model Equation (40) can be written as a nonlinear states space equation in the following form:
x ˙ = a x + b x u i
where x = V d c , the DC bus voltage,
a x = I b a t o C d c
and:
b x = 1 d b 1 C d c
b x 0   t , where t is time, and u i is the battery reference current I b a t r e f produced by the DC link voltage controller (STA controller).
We consider C, Km, KM, Um, and Q the arbitrary positive constants of the STA controller which are determined by considering the following condition of convergence given by [30].
a ˙ x + U m b ˙ x C ; K m b x K M ; a x b x < q M ; 0 < q < 1
The primary objective of employing the super-twisting algorithm (STA) controller is the creation of a second-order sliding mode on the surface S V d c by cancelling S V d c V d c and its derivative S V d c ˙ V d c in a limited time ( S V d c ˙ V d c =   S V d c x = 0 ). The STA controller is used in Equation (40) with a relative degree equal to one. The sliding surface is defined by:
S V d c ( V d c ) = V d c V d c r e f
In view of Equation (44), the first derivative of S V d c ( V d c ) is calculated as follows:
S V d c ˙ = a V d c + b V d c u i V d c r e f ˙
The parameter V d c r e f represents the reference voltage for the DC bus and is considered a constant value.
The control unit of a STA controller is constructed by two terms, a continuous sliding mode component ( u e q ), and a discontinuous term ( u n ). Therefore, the total control law is given by [28]:
u i = u e q + u n
By imposing the condition S V d c ˙ = 0 , the equivalent control ( u e q ) is calculated [28]. Based on Equations (45), (46), and (48), its expression can be derived as follows:
u e q = a V d c b V d c = I b a t o 1 d b
We define u n as follows:
u n = u s t b ( V d c )
where,
u s t = α S V d c 1 2 s i g n S V d c λ s i g n ( S V d c )
In this equation, α and λ are the adaptive gains given by [30].
The following procedure is used to determine the adaptive gains of the algorithm:
α ˙ = ω φ 2     s i g n S b a t γ μ   i f   α a   α l   i f   α a   > α l
λ = τ α
where, α l , μ , ω , τ, λ ,   γ , φ, and α a are positive constants.
By compensating the term u i in Equation (49) with   I b a t r e f , its expression can be deduced as follows:
I b a t r e f = ( I b a t o 1 d b ) + ( α S V d c 1 2 s i g n ( S V d c ) λ s i g n ( S V d c ) ) C d c
In the process of voltage control, it can be assumed that the battery current is controlled by the integral backstepping controller because the dynamic of the current controller is much faster than that of the voltage controller (see Figure 6 and Figure 7). In addition, R b a t and L b a t are very small; therefore, Equation (43) can be simplified as:
d b a t V d c V d c + V b a t
Based on Equation (56), the battery’s reference current can be expressed as:
I b a t r e f = I b a t o ( V d c + V b a t V b a t ) + ( α S V d c 1 2 s i g n ( S V d c ) λ s i g n ( S V d c ) ) C d c ( V d c + V b a t V b a t )
To ensure the stability of the Super-Twisting Algorithm (STA) controller, the Lyapunov function V b must have a negative time derivative for all S V d c 0 . Where,
V b = 1 2 S V d c 2
S V d c ˙ = α S V d c 1 2 s i g n ( S V d c ) λ s i g n S V d c d t
The time derivative of V b can be written as:
V b ˙ = S V d c S V d c ˙
S V d c S V d c ˙ = S V d c . s i g n ( S V d c ) ( α S V d c 1 2 + λ t )   ˂   0
Therefore, the stability of the STA controller is verified through the Lyapunov condition. As a result, the Lyapunov condition can consistently be satisfied, ensuring that the DC bus voltage converges to its constant reference value under all operating conditions.
The control strategy for a battery-connected DC-DC buck-boost converter is depicted in Figure 8.

2.3. Wind Energy Conversion System Modeling for DC Microgrid [34]

In continuous conduction mode (CCM), a DC-DC boost converter is employed to regulate the rotational speed of the turbine-generator assembly by functioning as an apparent load for the generator. The converter includes an input inductor L w with an associated series resistance R w , a diode D, output capacitor C d c , and IGBT switch Sb. The system’s dynamic behavior can be represented by the average-state model, which is formulated through the following set of differential equations:
d V d c d t = i w o C d c + 1 u w i w C d c
d i w d t = V i n w L w R w L w   i w 1   u w V d c L w  
The average-state quantities of the converter are denoted as follows: V d c for the voltage across the DC bus, V i n w for the input voltage, i w for the inductor current, u w for the control signal, and i w o for the output current of the boost converter.

Wind Energy Conversion System Control Strategy

Applying the IBC framework to the wind energy conversion current control, where:
x = i w
x r e f = i w r e f
The chosen error is:
e w = i w r e f i w  
Using the system dynamics from Equations (62) and (63), and applying the same IBC methodology, we derive the control input:
u w = 1 + d i w r e f d t L w V d c V i n w V d c + R w V d c i w + K w e w L w V d c + γ w L w V d c
where K 1 and K are replaced successively by 1 and K W .
The MPPT technique is employed to compute the desired reference current.
The reference torque was determined by estimating the generator speed ( ω m ), as given by [34]:
T m r e f = K o p t   ω m 2
K o p t = 1.67 × 10 3 N m / r a d / s
Based on the wind turbine characteristics, this value is considered constant. The corresponding reference current is extracted using the measured input voltage to the rectifier voltage ( V i n w ), according to:
i w r e f = T m r e f ω m V i n w
The characteristics of the wind turbine in case 1: i w and its reference are depicted in Figure 9, the mechanical torque T m , reference torque T m r e f , and generator electromagnetic torque T e are depicted in Figure 10, the power coefficient Cp is depicted in Figure 11, the angular speed ω m (rad/s) is depicted in Figure 12, the tip speed ratio λ is depicted in Figure 13 and the wind speed V w (m/s) is depicted in Figure 14.
The regulation approach for the DC-DC boost converter integrated in wind power system is presented in Figure 15.

2.4. Modeling Approach for SOFC System in DC Microgrid [35,36]

A solid oxide fuel cell (SOFC) model (Table 1) is developed based on references [35,36]. The SOFC operates at a voltage of 430 V, which is stepped up to the reference DC voltage ( V d c r e f ) of 880 V using a boost converter. For MATLAB simulation, the stack output voltage is modeled and connected to a controlled voltage source, as illustrated in Figure 16. The dynamic SOFC model is linked to the DC bus via the boost converter.
The SOFC system is designed to meet the peak load requirements in scenarios where wind and solar power are unavailable, and the battery’s state of charge (SOC) drops to 20%. The sizing of the SOFC unit is determined based on the system’s peak load demand, which is 9.690 kW, as illustrated in Figure 17. To ensure optimal utilization and account for a safety margin, the SOFC is oversized by 20%, resulting in a final capacity of 11.628 kW.
The SOFC is interfaced with the DC microgrid through a DC-DC boost converter. The converter configuration includes an input inductor L F C with associated series resistance R F C , a diode D, an output capacitor C d c , and a controllable IGBT switch S C . The dynamic behavior of the converter is represented using an average-state space model to facilitate control system design and performance analysis. The primary average-state variables in this model include the output current from the converter I F C o , the inductor current I F C   , the DC bus voltage V d c , the control signal u F C   , and the input voltage to the converter, denoted as V i n F C .
The average-state space model of the boost converter is expressed according to:
d I F C d t = V i n F C L F C R F C L F C   I F C 1   u F C V d c L F C
d V d c d t = I F C o C d c + 1 u F C I F C C d c

2.4.1. Fuel Cell Current Control

Here:
x = I F C
x r e f = I F C r e f
The current tracking error is defined as follows:
e F C = I F C r e f   I F C
Using the system dynamics from Equations (69) and (70), and applying the same IBC methodology, we derive the control input:
u F C = 1 + d I F C r e f d t   L F C V d c V i n F C V d c + R F C V d c   I F C + K F C   .   e F C   .   L F C   V d c + γ F C L F C V d c
where K 1 and K are replaced successively by 1 and K F C .

2.4.2. DC Bus Voltage Control Strategy

To ensure that the DC bus voltage remains constant, a controller based on Lyapunov stability theory is employed. The error signal e 1 is defined as the difference between the desired DC voltage and the measured DC voltage. This error can be formulated as follows:
e V F C = V d c r e f V d c
The Lyapunov function V is chosen as follows:
V = 1 2   C d c ( e V F C ( t ) ) 2 + 1 2   K F C   I ( t 0 t e V F C ( t ) d t ) 2
where K F C   I denotes the integral gain of the DC bus voltage controller. Consequently, the derivative of the Lyapunov function becomes:
V ˙ = C d c e V F C t e V F C ˙ + K F C   I   . e V F C t . t 0 t e V F C ( t ) d t  
After replacing the derivative of V d c from Equation (73) in Equation (75), the time derivative of the Lyapunov function V is obtained as:
V ˙ = C d c e V F C t I F C o C d c + 1 u F C I F C C d c + K F C   I   . e V F C ( t ) t 0 t e V F C ( t ) d t
The current control dynamics are significantly faster than those of the voltage control loop (see Figure 18 and Figure 19, primarily because the current controller is based on an integral backstepping approach while the voltage controller is designed using a Lyapunov-based method. Since the resistances, R S O F C and L F C , are very small, Equation (72) can be expressed as:
u F C 1 V i n F C V d c   .
To guarantee that the voltage control error converges to zero, the derivative of V must be negative, leading to the following condition:
C d c I F C o C d c + 1 u F C I F C C d c + K F C   I .   t 0 t e V F C t d t = K p F C e V F C ( t )
In this case, K p F C represents a positive constant for the proportional gain. By inserting the value of   u F C from Equation (77) in Equation (78), I F C r e f can be formulated as:
I F C r e f = ( I F C o + K F C   l . t 0 t e V F C ( t ) d t + K p F C e V F C t   ) V d c V i n F C
By incorporating Equation (79) into Equation (78) and considering the condition specified in Equation (77), the resulting expression for the derivative V is obtained via:
V ˙ = K p F C e V F C ( t ) 2 0
As a result, the Lyapunov stability criterion can consistently be fulfilled, guaranteeing the convergence of the DC bus voltage to its steady-state reference under all circumstances.

2.5. Load-Side Control of the Voltage Source Inverter (VSI)

As shown in Figure 20, the configuration of the four-leg inverter is followed by an output low-pass LC filter. Each phase of the inverter is connected to the load via an LC low-pass filter. To enable the zero-sequence component of the load current to flow, the fourth leg, marked as “n”, is linked to the neutral point of the load. This setup ensures that the four-leg inverter is capable of supporting highly unbalanced loads while delivering excellent performance under nonlinear load conditions, offering two distinct advantages. To mitigate switching of the current ripple and enhance load voltage quality, an inductor is placed in series with the fourth leg, similar to the inductors used in the other legs. This addition reduces the current rating of the switches in the fourth leg and also limits the fault current during short-circuit conditions. The four-leg inverter model in the abc reference frame is provided by Equations (81)–(84).
The topology of the three-phase four-leg inverter is depicted in Figure 20.
d i L x d t = ( 1 L f   u x n u x + L n L f   d i n d t )
d u x d t = ( 1 C f   i L x i x )
u x n = V d c ×   d x n  
i a +   i b +   i c +   i n = 0
In the above and below formulas, x = a, b, c; u x is the load voltage; u x n is the output voltage of the inverter; i L x is the inductor current; i x is the load current; and dxn is the duty cycle of the phase voltage. The control strategy selected for the four-leg inverter with an inductor involves the use of integral backstepping control. The primary goal of the integral backstepping controller is to generate a reference current, and then to create a reference voltage for each phase in the (a, b, c) frame.

2.5.1. Generation of the Reference Currents

Integral backstepping control:
The error chosen here is = ε x i .
ε x i = u x r e f u x
Then:
ε a i = u a r e f u a
ε b i = u b r e f u b
ε c i = u c r e f u c
The derivative of the error is:
ε x i ˙ = d u x r e f   d t   d u x   d t
The following Lyapunov function is considered:
V x i = 1 2 ԑ x i 2 + 1 2 γ x i 2
where
γ x i = t 0 t ε x i d t
The Lyapunov function derivative is determined as follows:
V ˙ x i = ԑ x i ˙   ԑ x i + ԑ x i   γ x i
To ensure u x converges to u x r e f , the time derivative of   V x i should be negative semi-definite, i.e.,:
V ˙ x i 0
Then we can deduce:
ԑ x i ˙ + γ x i = K x 1 ԑ x i
where K x 1 is a positive constant.
Proof of Equation (93):
From Equation (92), the Lyapunov function time derivative is expressed as:
V ˙ x i = ԑ x i ˙ ԑ x i + ԑ x i   γ x i
then
V ˙ x i =   ԑ x i ( ԑ x i ˙ + γ x i )
Integrating Equation (94) into Equation (95) yields the following expression:
V ˙ x i =   K x 1 ԑ x i 2 < 0
From Equation (96), we can conclude that the function V x i decreases steadily and its derivative is negative semi-definite.
Consequently, the Lyapunov stability criterion remains fulfilled, and the measured voltage reliably tracks its reference across all conditions.
From Equations (82), (89), (91), and (94) we can deduce:
d u x r e f   d t 1 C f   i L x i x + γ x i = K x 1 ԑ x i
From Equation (97), i L x r e f can be determined as follows:
i L x r e f = i x + C f ( K x 1 ԑ x i + γ x i + d u x r e f   d t )
Then the three reference currents in the (a, b, c) frame are:
i L a r e f = i a + C f ( K a 1 ԑ a i + γ a i + d u a r e f   d t )
i L b r e f = i b + C f ( K b 1 ԑ b i + γ b i + d u b r e f   d t )
i L c r e f = i c + C f ( K c 1 ԑ c i + γ c i + d u c r e f   d t )

2.5.2. Development of Reference Voltages for the Three-Phase System in the (a, b, c) Frame

The error chosen here is = ε x i 1 .
ε x i 1 = i L x r e f i L x
Then:
ε a i 1 = i L a r e f i L a
ε b i 1 = i L b r e f i L b
ε c i 1 = i L c r e f i L c
The derivative of the error is:
ε x i 1 ˙ = d i L x r e f   d t   d i L x   d t
The Lyapunov function adopted is defined as follows:
V x i 1 = 1 2 ԑ x i 1 2 + 1 2 γ x i 1 2
where
γ x i 1 = t 0 t ε x i 1 d t
The time derivative of the Lyapunov function is derived as:
V ˙ x i 1 = ԑ x i 1 ˙   ԑ x i 1 +   ԑ x i 1   γ x i 1
To ensure i x converges to i x r e f , the time derivative of V x i 1 is required to be negative semi-definite, i.e.,:
V ˙ x i 1 0
Then, from Equations (109) and (110), we can deduce:
ԑ x i i ˙ + γ x i 1 = K x 2 ԑ x i 1
where K x 2 is a positive constant.
Proof of Equation (110):
From Equation (109), the time derivative of the Lyapunov function is derived as:
V ˙ x i 1 = ԑ x i 1 ˙ ԑ x i 1 + ԑ x i 1   γ x i 1
then
V ˙ x i 1   =   ԑ x i 1 ( ԑ x i 1 ˙ +   γ x i 1 )
By integrating Equation (111) into Equation (112), the inequation presented below can be derived:
V ˙ x i 1 =   K x 2 ԑ x i 1 2 < 0
From Equation (113), we can conclude that the Lyapunov function V x i 1 steadily decreases over time and its derivative is negative semi-definite. Hence, the Lyapunov stability criterion can consistently be fulfilled, and the measured current reaches its reference value in all scenarios.
From Equations (81) and (111), we can deduce:
d i L x r e f   d t 1 L f   u x n u x + L n L f   d i n d t + γ x i 1 = K x 2 ԑ x i 1  
From Equation (114), the reference voltage u x n can be determined as follows:
u x n r e f = u x + L f K 2 ԑ x i 1 + γ x i 1 + d i L x r e f   d t L n d i n d t
Then the three reference voltages in the (a, b, c) frame are:
u a n r e f = u a + L f K 2 ԑ a i 1 + γ a i 1 + d i L a r e f   d t L n d i n d t
u b n r e f = u b + L f K 2 ԑ b i 1 + γ b i 1 + d i L b r e f   d t L n d i n d t
u c n r e f = u c + L f K 2 ԑ c i 1 + γ c i 1 + d i L c r e f   d t L n d i n d t
Stability Verification:
To perform the stability analysis, the positive definite Lyapunov function   V t o t a l is employed:
V t o t a l = x = a x = c V x i + x = a x = c V x i 1 = x = a x = c 1 2 ԑ x i 2 + x = a x = c 1 2 γ x i 2 + x = a x = c 1 2 ԑ x i 1 2 + x = a x = c 1 2 γ x i 1 2 .
The derivative of   V t o t a l must be negative semi-definite for the system to be asymptotically stable.
From Equations (96) and (113),   V t o t a l ˙ is calculated as:
  V t o t a l ˙ = x = a x = c K x 1 ԑ x i 1 2 + x = a x = c K x 2 ԑ x i 1 2 < 0
By using the Lyapunov stability theory, the stability of the closed-loop control system is ensured. After determination of the reference voltages, we will determine the offset. The fourth leg of the four-leg inverter not only supplies a neutral wire but also controls the zero-sequence voltage ( u z ) . In the scalar PWM approach, the zero-sequence voltage ( u z ) is added to the reference voltage ( u x n r e f ), yielding the following new reference voltages:
u a n r e f + u z = u a n r e f *
u b n r e f + u z = u b n r e f *
u c n r e f + u z = u c n r e f *
In addition, the zero-sequence voltage is assigned as the reference voltage for the inverter’s fourth leg.
The following equation describes the zero-sequence voltage [37,38]:
u z = V d c 0.5 τ 1 τ u M A X τ   u M I N
In this context, u M A X and u M I N denote the highest and lowest values among the three reference-phase voltages during each sampling period The distribution ratio τ determines the duration assigned to the zero-voltage vectors within each switching cycle. This period, known as the zero-vector timing, occurs when all upper switches of the voltage source inverter (VSI) are either simultaneously ON or OFF. For proper operation, τ must lie within the interval [0, 1] [38].
The voltage controller and current controller of the three-phase four-leg inverter are depicted in Figure 21.
The topological scheme of scalar PWM is depicted in Figure 22.

2.6. Modeling of Dump Load System [39]

The components of the buck converter are listed as follows: C b k is the capacitor, L b k the inductor, and the switching devices are Q and D linked to the electrolyzer with a voltage V e .   I L b k is the inductor current, V d c is the source voltage.
The average-state space model of the buck converter is expressed according to:
d I L b k d t = u b k V d c L b k V c L b k
d V C d t = I L b k C b k I o b k C b k

2.6.1. Dump Load System Current Control

Here:
x = I L b k
x r e f = I L b k r e f
The current tracking error is defined as follows:
e b k = I L b k r e f   I L b k
Using the system dynamics from Equations (125) and (126), and applying the same IBC methodology, we derive the control input:
u b k = ( d I L b k r e f d t + V c L b k +   γ b k + K b k e b k ) L b k V d c

2.6.2. Electrolyzer Voltage Regulation Based on Lyapunov-Based Function Controller

To regulate the DC bus voltage at a constant level, a control approach based on Lyapunov theory is introduced. The voltage tracking error, denoted by e b , quantifies the deviation between the desired reference voltage V e r e f   and the measured voltage output of the buck converter V e . This tracking error at any given time ttt is defined as:
e b = V e r e f   V e
The Lyapunov expression used to assess the buck converter’s stability, given by V b u c k , is expressed as:
V b u c k = 1 2   C b k . ( e b t ) 2 + 1 2   K I b k . ( t 0 t e b t   d t ) 2
The derivative of V b u c k becomes:
V b u c k ˙ =   C b k   . e b t   .   e b t ˙ + K I k   . e b t   . ( t 0 t e b t   d t )   .
V b u c k ˙ = C b k   . e b t   .   V C ˙ + K I b k   . e b t   . ( t 0 t e b t   d t )
V b u c k ˙ = e b t   . (   C b k   .   V C ˙ + K I b k   . ( t 0 t e b t   d t ) )  
When we replace the derivative of the buck converter voltage V C ˙ from Equation (126), we get:
V b u c k ˙ = e b t   . (     C b k   . (   I L b k C b k   I o b k C b k ) + K I b k   . ( t 0 t e b t   d t ) )
Equation (133) can be simplified in the following manner:
V b u c k ˙ = e b t   . (     ( I L b k I o b k )   + K I b k   . ( t 0 t e b t   d t ) )
To achieve asymptotic convergence of the voltage error, it is necessary that the derivative of V b u c k remains negative, which leads to the condition below:
  I L b k I o b k   + K I b k   . t 0 t e b t   d t = K p b k . e b t
where K p b k is a constant positive proportional gain.
Then, from Equation (135), I L b k r e f can be calculated as follows:
I L b k r e f = I o b k   + K I b k   . t 0 t e b t   d t + K p b k   . e b t
The buck converter controller is depicted in Figure 23.
The non linear load is depicted in Figure 24.

3. Case Study

Case 1: The inverter loading a three-phase balanced load.
Steady-State and Dynamic Performance Evaluation:
In the initial simulation scenario, a four-leg inverter is used to supply a balanced three-phase resistive load, where each phase has a resistance of R = 10   Ω . The objective is to assess the effectiveness of the proposed integral backstepping controller under steady-state conditions. Key metrics include voltage harmonic distortion, voltage regulation accuracy, and neutral current behavior. The simulation results, shown in Figure 25, Figure 26 and Figure 27, demonstrate that the inverter produces high-quality output voltages with extremely low total harmonic distortion. Specifically, THD values were measured at 0.09% for phase a, and 0.08% for phases b and c—well below industry-accepted thresholds. Additionally, the steady-state voltage error e v ( % ) , represented in Figure 28, remains under 0.2%, indicating excellent voltage control performance. Because the system operates with a balanced load, the net current through the neutral conductor is minimal. This is confirmed in Figure 29, which shows that the neutral current is effectively negligible, validating the current symmetry across all three phases.
Current Control and Transient Response:
The controller’s ability to handle fast transients is illustrated in Figure 30, where the line currents rapidly track their respective reference signals and settle within 0.005 s. This fast dynamic response highlights both the precision and robustness of the inverter control architecture.
Battery Management and Power Balance:
The system also incorporates a battery energy storage system to maintain the power balance between generation and consumption. The battery control relies on an integral backstepping approach to regulate current and a sliding mode-based (STA) controller to stabilize the DC-link voltage. As shown in Figure 31, neither the solid oxide fuel cell (SOFC) nor the dump load engages during this period, since the battery’s state of charge (SOC) stays within its safe operating range (between 0.2 and 0.8). Moreover, Figure 32 reveals that the DC-link voltage exhibits minimal overshoot of less than 1 V and very low ripple, emphasizing the control system’s stability and effectiveness under varying conditions.
PV and Wind System Performance:
The photovoltaic (PV) subsystem’s voltage control performance is highlighted in Figure 33 and Figure 34, where the PV input voltage quickly and accurately follows its reference, achieving convergence in under 0.005 s. This performance remains consistent even with changes in irradiance levels, as illustrated in Figure 35. Regarding the wind energy system, a detailed evaluation is provided in Section 2.3, supported by figures that include measurements of electromagnetic torque, rotor speed of the PMSG, inductor current (measured and reference), power coefficient, and tip speed ratio. These results confirm that the wind energy conversion system is successfully regulated by the proposed integral backstepping controller, keeping the turbine operation within the optimal range defined by the MPPT strategy. This ensures efficient energy harvesting from wind resources while maintaining system stability. The load current is depicted in Figure 36, the load voltage is depicted in Figure 37, the currents i L a r e f and i L a are depicted in Figure 38, the currents i L b r e f and i L b are depicted in Figure 39, the currents i L c r e f , i L c are depicted in Figure 40.
Case 2: The inverter loading a single-phase load.
To explore the dynamic response and voltage regulation capabilities of the proposed control strategy under non-ideal conditions, the inverter is tested with an unbalanced load. Specifically, a single-phase resistive load of ( R a = 15 Ω ) is connected to phase a, while phases b and c remain open. This test case introduces significant phase asymmetry and serves to verify the controller’s capacity to maintain voltage stability, suppress harmonics, and ensure system balance.
Voltage Quality and Harmonic Distortion:
Despite the unbalanced loading, the output voltage waveform in phase a remains highly sinusoidal. As illustrated in Figure 41 the total harmonic distortion (THD) of the phase a voltage is only 0.09%. This low value, even under asymmetrical load conditions, indicates that the control algorithm maintains high voltage quality and actively suppresses harmonic content introduced by the imbalance. Performance like this is typically difficult to achieve in conventional three-leg inverters without complex compensating techniques.
Voltage Regulation and Tracking Accuracy:
The ability of the controller to regulate voltage is further evidenced in Figure 42 which presents the steady-state load voltage error e v ( % ) . The voltage deviation remains below 0.3%, confirming that the proposed controller can maintain output voltage levels very close to the desired reference, even when only one phase is loaded. This accurate tracking demonstrates the robustness of the integral backstepping control method and its effectiveness in decoupling and regulating individual phase voltages.
DC-Link Voltage Stability:
The behavior of the DC-link voltage under unbalanced conditions is a critical indicator of overall system stability. In Figure 43, the input DC-link voltage remains tightly regulated around 880 V. The transient response is notably fast, with the voltage settling quickly after initial disturbances and exhibiting minimal overshoot. Importantly, the voltage ripple does not increase significantly during the unbalanced loading scenario, which highlights a key advantage of the four-leg inverter: the presence of the fourth leg allows neutral current circulation, preventing unbalanced currents from affecting the DC side. In contrast to three-leg configurations—where unbalanced loads often lead to DC-link voltage fluctuations—the four-leg design effectively isolates the DC-link from such disturbances. This structural benefit enhances the overall power quality and reliability of the system in real-world applications where load symmetry cannot be guaranteed.
Voltage Decoupling and Neutral Current Management:
The voltage waveforms across all three phases are shown in Figure 44, where each phase voltage maintains its reference profile without mutual interference. The unbalanced load applied to phase a does not affect the waveforms of phases b and c, indicating that the controller successfully decouples the phase voltages and regulates them independently. This level of control precision is essential for multi-phase systems operating in dynamic and unbalanced environments.
The phase and neutral current behavior is analyzed in Figure 45 and Figure 46. The current in phase a and the neutral line are nearly identical in magnitude but opposite in phase (approximately 180° out of phase). This behavior confirms that the fourth leg effectively provides a return path for the unbalanced current, ensuring that the inverter can safely and accurately handle non-zero neutral currents without degrading performance.
Case 3: The inverter loading a three-phase nonlinear load.
As nonlinear loads become increasingly prevalent in residential, industrial, and renewable-integrated systems—especially those using power electronics such as rectifiers, motor drives, or switched-mode power supplies—the ability of stand-alone inverters to manage such conditions is critical. These loads typically inject substantial harmonic currents into the power supply, degrading voltage quality and potentially affecting both the inverter and connected sensitive equipment. In this context, the four-leg inverter topology, combined with the proposed integral backstepping control strategy, is rigorously tested against three representative nonlinear load scenarios: resistive, inductive DC, and capacitive DC loads. These load types introduce progressively more distortion, offering a comprehensive evaluation of the inverter’s harmonic mitigation and dynamic voltage control capabilities.
Impact of Load Type on Current Waveforms:
Simulation results reveal that, with the nonlinear presented in Section 2.3, the inverter current remains close to sinusoidal. This is attributed to the linear nature of the voltage–current relationship in resistive elements, even when subjected to switching events or waveform distortions. Consequently, the inverter output voltage also retains a clean sinusoidal profile with negligible deviation. However, when the load involves inductive or capacitive DC characteristics, the situation changes significantly. These elements introduce nonlinear dynamics, such as current lags (in inductive cases) and sharp charging/discharging behavior (in capacitive cases), leading to pronounced waveform distortion. Among all test conditions, the capacitive DC load imposes the most severe current distortion, manifesting as sharp, pulse-like currents due to the sudden energy absorption behavior of the capacitor. These current spikes represent high-frequency harmonics that can destabilize conventional inverter systems.
Inverter Response and Harmonic Mitigation:
Despite these harsh conditions, the inverter successfully preserves voltage waveform quality. Figure 47 illustrates that even with a heavily distorted current drawn by the capacitive load, the output voltage remains nearly sinusoidal. This outcome highlights the controller’s effectiveness in decoupling the output voltage from the current distortion, an essential feature for maintaining power quality in real-world nonlinear load environments.
Furthermore, the measured THD values of the output voltages across all phases, as shown in Figure 48, Figure 49 and Figure 50 are impressively low. Even in the worst-case harmonic scenario, the THD remains under 0.36%, which is far superior to the 8% upper limit defined by the IEC 62040-3 standard for stand-alone power systems [40]. The steady-state voltage error e v is less than 0.7% Figure 51. This performance reinforces the inverter’s suitability for deployment in critical or sensitive environments, such as off-grid systems, remote energy stations, or small-scale industrial plants.
Controller Contribution and Decoupling Benefits:
The results affirm the role of the integral backstepping controller in dynamically adjusting inverter switching actions to suppress voltage distortion. The ability to maintain precise output control, independent of load behavior, is further enhanced by the four-leg inverter architecture, which isolates and compensates for neutral current paths—something that three-leg systems inherently lack.
As observed in Figure 52 the neutral wire carries non-zero current, confirming the presence of zero-sequence components generated by the nonlinear load. The fourth leg ensures that this current is safely and accurately processed, preventing imbalance in the output phase voltages.
Stability of the DC-Link Voltage:
A key element in ensuring system-wide performance is the stability of the DC-link voltage, which acts as the intermediary energy buffer between generation sources (e.g., PV, wind, battery) and the AC load. Figure 53 confirms that the DC-link voltage remains centered around 880 V, with minimal ripple despite the high harmonic stress. This stability is achieved through a hybrid control strategy involving integral backstepping for smooth current regulation from the battery and electrolyzer; STA (super-twisting algorithm) control to control the DC-link voltage; and a Lyapunov function-based adaptive controller to control the voltage V e   of the electrolyzer.
These coordinated efforts ensure that even under nonlinear and highly variable loading conditions, the inverter operates within its desired voltage margin, minimizing stress on components and improving overall reliability.
The results of this study confirm that the proposed system offers a resilient solution for real-world applications involving nonlinear or unbalanced loads. The combination of low voltage distortion under nonlinear conditions, fast and stable DC-link control, effective neutral current handling, and compliance with international harmonic standards makes this system an excellent applicant for stand-alone power systems, particularly in renewable energy microgrids, electric vehicle charging infrastructure, and rural electrification projects where load profiles are unpredictable.
Currents under nonlinear load is depicted in Figure 54.
Case 4: The inverter loading under 100% load changes.
The comprehensive evaluation of the proposed system demonstrated its superior performance in managing dynamic load variations and maintaining system stability under a wide range of operating conditions. The test results provide valuable insights into the robustness of the proposed control method, especially under scenarios involving fluctuations in solar irradiance (Figure 55), wind conditions (described in Section 2.3), and load changes, all of which are common in real-world microgrid applications.
System Response to Load Variations:
In the load variation tests, the proposed control method was able to maintain load voltages within an acceptable range, even when subjected to significant load changes. The 100% load change scenario provided a challenging test case for the system, with both balanced and unbalanced resistive loads being applied in succession. A balanced three-phase resistive load (15 Ω per phase) was applied from 0.75 s to 1.5 s, and an unbalanced resistive load with values of 17 Ω, 15 Ω, and 20 Ω for phases a, b, and c, respectively, was applied from 2.0 s to 2.5 s. During the balanced load step, the system demonstrated its ability to recover from a maximum voltage drop of 23.3 V in phase “c” (Figure 56) within 1 ms, restoring the load voltage with a minimal variation of 8.5%. Similarly, under the unbalanced load condition, the maximum voltage drop of 35 V in phase “b” (Figure 57) was efficiently corrected, with the load voltage restored within 1 ms and a maximum voltage deviation of 13%. The voltage of the load reaches its reference in less than 0.005 s (Figure 58). These rapid recovery and tracking times are critical for ensuring the stability and reliability of the microgrid, especially in stand-alone applications where voltage deviations beyond certain limits can lead to equipment damage or inefficient operation. As mentioned, the IEC62040-3 international standard permits a voltage deviation of up to ±30% for stand-alone applications, but the proposed system outperforms this specification, achieving voltage recovery times faster than the prescribed 5 ms, and maintaining voltage deviations well within the acceptable range.
Power Quality and Harmonic Distortion:
The total harmonic distortion (THD) analysis is another crucial aspect of the system’s performance, as excessive harmonic distortion can degrade the quality of the electrical supply, reduce the efficiency of connected loads, and potentially damage sensitive equipment. The THD of the three-phase load voltages remained below 0.09% (Figure 59, Figure 60, Figure 61, Figure 62, Figure 63 and Figure 64), and the value of the steady-state error e v (%) was lower than 0.2% (Figure 65), well within the limits set by international standards for power quality. This indicates that the proposed inverter control effectively minimizes harmonic distortion, ensuring that the power supplied to the load is of high quality. The ability to maintain low THD is particularly important in systems that rely on sensitive electronic equipment, where voltage waveform distortion can lead to malfunction or inefficiency. The results further validate that the proposed control strategy can provide clean, stable power even under varying load conditions.
Dynamic Power Management with Energy Storage and SOFC:
Another key feature of the system is its ability to maintain the power balance between generation and load demand through the integration of an energy storage system (battery) and a solid oxide fuel cell (SOFC) (Section 2.4.1 Various powers). The battery and SOFC work in tandem to ensure that power demand is met even when the renewable generation (solar and wind) fluctuates. The SOFC begins supplying power when the battery’s state of charge (SOC) drops below a threshold of 0.2 (Figure 66), ensuring a continuous and reliable power supply to the load. This feature highlights the system’s ability to handle transient periods where renewable generation may not be sufficient to meet demand, offering a resilient solution for microgrid applications that require a constant power supply. The battery and SOFC also play a crucial role in reducing the reliance on external grid connections, which is particularly beneficial in remote or off-grid locations.
DC-Link Voltage Regulation and Controller Performance:
The input DC-link voltage was maintained at a stable value of approximately 880 V, with minimal ripple (see Section 2.4.2 (Proof)). This stable DC-link voltage is a key factor in the efficient operation of the inverter, as any significant fluctuations could impact the inverter’s performance and lead to inefficiencies. The use of advanced control methods, including the integral backstepping controller for current regulation and the STA and Lyapunov-based controllers for DC-link voltage management, ensured the robustness and accuracy of the system’s voltage regulation. Furthermore, the response times of the current controller and voltage controller were notably fast, with the current controller showing faster dynamics than the voltage controller, as shown in (Section 2.4.2).
This fast response time is essential for maintaining system stability during load transients and minimizing voltage fluctuations.
Inverter Performance and Efficiency:
The inverter performance was evaluated by examining the input DC power (P_DC) and the output AC power (P_AC), as shown in Figure 67. The results indicate that the inverter operates with negligible losses, reinforcing the system’s overall efficiency. In particular, the ability of the inverter to quickly adjust to variations in the input voltage from the PV system—reaching its reference value in less than 0.005 s—further underscores the system’s rapid response to changing conditions (Figure 68 and Figure 69).
This fast response time is vital in maintaining stable and efficient operation in microgrids, where the power generation from renewable sources like solar and wind can be intermittent. The inverter’s ability to quickly adapt to changes in input power allows it to seamlessly integrate with the renewable energy sources while ensuring that the power quality and system stability are maintained.
Current Control and Zero-Sequence Components:
The fourth wire current (Figure 70, Figure 71 and Figure 72), which indicates the presence of zero-sequence components, was non-zero only when the inverter was supplying an unbalanced load. This behavior is consistent with the expected operation of the system, as unbalanced loads generate zero-sequence currents, which the system must handle appropriately. In contrast, when the load was balanced or no load was present, the fourth wire current remained zero. Figure 73, Figure 74 and Figure 75 reveal that the line currents follow their references and reach their references in less than 0.005 s. In a 100% descending step load, the current in all three phases was zero and the load voltage tolerances were not considerable (Figure 76 and Figure 77). The load voltage under unbalanced load and no load is depicted in Figure 78, the load current under balanced and no load is depicted in Figure 79, the current of 100% load step change under no load and unbalanced load is depicted in Figure 80, the current i L a and its reference i L a r e f under balanced load and no load is depicted in Figure 81 and Figure 82, the Current i L a and its reference i L a r e f under no load and unbalanced load is depicted in Figure 83, the current i L b and its reference i L b r e f under no load and balanced load is depicted in Figure 84, the current i L b and its reference i L b r e f under no load and unbalanced load is depicted in Figure 85, the current i L c and its reference i L c r e f under no load and unbalanced load is depicted in Figure 86, the voltage 100% load step change under unbalanced load and no load is depicted in Figure 87. This further validates the system’s ability to detect and manage unbalanced load conditions, a common challenge in microgrid systems.
Case 5: The inverter loading under 100% load changes and reference voltages variation.
In certain specialized applications, there is a need to supply loads with different voltage levels, particularly in stand-alone renewable energy-based distributed generation systems. This can include scenarios where loads require different voltage amplitudes, or where there is a need for unbalanced three-phase voltages. A four-leg inverter is an ideal solution for such applications, as it is capable of generating three-phase voltages with unbalanced characteristics, meeting these specific needs. This flexibility in voltage generation makes the four-leg inverter an excellent choice for voltage stabilization and balancing applications, especially in systems with varying load demands or renewable energy generation sources.
Unbalanced Voltage Generation and Control System Performance:
As demonstrated in the simulation results shown in Figure 88 and Figure 89, the four-leg inverter is capable of generating unbalanced three-phase voltages, which is essential for certain applications where loads require unbalanced or differing voltage amplitudes. The simulation results clearly confirm that the inverter can handle these unbalanced conditions effectively and precisely, showcasing the inverter’s versatility in providing both balanced and unbalanced load voltages. A key part of evaluating the system’s performance involves assessing the inverter’s ability to follow reference voltage tracking during step changes in reference load voltages. In the test, at t = 0.4 s to 0.85 s, phase “c” did not change, while phase “b” and phase “a” experienced 234.5 and 155.6 volts, respectively; step changes in reference balanced voltages were applied at different times, including a 50% falling step change from 0.95 s to 1.3 s and a rising step change from 1.3 s to the end of the simulation. In addition, various load changes were applied, including a 100% balanced resistive load step change between 0.75 s and 1.5 s, a 100% unbalanced resistive load step change between 1.666 s and 2.166 s, and a 100% nonlinear load step change between 2.35334 s and 2.8666 s. The results of these tests, as shown in Figure 90, indicate that the inverter successfully tracked the reference voltages in less than 0.005 s, achieving high performance in voltage regulation. For example, when phase “b” and phase “a” experienced voltage changes of 234.5 V and 155.6 V, respectively, during a voltage reference change, the inverter was able to bring the voltages back to their reference values quickly and precisely.
Battery Control and Power Balancing:
As seen in Figure 91, the battery plays a crucial role in maintaining the power balance between the production and the demand of the load. In the test scenario, when the state of charge (SOC) Figure 92 of the battery reached 0.8, the dump load was activated to help balance the system. The battery also effectively followed the load variations between 0.4 s and 0.85 s, adjusting for the unbalanced load caused by the difference in phase voltages at the same time. This action was vital in ensuring that the inverter was able to maintain power quality and stability despite the fluctuations in the reference voltages. The performance of the battery and dump load controllers was further validated by observing the small overshoot of less than 3 V and minimal ripple in the input DC-link voltage, as shown in Figure 93. This is a clear indication that the proposed controllers (integral backstepping for the battery current and STA for the DC-link voltage, and integral backstepping and PI for the dump load) are highly effective in ensuring smooth operation of the system.
Response to Voltage Reference Step Changes:
The dynamic response of the system to step changes in reference voltages was evaluated in terms of the load voltage’s ability to return to the reference value. As shown in Figure 89, the maximum voltage drop of about 23 V occurred for phase “c” when the reference voltage changed. The system quickly restored the voltage within a very short time interval, typically less than 1 ms, demonstrating its excellent voltage recovery capability. A similar observation can be made in Figure 94, where a maximum voltage drop of 27 V occurred in phases “c” and “b” when the load changed from no load to a 100% balanced load. The control system was able to retrieve the voltage within a very short time, maintaining high stability. Additionally, the system’s ability to handle the transition from unbalanced to balanced loads was also assessed. As shown in Figure 95, when the load changed from no load to a 100% unbalanced load, the system experienced a maximum voltage drop of about 35 V for phases “c” and “b”. However, even under these conditions, the inverter successfully restored the voltages in less than 1 ms, showcasing its ability to rapidly adapt to varying load conditions.
Compliance with IEC Standards:
According to the IEC62040-3 international standard, a maximum of ±30% voltage deviation is allowed for stand-alone applications during load changes, provided that these deviations occur within a 5 ms window. The proposed control system, however, demonstrated that it can retrieve the load voltages in less than 1 ms, with a maximum voltage deviation of 35 V. This exceeds the specifications set by the standard, confirming the system’s rapid recovery capabilities and its suitability for real-time applications requiring quick voltage adjustments.
Power Quality and THD:
The THD% of the three-phase load voltages were analyzed and presented in Figure 96, Figure 97, Figure 98, Figure 99, Figure 100, Figure 101 and Figure 102, where the value of e v (%) was found to be lower than 0.2% (Figure 103). A THD value of less than 0.40% is well below the IEEE 519 limits for all voltage levels, indicating a high-quality power system with minimal harmonic distortion, which is a testament to the effectiveness of the proposed control strategy. The control system effectively minimized any harmonic distortions, ensuring that the load voltages remained clean and stable, which is especially important for sensitive equipment that could be damaged by high harmonic levels.
Current Control and Zero-Sequence Components:
The current of the fourth wire, which represents the zero-sequence component of the load current, was shown to be non-zero when the inverter was supplying unbalanced loads or when the reference voltage was variable Figure 104. As expected, this zero-sequence current was zero when the load was balanced or when there was no load, confirming that the system properly identifies and manages unbalanced conditions. Figure 105, Figure 106, Figure 107, Figure 108, Figure 109, Figure 110, Figure 111, Figure 112, Figure 113, Figure 114 and Figure 115 reveal that the line currents follow their references and attain their references in less than 0.005 s which confirms the good performance and the robustness of the proposed control of the inverter (integral backstepping controller). This feature adds flexibility and robustness to the inverter’s design, enabling it to work effectively under a wide range of conditions.
Inverter and Dump Load Control:
The performance of the inverter and dump load controllers was further validated through their fast response times in following their respective reference values. As shown in Figure 116 and Figure 117, the inductor current of the buck converter I L b k r e f attained its reference value in less than 0.001 s, and the measured load voltage attained the reference voltage value in less than 0.01 s (Figure 93), indicating the high-speed operation of the inverter’s current controller and confirming the excellent performance and robustness of the dump load controller, which employed an integral backstepping controller for current regulation and a Lyapunov-based controller for electrolyzer voltage regulation.
The irradiation is depicted in Figure 118 and the current of the load is depicted in Figure 119 and the wind conditions (described in Section 2.3).

4. Conclusions

This work presents a robust and comprehensive control strategy for voltage regulation in DC microgrids, validated through extensive simulation studies. The proposed decentralized control scheme exhibits excellent performance under both steady-state and transient conditions, effectively regulating voltage even in the presence of linear, nonlinear, and unbalanced load profiles. The system consistently maintains sinusoidal and symmetrical voltage waveforms, with fast dynamic response and low overshoot, thereby ensuring high power quality and operational reliability. The decentralized nature of the control architecture, which relies solely on local measurements, eliminates the need for communication between distributed units, enhancing the system’s scalability, modularity, and fault resilience. The theoretical stability of the microgrid is rigorously demonstrated using Lyapunov-based methods, reinforcing the reliability of the proposed control design. A tailored control approach is employed for each component of the microgrid:
The battery system is managed using an integral backstepping current controller coupled with a super-twisting algorithm (STA) for voltage regulation.
The SOFC employs an integral backstepping current controller along with a Lyapunov-based voltage controller.
A hybrid nonlinear controller combining integral backstepping and STA is implemented for the PV generator.
The wind energy system is governed by an integral backstepping controller.
Control of the dump load (aqua-electrolyzer) involves a multi-level strategy: integral backstepping for inductor current control, a PI controller for regulating the DC-link voltage, and a Lyapunov-based approach for managing the electrolyzer voltage.
The load-side voltage source inverter (VSI) is controlled using an integral backstepping method.
Simulation results validate the effectiveness and robustness of the proposed controllers across various operating conditions. The system exhibits strong voltage regulation performance and stable behavior under dynamic and complex loading scenarios. Furthermore, the control strategy’s performance under unbalanced single-phase load conditions highlights the capability of the four-leg inverter configuration. The system successfully maintains voltage waveform quality, ensures accurate voltage tracking, stabilizes the DC-link voltage, mitigates neutral current disturbances, and achieves phase decoupling. These attributes confirm the suitability of the proposed control framework for practical deployment in decentralized energy systems, particularly in applications characterized by variable or unpredictable loads—such as residential microgrids, renewable energy sources, and industrial settings with significant single-phase equipment presence.

Author Contributions

Conceptualization, K.M.T. and L.S.; methodology, K.M.T. and L.S.; software, K.M.T. and L.S.; validation, K.M.T. and L.S.; formal analysis, K.M.T. and L.S.; investigation, K.M.T. and L.S.; resources, K.M.T. and L.S.; data curation, K.M.T. and L.S.; writing—original draft preparation, K.M.T. and L.S.; writing—review and editing, K.M.T. and L.S.; visualization, K.M.T. and L.S.; supervision, K.M.T. and L.S.; project administration, L.S. All authors have read and agreed to the published version of the manuscript.

Funding

PEESE (Processes, Energetics, Environments and Electrical Systems) Research Laboratory LR18ES34, National Engineering School of Gabes, University of Gabes, St Omar Ibn-Elkhattab, Zrig, Gabes 6029, Tunisia.

Data Availability Statement

Data are contained within this article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Haddad, A.; Ramadan, M.; Khaled, M.; Ramadan, H.S.; Becherif, M. Triple hybrid system coupling fuel cell with wind turbine and thermal solar system. Int. J. Hydrogen Energy 2019, 45, 11484–11491. [Google Scholar] [CrossRef]
  2. Batiyah, S.; Sharma, R.; Abdelwahed, S.; Zohrabi, N. An MPC-based power management of standalone DC microgrid with energy storage. Int. J. Electr. Power Energy Syst. 2020, 120, 105949. [Google Scholar] [CrossRef]
  3. Xu, Y.; Shen, X. Optimal Control Based Energy Management of Multiple Energy Storage Systems in a Microgrid. IEEE Access 2018, 6, 32925–32934. [Google Scholar] [CrossRef]
  4. Balsamo, F.; De Falco, P.; Mottola, F.; Pagano, M. Power Flow Approach for Modeling Shipboard Power System in Presence of Energy Storage and Energy Management Systems. IEEE Trans. Energy Convers. 2020, 35, 1944–1953. [Google Scholar] [CrossRef]
  5. Armghan, A.; Azeem, M.; Armghan, H.; Yang, M.; Alenezi, F.; Hassan, M. Dynamical Operation Based Robust Nonlinear Control of DC Microgrid Considering Renewable Energy Integration. Energies 2021, 14, 3988. [Google Scholar] [CrossRef]
  6. Menaga, D.; Sankaranarayanan, V. A novel nonlinear sliding mode controller for a single stage grid-connected photovoltaic system. ISA Trans. 2020, 107, 329–339. [Google Scholar]
  7. Jiménez Carrizosa, M.; Iovine, A.; Damm, G.; Alou, P. Droop-inspired nonlinear control of a DC microgrid for integration of electrical mobilityproviding ancillary services to the AC main grid. IEEE Trans. Smart Grid 2022, 13, 4113–4122. [Google Scholar] [CrossRef]
  8. Huang, S.; Wang, J.; Xiong, L.; Liu, J.; Li, P.; Wang, Z.; Yao, G. Fixed-time backstepping fractional-order sliding modeexcitation control for performance improvement of power system. IEEE Trans. Circuits Syst. I Regul. Pap. 2022, 69, 956–969. [Google Scholar] [CrossRef]
  9. Rahman Habib, H.U.; Wang, S.; Elmorshedy, M.F.; Waqar, A. Performance analysis of combined model-predictive and slide-mode control for power converters in renewable energy systems. In Proceedings of the 2019 22nd International Conference on Electrical Machines and Systems ICEMS 2019, Harbin, China, 11–14 August 2019; pp. 1–5. [Google Scholar]
  10. Aatabe, M.; El Guezar, F.; Vargas, A.N.; Bouzahir, H. A novel stochastic maximum power point tracking control for off-grid standalone photovoltaic systems with unpredictable load demand. Energy 2021, 235, 121272. [Google Scholar] [CrossRef]
  11. Nikamet, V.; Kalkhambkar, V. A review on control strategies for microgrids with distributed energy resources, energy storage systems, and electric vehicles. Int. Trans. Electr. Energy Syst. 2021, 31, e12607. [Google Scholar]
  12. Lliuyacc, R.; Mauricio, J.M.; Gomez-Exposito, A.; Savaghebi, M.; Guerrero, J.M. Grid-forming VSC control in four-wire systems with unbalanced nonlinear loads. Electr. Power Syst. Res. 2017, 152, 249–256. [Google Scholar] [CrossRef]
  13. Verdelho, P.; Marques, G.D. Four-wire current-regulated PWM voltage converter. IEEE Trans. Ind. Electron. 1988, 45, 761–770. [Google Scholar] [CrossRef]
  14. Thomas, T.; Haddad, K.; Joos, G.; Jaafari, A. Performance evaluation of three phase three and four wire active filters. In Proceedings of the Conference Record of the 1996 IEEE Industry Applications Conference 31st IAS Annual Meeting (IAS), San Diego, CA, USA, 6–10 October 1996; Volume 2, pp. 1016–1023. [Google Scholar]
  15. Fabricio, E.L.L.; Junior, S.C.S.; Jacobina, C.B.; de RossiterCorrea, M.B. Analysis of main topologies of shunt active power Filters appliedto four-wire systems. IEEE Trans. Power Electron. 2018, 33, 2100–2112. [Google Scholar] [CrossRef]
  16. Demirkutlu, E.; Cetinkaya, S.; Hava, A.M. Output voltage control of a four-leg inverter based three-phase UPS by means of stationary frameresonant filter banks. In Proceedings of the IEEE International Electric Machines Drives Conference, Antalya, Turkey, 3–5 May 2007; pp. 880–885. [Google Scholar]
  17. Naidu, S.R.; Fernandes, D.A. Dynamic voltage restorer based on a four-leg voltage source converter. IET Gener. Transm. Distrib. 2009, 3, 437–447. [Google Scholar] [CrossRef]
  18. Khadkikar, V.; Chandra, A. A novel structure for three-phase fourwire distribution system utilizing unified power quality conditioner (UPQC). IEEE Trans. Ind. Appl. 2009, 45, 1897–1902. [Google Scholar] [CrossRef]
  19. Lidozzi, A.; Ji, C.; Solero, L.; Crescimbini, F.; Zanchetta, P. Loadadaptive zero-phase-shift direct repetitive control for stand-alone four-leg VSI. IEEE Trans. Ind. Appl. 2016, 52, 4899–4908. [Google Scholar] [CrossRef]
  20. Zhou, X.; Tang, F.; Loh, P.C.; Jin, X.; Cao, W. Four-leg converters with improved common current sharing and selective voltage-quality enhancement for islanded microgrids. IEEE Trans. Power Deliv. 2016, 31, 522–531. [Google Scholar] [CrossRef]
  21. Guo, X.; He, R.; Jian, J.; Lu, Z.; Sun, X.; Guerrero, J.M. Leakage current elimination of four-leg inverter for transformerless three-phase PV systems. IEEE Trans. Power Electron. 2016, 31, 1841–1846. [Google Scholar] [CrossRef]
  22. Nasiri, R.; Radan, A. Pole-placement control strategy for 4-leg voltage-source inverters. In Proceedings of the 2010 1st Power Electronic Drive Systems Technologies Conference (PEDSTC), Tehran, Iran, 17–18 February 2010; pp. 74–79. [Google Scholar]
  23. Abrishamifar, A.; Ahmad, A.A.; Mohamadian, M. Fixed switching frequency sliding mode control for single-phase unipolar inverters. IEEE Trans. Power Electron. 2012, 27, 2507–2514. [Google Scholar] [CrossRef]
  24. Pichan, M.; Rastegar, H.; Monfared, M. Deadbeat control of the stand-alone four-leg inverterconsidering the effect of the neutral line inductor. IEEE Trans. Ind. Electron. 2016, 64, 2592–2601. [Google Scholar] [CrossRef]
  25. Fayyaz, M.M.; Syed, I.M.; Meng, Y.; Aman, M.N. Comprehensive predictive control model for a three-phase four-legged inverter. Energies 2023, 16, 2650. [Google Scholar] [CrossRef]
  26. Hui, W. Control method of Three-phase Four-leg converter based on repetitive control. In IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2018. [Google Scholar]
  27. Lidozzi, A.; Benedetto, M.D.; Bifaretti, S.; Solero, L.; Crescimbini, F. Resonant controllers with three degrees of freedom for AC power electronic converters. IEEE Trans. Ind. Appl. 2015, 51, 4595–4604. [Google Scholar] [CrossRef]
  28. Utkin, V.; Guldner, J.; Shi, J. Sliding Mode Control in Electro-Mechanical Systems, 2nd ed.; Taylor and Francis: London, UK, 2009. [Google Scholar]
  29. Shtessel, Y.; Taleb, M.; Plestan, F. A novel adaptive-gain supertwisting sliding mode controller:Methodology and application. Automatica 2012, 48, 759–769. [Google Scholar] [CrossRef]
  30. Pati, A.K.; Sahoo, N.C. Adaptive supertwisting sliding mode control for a three-phase singlestage grid-connected differential boost inverter based photovoltaic system. ISA Trans. 2017, 69, 296–306. [Google Scholar] [CrossRef]
  31. Omar, N.; Monem, M.A.; Firouz, Y.; Salminen, J.; Smekens, J.; Hegazy, O.; Gaulous, H.; Mulder, G.; den Bossche, P.V.; Coosemans, T.; et al. Lithium iron phosphate based batter—Assessment of the aging parameters and development of cycle life model. Appl. Energy 2014, 113, 1575–1585. [Google Scholar] [CrossRef]
  32. Saw, L.H.; Somasundaram, K.; Ye, Y.; Tay, A.A.O. Electro-thermal analysis of Lithium Iron Phosphate battery for electric vehicles. J. Power Sources 2014, 249, 231–238. [Google Scholar] [CrossRef]
  33. Tremblay, O.; Dessaint, L.-A. Experimental Validation of a Battery Dynamic Model for EV Applications. World Electr. Veh. J. 2009, 3, 289–298. [Google Scholar] [CrossRef]
  34. Haque, M.E.; Negnevitsky, M.; Muttaqi, K.M. A Novel Control Strategy for a Variable Speed Wind Turbine with a Permanent Magnet Synchronous Generator. IEEE Trans. Ind. Appl. 2010, 46, 331–339. [Google Scholar] [CrossRef]
  35. Padulles, J.; Ault, G.W.; McDonald, J.R. An integrated SOFC plant dynamicmodel for power systems simulation. J. Power Sources 2000, 86, 495–500. [Google Scholar] [CrossRef]
  36. Zhu, Y.; Tomsovic, K. Development of models for analyzing the load-following performance of microturbines and fuel cells. Electr. Power Syst. Res. 2002, 62, 1–11. [Google Scholar] [CrossRef]
  37. Fernandes, D.A.; Costa, F.F.; Vitorino, M.A.; Queiroz, K.I.P.M.; Salvadori, F. Carrier-based PWM scheme for three-phase four-leg inverters. In Proceedings of the IECON 2013—39th Annual Conference of the IEEE Industrial Electronics Society, Vienna, Austria, 10–13 November 2013; pp. 3353–3358. [Google Scholar]
  38. Jacobina, C.B.; Lima, A.M.N.; Da Silva, E.R.C.; Alves, R.N.C.; Seixas, P.F. Digital scalar pulse-width modulation: A simple approach to introduce non-sinusoidal modulating waveforms. IEEE Trans. Power Electron. 2001, 16, 351–359. [Google Scholar] [CrossRef]
  39. Dieguez, P.M.; Ursua, A.; Sanchis, P.; Sopena, C.; Guelbenzu, E.; Gandia, L.M. Thermal performance of commercial alkaline water electrolyzer: Experimental study and mathematical modeling. Int. J. Hydrogen Energy 2008, 33, 7338–7354. [Google Scholar] [CrossRef]
  40. International Electrotechnical Commission (IEC). IEC 62040-3: Uninterruptible Power Systems (UPS)—Part 3: Method of Specifying the Performance and Test Requirements, 2nd ed.; IEC: Geneva, Switzerland, 2011. [Google Scholar]
Figure 1. Microgrid configuration plan.
Figure 1. Microgrid configuration plan.
Cleantechnol 07 00079 g001
Figure 2. Energy management chart.
Figure 2. Energy management chart.
Cleantechnol 07 00079 g002
Figure 3. Power–voltage characteristics of the photovoltaic module measured at 25 °C under different irradiance conditions.
Figure 3. Power–voltage characteristics of the photovoltaic module measured at 25 °C under different irradiance conditions.
Cleantechnol 07 00079 g003
Figure 4. Current–voltage characteristics of the photovoltaic module measured at 25 °C under different irradiance conditions.
Figure 4. Current–voltage characteristics of the photovoltaic module measured at 25 °C under different irradiance conditions.
Cleantechnol 07 00079 g004
Figure 5. Control configuration of the DC-DC boost converter within the photovoltaic system.
Figure 5. Control configuration of the DC-DC boost converter within the photovoltaic system.
Cleantechnol 07 00079 g005
Figure 6. Currents: I b a t r e f and I b a t .
Figure 6. Currents: I b a t r e f and I b a t .
Cleantechnol 07 00079 g006
Figure 7. V d c r e f and V d c .
Figure 7. V d c r e f and V d c .
Cleantechnol 07 00079 g007
Figure 8. Control strategy for a battery-connected DC-DC buck-boost converter.
Figure 8. Control strategy for a battery-connected DC-DC buck-boost converter.
Cleantechnol 07 00079 g008
Figure 9. i w and its reference.
Figure 9. i w and its reference.
Cleantechnol 07 00079 g009
Figure 10. Mechanical torque T m , reference torque T m r e f , and generator electromagnetic torque T e .
Figure 10. Mechanical torque T m , reference torque T m r e f , and generator electromagnetic torque T e .
Cleantechnol 07 00079 g010
Figure 11. Power coefficient Cp in case 1.
Figure 11. Power coefficient Cp in case 1.
Cleantechnol 07 00079 g011
Figure 12. ω m (rad/s) angular speed.
Figure 12. ω m (rad/s) angular speed.
Cleantechnol 07 00079 g012
Figure 13. Tip speed ratio λ.
Figure 13. Tip speed ratio λ.
Cleantechnol 07 00079 g013
Figure 14. Wind speed V w (m/s).
Figure 14. Wind speed V w (m/s).
Cleantechnol 07 00079 g014
Figure 15. Regulation approach for the DC-DC boost converter integrated in wind power system.
Figure 15. Regulation approach for the DC-DC boost converter integrated in wind power system.
Cleantechnol 07 00079 g015
Figure 16. Control strategy of SOFC system.
Figure 16. Control strategy of SOFC system.
Cleantechnol 07 00079 g016
Figure 17. Various powers in case 4:   P f c : Solid oxide fuel cell power, P L o a d : load demand power,   P b : Battery power, P p v : Pv system power, P w i : wind generation system system, P D L : Dump load power.
Figure 17. Various powers in case 4:   P f c : Solid oxide fuel cell power, P L o a d : load demand power,   P b : Battery power, P p v : Pv system power, P w i : wind generation system system, P D L : Dump load power.
Cleantechnol 07 00079 g017
Figure 18. V d c r e f and V d c in case 1 (Proof).
Figure 18. V d c r e f and V d c in case 1 (Proof).
Cleantechnol 07 00079 g018
Figure 19. I F C and its reference I F C r e f (proof).
Figure 19. I F C and its reference I F C r e f (proof).
Cleantechnol 07 00079 g019
Figure 20. The three-phase four-leg inverter.
Figure 20. The three-phase four-leg inverter.
Cleantechnol 07 00079 g020
Figure 21. Voltage controller and current controller of the three-phase four-leg inverter.
Figure 21. Voltage controller and current controller of the three-phase four-leg inverter.
Cleantechnol 07 00079 g021
Figure 22. Topoligical scheme of scalar PWM.
Figure 22. Topoligical scheme of scalar PWM.
Cleantechnol 07 00079 g022
Figure 23. Buck converter controller.
Figure 23. Buck converter controller.
Cleantechnol 07 00079 g023
Figure 24. Structure of nonlinear loads.
Figure 24. Structure of nonlinear loads.
Cleantechnol 07 00079 g024
Figure 25. THD phase a.
Figure 25. THD phase a.
Cleantechnol 07 00079 g025
Figure 26. THD phase b.
Figure 26. THD phase b.
Cleantechnol 07 00079 g026
Figure 27. THD phase c.
Figure 27. THD phase c.
Cleantechnol 07 00079 g027
Figure 28. The value of the steady-state load voltage error e v (%) under balanced three-phase resistive load R = 10   Ω .
Figure 28. The value of the steady-state load voltage error e v (%) under balanced three-phase resistive load R = 10   Ω .
Cleantechnol 07 00079 g028
Figure 29. Neutral current i n .
Figure 29. Neutral current i n .
Cleantechnol 07 00079 g029
Figure 30. i L c r e f and i L c three-phase balanced load (zoomed in).
Figure 30. i L c r e f and i L c three-phase balanced load (zoomed in).
Cleantechnol 07 00079 g030
Figure 31. Different powers case (1): P f c : SOFC power, P L o a d : load demand power,   P b : Battery power, P p v : Pv system power, P w i : Electrical Power Generated by the Wind Turbine, P D L : Dump load power.
Figure 31. Different powers case (1): P f c : SOFC power, P L o a d : load demand power,   P b : Battery power, P p v : Pv system power, P w i : Electrical Power Generated by the Wind Turbine, P D L : Dump load power.
Cleantechnol 07 00079 g031
Figure 32. V d c r e f and V d c (zoomed in).
Figure 32. V d c r e f and V d c (zoomed in).
Cleantechnol 07 00079 g032
Figure 33. V p v r e f and V p v .
Figure 33. V p v r e f and V p v .
Cleantechnol 07 00079 g033
Figure 34. V p v   a n d V p v r e f in case 1.
Figure 34. V p v   a n d V p v r e f in case 1.
Cleantechnol 07 00079 g034
Figure 35. Irradiance.
Figure 35. Irradiance.
Cleantechnol 07 00079 g035
Figure 36. Load current.
Figure 36. Load current.
Cleantechnol 07 00079 g036
Figure 37. Load voltage.
Figure 37. Load voltage.
Cleantechnol 07 00079 g037
Figure 38. i L a r e f and i L a three-phase balanced load.
Figure 38. i L a r e f and i L a three-phase balanced load.
Cleantechnol 07 00079 g038
Figure 39. i L b r e f and i L b three-phase balanced load.
Figure 39. i L b r e f and i L b three-phase balanced load.
Cleantechnol 07 00079 g039
Figure 40. i L c r e f and i L c three-phase balanced load.
Figure 40. i L c r e f and i L c three-phase balanced load.
Cleantechnol 07 00079 g040
Figure 41. THD of phase a under resistive single-phase load.
Figure 41. THD of phase a under resistive single-phase load.
Cleantechnol 07 00079 g041
Figure 42. The value of the steady-state load voltage error e v (%) under resistive single-phase load.
Figure 42. The value of the steady-state load voltage error e v (%) under resistive single-phase load.
Cleantechnol 07 00079 g042
Figure 43. Vdc and Vdcref under resistive single-phase load.
Figure 43. Vdc and Vdcref under resistive single-phase load.
Cleantechnol 07 00079 g043
Figure 44. Results under resistive single-phase load.
Figure 44. Results under resistive single-phase load.
Cleantechnol 07 00079 g044
Figure 45. Results under resistive single-phase load.
Figure 45. Results under resistive single-phase load.
Cleantechnol 07 00079 g045
Figure 46. Results under resistive single-phase load (neutral current).
Figure 46. Results under resistive single-phase load (neutral current).
Cleantechnol 07 00079 g046
Figure 47. Results under nonlinear load.
Figure 47. Results under nonlinear load.
Cleantechnol 07 00079 g047
Figure 48. THD of phase a, nonlinear load.
Figure 48. THD of phase a, nonlinear load.
Cleantechnol 07 00079 g048
Figure 49. THD of phase b, nonlinear load.
Figure 49. THD of phase b, nonlinear load.
Cleantechnol 07 00079 g049
Figure 50. THD of phase c, nonlinear load.
Figure 50. THD of phase c, nonlinear load.
Cleantechnol 07 00079 g050
Figure 51. The value of the steady-state load voltage error e v (%) under nonlinear load.
Figure 51. The value of the steady-state load voltage error e v (%) under nonlinear load.
Cleantechnol 07 00079 g051
Figure 52. Results under nonlinear load (neutral current).
Figure 52. Results under nonlinear load (neutral current).
Cleantechnol 07 00079 g052
Figure 53. Results under nonlinear load (Vdc-Vdcref).
Figure 53. Results under nonlinear load (Vdc-Vdcref).
Cleantechnol 07 00079 g053
Figure 54. Results under nonlinear load.
Figure 54. Results under nonlinear load.
Cleantechnol 07 00079 g054
Figure 55. Irradiance.
Figure 55. Irradiance.
Cleantechnol 07 00079 g055
Figure 56. Voltage 100% load step change: balanced load (resistive).
Figure 56. Voltage 100% load step change: balanced load (resistive).
Cleantechnol 07 00079 g056
Figure 57. Voltage 100% load step change: unbalanced load.
Figure 57. Voltage 100% load step change: unbalanced load.
Cleantechnol 07 00079 g057
Figure 58. Voltage 100% load step change: balanced load (resistive).
Figure 58. Voltage 100% load step change: balanced load (resistive).
Cleantechnol 07 00079 g058
Figure 59. THD of phase b at t = 1 s.
Figure 59. THD of phase b at t = 1 s.
Cleantechnol 07 00079 g059
Figure 60. THD of phase a at t = 1 s.
Figure 60. THD of phase a at t = 1 s.
Cleantechnol 07 00079 g060
Figure 61. THD of phase c at t = 1 s.
Figure 61. THD of phase c at t = 1 s.
Cleantechnol 07 00079 g061
Figure 62. THD of phase a at t = 2.2 s.
Figure 62. THD of phase a at t = 2.2 s.
Cleantechnol 07 00079 g062
Figure 63. THD of phase b at t = 2.2 s.
Figure 63. THD of phase b at t = 2.2 s.
Cleantechnol 07 00079 g063
Figure 64. THD of phase c at t = 2.2 s.
Figure 64. THD of phase c at t = 2.2 s.
Cleantechnol 07 00079 g064
Figure 65. The value of the steady-state load voltage error e v (%).
Figure 65. The value of the steady-state load voltage error e v (%).
Cleantechnol 07 00079 g065
Figure 66. SOC (%).
Figure 66. SOC (%).
Cleantechnol 07 00079 g066
Figure 67. The input power P D C and the output power P A C of the inverter.
Figure 67. The input power P D C and the output power P A C of the inverter.
Cleantechnol 07 00079 g067
Figure 68. V p v and its reference V p v r e f (zoomed in).
Figure 68. V p v and its reference V p v r e f (zoomed in).
Cleantechnol 07 00079 g068
Figure 69. V p v and its reference V p v r e f .
Figure 69. V p v and its reference V p v r e f .
Cleantechnol 07 00079 g069
Figure 70. Neutral current in case 1.
Figure 70. Neutral current in case 1.
Cleantechnol 07 00079 g070
Figure 71. Neutral current (balanced load and no load).
Figure 71. Neutral current (balanced load and no load).
Cleantechnol 07 00079 g071
Figure 72. Neutral current (unbalanced load).
Figure 72. Neutral current (unbalanced load).
Cleantechnol 07 00079 g072
Figure 73. Current i L a and its reference i L a r e f (zoomed in).
Figure 73. Current i L a and its reference i L a r e f (zoomed in).
Cleantechnol 07 00079 g073
Figure 74. Current i L b and its reference i L b r e f (zoomed in).
Figure 74. Current i L b and its reference i L b r e f (zoomed in).
Cleantechnol 07 00079 g074
Figure 75. Current i L c and its reference i L c r e f (zoomed in).
Figure 75. Current i L c and its reference i L c r e f (zoomed in).
Cleantechnol 07 00079 g075
Figure 76. Current 100% load step change: balanced load (resistive) and no load.
Figure 76. Current 100% load step change: balanced load (resistive) and no load.
Cleantechnol 07 00079 g076
Figure 77. Current 100% load step change: unbalanced load and no load.
Figure 77. Current 100% load step change: unbalanced load and no load.
Cleantechnol 07 00079 g077
Figure 78. Voltage 100% load step change: unbalanced load and no load.
Figure 78. Voltage 100% load step change: unbalanced load and no load.
Cleantechnol 07 00079 g078
Figure 79. Load current. Balanced and no load.
Figure 79. Load current. Balanced and no load.
Cleantechnol 07 00079 g079
Figure 80. Current 100% load step change: no load; unbalanced load.
Figure 80. Current 100% load step change: no load; unbalanced load.
Cleantechnol 07 00079 g080
Figure 81. Current i L a and its reference i L a r e f . Balanced load and no load.
Figure 81. Current i L a and its reference i L a r e f . Balanced load and no load.
Cleantechnol 07 00079 g081
Figure 82. Current i L a and its reference i L a r e f . Balanced load and no load.
Figure 82. Current i L a and its reference i L a r e f . Balanced load and no load.
Cleantechnol 07 00079 g082
Figure 83. Current i L a and its reference i L a r e f . No load and unbalanced load.
Figure 83. Current i L a and its reference i L a r e f . No load and unbalanced load.
Cleantechnol 07 00079 g083
Figure 84. Current i L b and its reference i L b r e f . No load and balanced load.
Figure 84. Current i L b and its reference i L b r e f . No load and balanced load.
Cleantechnol 07 00079 g084
Figure 85. Current i L b and its reference i L b r e f . No load and unbalanced load.
Figure 85. Current i L b and its reference i L b r e f . No load and unbalanced load.
Cleantechnol 07 00079 g085
Figure 86. Current i L c and its reference i L c r e f . No load and unbalanced load.
Figure 86. Current i L c and its reference i L c r e f . No load and unbalanced load.
Cleantechnol 07 00079 g086
Figure 87. Voltage 100% load step change: unbalanced load and no load.
Figure 87. Voltage 100% load step change: unbalanced load and no load.
Cleantechnol 07 00079 g087
Figure 88. Effects of voltage reference step change on measured load voltage.
Figure 88. Effects of voltage reference step change on measured load voltage.
Cleantechnol 07 00079 g088
Figure 89. Load voltage (zoomed in).
Figure 89. Load voltage (zoomed in).
Cleantechnol 07 00079 g089
Figure 90. Load voltage (zoomed in).
Figure 90. Load voltage (zoomed in).
Cleantechnol 07 00079 g090
Figure 91. Different powers in case 5: P f c : SOFC power, P L o a d : Load demand power,   P b : Battery power, P p v : Pv generation power, P w i : wind generation system, P D L : Electrolyzer power.
Figure 91. Different powers in case 5: P f c : SOFC power, P L o a d : Load demand power,   P b : Battery power, P p v : Pv generation power, P w i : wind generation system, P D L : Electrolyzer power.
Cleantechnol 07 00079 g091
Figure 92. SOC (%).
Figure 92. SOC (%).
Cleantechnol 07 00079 g092
Figure 93. V d c r e f and V d c .
Figure 93. V d c r e f and V d c .
Cleantechnol 07 00079 g093
Figure 94. Load voltage (zoomed in).
Figure 94. Load voltage (zoomed in).
Cleantechnol 07 00079 g094
Figure 95. Load voltage (zoomed in).
Figure 95. Load voltage (zoomed in).
Cleantechnol 07 00079 g095
Figure 96. THD of phase c at t = 0.4 s.
Figure 96. THD of phase c at t = 0.4 s.
Cleantechnol 07 00079 g096
Figure 97. THD of phase a at t = 0.5 s.
Figure 97. THD of phase a at t = 0.5 s.
Cleantechnol 07 00079 g097
Figure 98. THD of phase b at t = 0.5 s.
Figure 98. THD of phase b at t = 0.5 s.
Cleantechnol 07 00079 g098
Figure 99. THD of phase c at t = 0.5 s.
Figure 99. THD of phase c at t = 0.5 s.
Cleantechnol 07 00079 g099
Figure 100. THD of phase a at t = 2.5 s.
Figure 100. THD of phase a at t = 2.5 s.
Cleantechnol 07 00079 g100
Figure 101. THD of phase b at t = 2.5 s.
Figure 101. THD of phase b at t = 2.5 s.
Cleantechnol 07 00079 g101
Figure 102. THD of phase c at t = 2.5 s.
Figure 102. THD of phase c at t = 2.5 s.
Cleantechnol 07 00079 g102
Figure 103. The value of the steady-state load voltage error e v (%).
Figure 103. The value of the steady-state load voltage error e v (%).
Cleantechnol 07 00079 g103
Figure 104. Neutral current.
Figure 104. Neutral current.
Cleantechnol 07 00079 g104
Figure 105. Current i L a and its reference i L a r e f .
Figure 105. Current i L a and its reference i L a r e f .
Cleantechnol 07 00079 g105
Figure 106. Current I L a and its reference I a r e f (zoomed in).
Figure 106. Current I L a and its reference I a r e f (zoomed in).
Cleantechnol 07 00079 g106
Figure 107. Current i L a and its reference i L a r e f (zoomed in).
Figure 107. Current i L a and its reference i L a r e f (zoomed in).
Cleantechnol 07 00079 g107
Figure 108. Current i L b and its reference i L b r e f (zoomed in).
Figure 108. Current i L b and its reference i L b r e f (zoomed in).
Cleantechnol 07 00079 g108
Figure 109. Current i L b and its reference i L b r e f (zoomed in).
Figure 109. Current i L b and its reference i L b r e f (zoomed in).
Cleantechnol 07 00079 g109
Figure 110. Current i L b and its reference i L b r e f (zoomed in).
Figure 110. Current i L b and its reference i L b r e f (zoomed in).
Cleantechnol 07 00079 g110
Figure 111. Current i L b and its reference i L b r e f (zoomed in).
Figure 111. Current i L b and its reference i L b r e f (zoomed in).
Cleantechnol 07 00079 g111
Figure 112. Current i L c and its reference i L c r e f .
Figure 112. Current i L c and its reference i L c r e f .
Cleantechnol 07 00079 g112
Figure 113. Current i L c and its reference i L c r e f (zoomed in).
Figure 113. Current i L c and its reference i L c r e f (zoomed in).
Cleantechnol 07 00079 g113
Figure 114. Current i L c and its reference i L c r e f (zoomed in).
Figure 114. Current i L c and its reference i L c r e f (zoomed in).
Cleantechnol 07 00079 g114
Figure 115. Current i L c and its reference i L c r e f .
Figure 115. Current i L c and its reference i L c r e f .
Cleantechnol 07 00079 g115
Figure 116. I L b k and its reference I L b k r e f .
Figure 116. I L b k and its reference I L b k r e f .
Cleantechnol 07 00079 g116
Figure 117. I L b k and its reference I L b k r e f .
Figure 117. I L b k and its reference I L b k r e f .
Cleantechnol 07 00079 g117
Figure 118. Irradiance.
Figure 118. Irradiance.
Cleantechnol 07 00079 g118
Figure 119. Load currents.
Figure 119. Load currents.
Cleantechnol 07 00079 g119
Table 1. SOFC parameters.
Table 1. SOFC parameters.
ParameterValue
Absolute temperature (T)1273 K
Universal gas constant (R)8314 J/(kmol K)
Faraday’s constant (F)96,487 C/kmol
Ideal standard potential ( E 0 )1.18 V
Number of cells in series in stack ( N 0 )325
Constant, K r = N 0 / 4 F 0.842 × 10 6   k m o l / ( s A )
Valve molar constant for hydrogen ( K H 2 ) 2.81 × 10 4   k m o l / ( s   a t m )
Valve molar constant for oxygen ( K O 2 ) 2.52 × 10 3   k m o l / ( s   a t m )
Response time for hydrogen flow ( T H 2 ) 26.1   s
Response time for water flow ( T H 2 O ) 78.3   s
Response time for oxygen flow ( T O 2 ) 2.91   s
Ohmic loss/cell (r) 32.813 × 10 8   Ω
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mohamed Taieb, K.; Sbita, L. Control for a DC Microgrid for Photovoltaic–Wind Generation with a Solid Oxide Fuel Cell, Battery Storage, Dump Load (Aqua-Electrolyzer) and Three-Phase Four-Leg Inverter (4L4W). Clean Technol. 2025, 7, 79. https://doi.org/10.3390/cleantechnol7030079

AMA Style

Mohamed Taieb K, Sbita L. Control for a DC Microgrid for Photovoltaic–Wind Generation with a Solid Oxide Fuel Cell, Battery Storage, Dump Load (Aqua-Electrolyzer) and Three-Phase Four-Leg Inverter (4L4W). Clean Technologies. 2025; 7(3):79. https://doi.org/10.3390/cleantechnol7030079

Chicago/Turabian Style

Mohamed Taieb, Krakdia, and Lassaad Sbita. 2025. "Control for a DC Microgrid for Photovoltaic–Wind Generation with a Solid Oxide Fuel Cell, Battery Storage, Dump Load (Aqua-Electrolyzer) and Three-Phase Four-Leg Inverter (4L4W)" Clean Technologies 7, no. 3: 79. https://doi.org/10.3390/cleantechnol7030079

APA Style

Mohamed Taieb, K., & Sbita, L. (2025). Control for a DC Microgrid for Photovoltaic–Wind Generation with a Solid Oxide Fuel Cell, Battery Storage, Dump Load (Aqua-Electrolyzer) and Three-Phase Four-Leg Inverter (4L4W). Clean Technologies, 7(3), 79. https://doi.org/10.3390/cleantechnol7030079

Article Metrics

Back to TopTop