1. Introduction
Small autonomous regional power systems can offer increased reliability and efficiency and can aid in the integration of renewable energy and other forms of distributed generation (DG) [
1,
2]. Many forms of DG such as fuel cells, photovoltaic systems, and micro turbines are interfaced with the network through power electronic inverters [
3]. These interface devices make the sources more flexible in operation and control when compared with conventional electrical machines. The inverter includes four parts: voltage conversion, power electronic switching devices, LC/LCL filter circuits, and control strategy. Currently, the main control strategy is to simulate the external characteristics of the traditional synchronous generator. In the early stages, a proportional–integral (PI) controller was used to put the inverter into constant PQ/PV/Vf mode. In recent years, to adapt to the more complex operating environment of a microgrid, several control strategies have emerged that can participate in the management of the system frequency and voltage regulation. These include conventional droop control, robust droop control, the virtual synchronous generator (VSG), and various improved control algorithms, shown in
Table 1. Research in the field of inverters has significantly promoted the development of microgrids.
Power flow studies are essential for the planning and design of future power system expansion. In addition, power flow studies play an important role in state analysis, stability evaluation, and optimal management [
4]. In the microgrid, power flow calculation is related to the control strategies of inverters. The DGs need to be equivalent to a node type that matches the inverter control strategy.
In
Table 1, when inverters adopt control strategy I–III, DGs are equivalent to the PQ, Vf, and PV node types of traditional power flow calculation. It is the same as the traditional power flow calculation both in modeling and algorithm.
When inverters adopt control strategy
, that is robust droop control [
5], DGs cannot be made equivalent to conventional node types because, as a result of robust droop control, the active and reactive power output depend on the terminal voltage and system frequency. Thus, conventional power flow methods cannot be applied to an islanded microgrid [
6,
7]. In robust droop control, both
and
droop are linear. Several new methods have been studied to solve the power flow problem for robust droop control. Reference [
8] developed a three-phase power flow algorithm for islanded microgrids, in which some DG units are controlled by their droop characteristics. The problem is formulated as a set of nonlinear equations, and a Newton trust region method is used to solve the power flow problem. In [
9], the droop relationships between the voltage and reactive power are included in the load flow equations, and particle swarm optimization is used to analyze the power flow. The proposed schemes are accurate, but complex. In [
10], the Newton–Raphson (NR) algorithms are combined with the droop characteristic of the DG to solve the power flow problem. In [
11], a universal power flow algorithm is proposed to handle the active control strategies of the DGs, including isochronous control, droop control, and constant power control. In [
12], an iterative procedure based on a mathematical formulation of conventional power flow is introduced to calculate the equilibrium operating point in the islanded microgrids, and the slack bus voltage is determined through a binary search method, which may increase the number of iterations in some cases. In [
13], by considering the virtual impedance in the microgrid, the proposed methods obtain more accurate calculation results for the power flow analyses. In [
14], an advanced Newton approach is developed to assess power sharing and voltage regulation. It incorporates droop control and various secondary control modes into a modified Jacobian matrix, so convergence relies on the selection of good initial values.
The backward/forward sweep (BFS) algorithm has been proven to be fast and efficient for both radial and weakly meshed distribution networks, because of the absence of the complex Jacobian matrix and its inverse [
15]. Reference [
16] proposes a method based on a BFS algorithm to solve the power flow problem in AC droop-regulated microgrids, and this represents the first derivative-free algorithm to solve droop control power flows in islanded microgrids. However, the reactive powers supplied by the DGs are only dependent on their droop coefficient, and local voltages are ignored. A modified BFS algorithm is presented in [
17], in which the DG reactive powers are made to rely not only on their droop coefficients, but also on local voltages; however, conflicting updates issued by the voltage give convergence problems.
When inverters adopt control strategy
V, that is the conventional droop control [
18], considering the effects of the filter reactance,
is not a simple linear droop relationship that is determined by the droop parameters, reactance parameters, and operating state. If the filter reactance is ignored, the above literature [
8,
9,
10,
11,
12,
13,
14,
15,
16,
17] for robust droop control is also suitable for conventional droop control. However, in low-voltage microgrids, the filter reactance is many times higher than the circuit reactance and, so, cannot be ignored. The details of why reactance cannot be ignored are given in
Appendix A. Therefore, as a result, the existing methods cannot accurately calculate the power flow solution under the conventional droop control scheme.
In addition, it usually contains DGs of different control strategies in the microgrid; the power flow calculation model should be universal, which is applicable to various types of control strategies. However, the existing methods are mainly aimed at robust droop control [
9,
10,
12,
13,
14,
16,
17]. Reference [
11] is able to be applied to all kinds of control strategies, but only focused on frequency-active power control of DGs.
Thirdly, the existing algorithms mainly make modifications to the specified conventional power flow method [
8,
9,
10,
11,
13,
14,
16,
17], so that the algorithm framework is not generic. In order to facilitate industrial application, the algorithm should be generic, that is it is not limited to a specified conventional power flow calculation method.
To overcome the aforementioned problems, this paper proposes a method to analyze the power flow for microgrids. Its main contributions are as follows:
- 1.
The paper describes a new power flow method, which is able to deliver accurate results for conventional droop control in low-voltage microgrids, e.g., the marine microgrid. The method takes into account the filter reactance, which cannot be ignored in the low-voltage grid. With modeling the filter reactance in the power flow formulation, the calculation accuracy is improved compared with those using traditional methods.
- 2.
The proposed algorithm is universal for power flow in microgrids. It can handle islanded and grid-connected systems and can adapt to various DG control strategies, including conventional droop control, robust droop control, constant power control, and constant Vf control. It also can handle frequency-dependent active and reactive loads.
- 3.
The framework of a general power flow method for the microgrid is presented to reduce the difficulty and the complexity of program development. The proposed algorithm takes the conventional power flow algorithm and expands it to adapt to the droop characteristics through two iterative loops; it is easy to implement.
The comparison between the proposed method and several existing approaches is shown in
Table 2.
3. The Proposed Method
To reduce the difficulty of program development, this paper extends the conventional power flow calculation method to solve new problems. Reference [
16] iteratively updates the frequency and voltage through two nested loops to reflect the robust droop control characteristics, which is easy to implement. This paper also adopted this idea; the difference is that the filter is taken into account in conventional droop control and the method framework is universal.
The proposed algorithm includes four parts: setting the initial conditions, conventional power flow calculation, frequency update, and bus voltage update with filter reactance.
3.1. Initial Conditions’ Setting
First, the virtual slack bus, which can be selected randomly in microgrid buses, should be selected to emulate the upstream utility grid. The iterative procedures adjust the voltage of the virtual slack bus and grid frequency to show the islanded operation of the DG. The frequency f was initialized to its nominal value. The active power and reactive power of the DG were initialized to their reference values and , and all the bus voltages were set to 1.0. As a variety of control strategies of inverters may be contained in a microgrid, the droop coefficients and filter reactance depend on the control strategies of the inverter. For conventional droop control, the droop coefficients and filter reactance were set to given values. For robust droop control, was set to zero. For constant power control, m and n were set to zeros.
3.2. Conventional Power Flow Calculation
The framework of the algorithm is generic, not limited to a specified conventional power flow method. The BFS method, the NR method, and others are all applicable. Owing to the radial structure of most microgrids and the simple calculation involved in the BFS method, a matrix-based BFS was adopted in this paper. The basic steps are as follow [
22]:
Step 1: Calculate the bus injection current
:
where
and
are the load power, which are frequency-dependent and can be expressed as follows
Step 2: Calculate the branch current
:
where
is the transformation matrix from the bus injection current to the branch current containing the elements 0 and 1. For a radial system of n buses, the
matrix is an upper triangular matrix with dimensions
.
Step 3: Calculate the bus voltage:
where
is the slack bus voltage. The
matrix is the transformation matrix to calculate the voltage difference between the slack bus and other buses from the branch currents. The elements of
are impedances. Given a system of n buses, the resulting
matrix will be of dimensions
. Refer to [
23] for the specific process. The power carried by the virtual slack bus is calculated after the convergence of the BFS method.
where
represents all the branch currents connected to the slack bus,
is the virtual slack bus generation power (if the virtual slack bus is not a DG bus,
), and
is the virtual slack bus load power.
3.3. Frequency Update
If
(
is the predefined tolerance),
will be allocated to all DG units to make the virtual slack bus carry zero power. The mathematical expression is given by (12), while according to the droop characteristic, the power allocated to each DG satisfies (13).
The power allocated to each DG can be obtained from (12) and (13), and
f can be updated from (2). The active power and frequency are updated iteratively until
. Refer to the frequency update loop in
Figure 4 for the specific iterative process.
3.4. Bus Voltage Update Considering Filter
When the frequency update terminates, the voltage is no longer the initial value, and the reactive power of the DG should also change according to the droop characteristic.
The inverter terminal voltage
and reactive power
Q do not show the linear droop characteristic that is shown between the filter left side voltage
E and reactive power
Q.
E is calculated from the bus voltage
V of the DG as follows:
The reactive power of the DG can be calculated by substituting (15) into (1). The power flow is calculated again, and if the reactive power carried by the virtual slack bus
, as with the frequency update, it indicates that the voltage solution has not reached the steady state, so
should be allocated to all DG units.
Unlike with the frequency, the voltages,
, at each inverter bus are different. This difference is mainly caused by the line impedance. However, the voltage deviation
is not significant. Therefore, assuming that the voltage deviation for each DG is equal to the voltage deviation at the slack bus, it can be expressed as follows:
The voltage deviation of the slack bus can be approximated by substituting (17) into (16).
The slack bus voltage is updated as:
Subsequently, the voltage of the DG is updated by the power flow calculation for the next iteration.
3.5. Processing Flow of the Proposed Method
The specific process of the proposed method is shown in
Figure 4, which summarizes the steps in the method.
After the initial parameters are given, the control strategies of the DG and setting corresponding parameters , are checked. Next, the conventional power flow calculation is carried out to check whether the active power taken up by the DGs is balanced with the load power. If not, the system frequency is updated according to the DG control characteristics. Finally, the reactive power of the DGs is calculated according to the new voltage, and the power flow calculation is carried out again to check whether the reactive power taken up by the DGs is balanced with the load power. If not, the voltages are updated according to the DGs’ control characteristics. The convergence conditions of frequency update may be violated because frequency updates are not decoupled from voltage updates. For instance, voltage updates lead to changes in power losses in the line, and then, the active power distribution of the network is changed. Therefore, two nested loops of voltage and frequency are adopted to ensure that the frequency and voltage converge.