#### Abstract

Integrating EV charging station into power grid will bring impacts on power system, among which the most significant one is the harmonic pollution on distribution networks. Due to the uncertainty of the EV charging process, the harmonic currents brought by EV charging stations have a random nature. This paper proposed a mathematical simulation method for studying the working status of charging stations, which considers influencing factors including random leaving factor, electricity price, and waiting time. Based on the proposed simulation method, the probability distribution of the harmonic currents of EV charging stations is obtained and used in the calculation of the probability harmonic power flow. Then the impacts of EVs and EV charging stations on distribution networks can be analyzed. In the case study, the proposed simulation and analysis method is implemented on the IEEE-34 distribution network. The influences of EV arrival rates, the penetration rate, and the accessing location of EV charging station are also investigated. Results show that this research has good potential in guiding the planning and construction of charging station.

#### 1. Introduction

Car industry has been developing for decades at a cracking pace. In order to pursue better performance and higher utility of vehicles, many valuable researches have been done to address the issues like adaptive control, mathematical modeling, and fault diagnosis [1–3]. In recent years, the pressure of fossil fuel shortage and other environmental problems leads to high-speed development of electric vehicles (EVs) due to their emission-free characteristic and effective utilization of renewable energy [4, 5]. The promising trend of EVs attracts plenty of researchers to concentrate on the functioning and the influence of electrical vehicles. Unlike conventional vehicles, the power supply of EVs mainly comes from local power distribution system through EV charging stations [6, 7] and that will lead to impacts on distribution network. In order to study the impacts, the EV charging station should be modeled properly and many factors need to be taken into consideration.

The impacts of EV charging station integration can be divided into two categories basically. The first category contains the influences induced by uncoordinated charging of large amounts of EVs such as voltage deviations, thermal overloads, increase in losses, and decrease in voltage stability [6, 8–10]. Researches have investigated aspects including the different EV penetrations on distribution network investment [7], the long-term operating capacity reserve [11], and transformer life [12]. Coordinated charging strategies are proposed [12–15] to promote the distribution gird’s ability to hold more EVs without reinforcements, improve voltage profile, and reduce power losses.

The other category is the impacts brought by high rating nonlinear switching devices in EV chargers [16] and the typical one in this category is harmonic pollution. Harmonic pollution will shorten the life span of transformers, reduce the utilization of transmission lines, and interfere with the signals of measuring and protection equipment. Therefore, studying the harmonic pollution brought by EV charging stations is of great importance. Paper [17] establishes a stochastic aggregate harmonic load model to study the harmonic characteristics of EV charger. Paper [18] presents a harmonic simulation method to study the harmonic impact of EVs. Paper [19] develops an approach to decrease the harmonics in a high EV penetration grid, and the harmonic load flow is used to model the distorted grid and identify the worst bus based on the typical daily load curve.

In most of the calculation, the worst situation of harmonic of charging station was used. However, the probability of the worst situation is rare in daily life. In most of these studies the harmonic currents are generated by individual EV charger. The random characteristic of charging behavior was not considered in the calculation of charging station harmonic and was hardly consistent with the actual situation in our daily life. Besides, there are limited studies focused on the system level to evaluate the harmonic distortion of charging stations.

In this paper, this problem is investigated from single equipment to the entire system. First, a simplified simulation model of EV charger is used to analyze the harmonic characteristics. Second, based on the queuing theory and charger model, a mathematical simulation method to get the probability distribution of charging station state is proposed, considering the influences of random factors, electricity price, and waiting time. The statistics of the simulation results are performed to obtain the probability distribution of total harmonics. Third, through the probability harmonic power flow, the probability characteristics of probability distribution of charging stations’ influences on system harmonics are analyzed. At last, the key factors, including the arrival rate, penetration rate, and the access location of EV charging station, were analyzed based on a modified IEEE-34 system.

#### 2. The Working State Model of EV Charging Station

##### 2.1. Model the EV Charger

In order to analyze the harmonic characteristic of EV charging station, the basic working model of a single EV charger needs to be built first. In this paper, we consider a kind of currently the most widely used EV charger. This typical EV charger consists of a three-phase uncontrolled rectifier and a high frequency DC/DC converter which are coupled with a high frequency transformer [4]. The output voltage and current of the charger are controlled by feedback control equipment in the high frequency DC/DC converter. Since elaborately modeling the EV charger is too complicated, it consumes much time for the simulation.

To reduce the complexity of the EV charger model, a simplification proposed in [20] is adopted here, where the high frequency DC/DC converter and battery load are replaced by an equivalent resistance. The simplified equivalent circuit is shown in Figure 1.

Based on Ohm’s law, the equivalent resistance can be calculated as where is the equivalent resistance of high frequency DC/DC converter, is the input power of the high frequency DC/DC converter, is the output power of EV charger, is the efficiency of high frequency DC/DC converter, is the output voltage of three-phase uncontrolled rectifier, and is the output current of three-phase uncontrolled rectifier.

According to (1), the equivalent resistance should be a function of the charging time to reflect the different output power in different charging stages. The empirical formula of during the charging process was obtained through fitting the actual-measured data [20], which can be put as where is the output power of EV charger, is charging time, is the time spot when charging mode turns from constant current charging to constant voltage charging, is the maximum charging time, and is the rated output power.

In [20], was treated as a constant; however, according to the simulation result in MATLAB/Simulink environment, the efficiency of the high frequency DC/DC converter varies with the output power of the EV charger . Their relationship is presented in Figure 2.

Using the curve-fitting technique, the expression can be obtained as

Through (1)–(3), we can get the value of equivalent resistance at any time spot during charging.

To illustrate the effectiveness of the simplified model in harmonic analysis, a comparison between the original and the simplified model (considering the varying efficiency during charging) has been made through simulating in MATLAB/Simulink environment. Simulation results show that the maximum error of the harmonic between the original and the simplified model is merely 0.45%, while the equivalent simplified model costs 40% less time than the original one. Therefore, the simplified model appears to be more effective and suitable, especially when repetitive calculations are required.

##### 2.2. Build the Working State Model for an EV Charging Station

Analysis of the harmonic impact of EV charging stations requires knowing the harmonic currents injection of the charging stations to distribution network. With the EV charger simulation model mentioned in Section 2.1, the harmonic currents that one charger brings to the grid can be obtained in simulation software. The harmonic currents of the entire charging station can be calculated by adding up the harmonic currents generated by every charger in work. Therefore, it is necessary to build the working state model for the EV charging station to acquire the number and the status of working chargers.

To build the working state model, the charging process in the charging station, which depends on EVs’ charging behaviors, needs to be studied. Charging behaviors of EVs have much to do with the power conditions of their batteries. Normally, the power condition of a battery is measured by its SOC, which is defined as the available capacity in percentage of full charge capacity [21]. The battery power needs to be adequate to ensure the normal operation of electric vehicles. With the battery power consuming, the SOC will keep dropping and may get down to an overdischarging state [21]. When the battery power drops below a threshold value, the EV cannot work normally and thus needs to get charged at a nearby charging station. The charging process of an EV (as shown in Figure 3) can be modeled as a queuing process based on queuing theory (introduced in [22]), which can be summarized as “first come, first served.” The EV that needs charging adds to the tail of the queue when it enters the charging station. If there is no available EV charger, the EV will be waiting for an opening; if there is an available EV charger, it will get charged immediately. The EV will leave when the SOC reaches 100% or when there are some factors to make it leave early.

In [23, 24], the queuing theory is used to describe the charging process and it is proved feasible. In [24], a typical queuing model, M/M/c, is used to portray the customer streams of EV charging stations. The typical queuing theory assumes that the inter-arrival and service time are generally subject to exponential distribution. As for EV charging, it is feasible to assume that the interarrival time of two consecutive EVs is exponentially distributed but it will lead to large error to consider that the charging time also obeys exponential distribution. The charging time is a random variable influenced mainly by the initial SOC, the random leaving factor, the electricity price, and the waiting time, so it does not seem to follow any already known probability distributions. Therefore, the typical queuing model may not describe the charging behavior effectively.

In order to make the model more realistic, this paper adopts a numerical simulating method to study the EV charging process. First, the states of an EV charger should be modeled. The state of charger is determined by the SOC of the battery connected to it, where the range of SOC is from 0 to 100 in percentage. The battery charging process can be treated as a Markov process since the SOC of the next time spot is only related to the current SOC and has nothing to do with the SOC before, which can be put as follows: where is the current time and is the current state of charge.

In order to make it easier for study, we discretize the domain of SOC’s possible values. Figure 4 shows the transition of the states during charging. The SOC of the battery goes towards a higher level over the charging time if the EV does not quit at the middle of charging. If it does quit, the SOC of the battery goes to 100% directly. It is worth noting that 100% of SOC here means that the EV leaves and the charger is free. So there are two conditions that a state is treated as a 100% state. One is that the EV gets fully charged and leaves and the other is that the EV leaves in the middle of charging.

The diagram can be described in

means the transition probability from state to , is the incremental power in a simulation time unit, and is the probability of quitting before the EV is fully charged, which will vary due to the current value of SOC.

To start the simulation, the initial SOC should be given. Setting it to zero or some fixed low value will be inappropriate because the remaining SOC of last time is random. In fact, according to [25], the battery’s initial SOC obeys two-parameter distribution, whose probability density function is

Quitting probability needs to be pinned down to complete the model for EV chargers. Generally, it contains 3 components, including random leaving factor, waiting time , and electricity price .

The typical threshold value is set to 80%. Leaving earlier before SOC reaches will do some harm to the battery, so people usually do not leave earlier no matter how long they will wait or how much the electricity costs. When SOC is equal to or greater than the threshold , waiting time factor and electricity cost factor begin to work. The whole process can be illustrated by

Furthermore, is determined not only by the waiting time but also by the difference between the current SOC and the threshold . With the increasing of SOC, both the waiting time and the difference to will increase, which leads to a higher waiting time-related quitting probability. In (8), can be thought to be in a linear relationship with the product of the charging time and the difference between the battery’s SOC and in this study, where time coefficient is a constant:

is also decided by two components. One is the difference between the real-time electricity price () and the expected electricity price (), and the other is the difference between SOC and . The expression is shown in (9), where price coefficient is a constant:

Finally, a correction should be made to improve the model of charging process. It is noted that an EV driver may be scared off by a long queue or get impatient waiting in line and then decide to leave before getting the car charged, so the effective arrival rate is a little bit less than the arrival rate. The correctional charging process is demonstrated in Figure 5.

Considering the waiting time, the arrival rate is fixed in (10), where is the real arrival rate and is the fixed arrival rate. The directly leaving rate () is the product of the leaving factor () and the average waiting time () which can be acquired in the simulation of queuing process:

Using the model given above to simulate the activity of each EV charger, the state of the whole charging station can be simulated by the sequential Monte Carlo method. This makes the preparation for the calculation of harmonic distribution.

##### 2.3. Calculate the Harmonic Distribution of Charging Station

The harmonic currents of the whole charging station can be calculated by adding up the harmonic currents of all EV chargers. However, the states of chargers are uncertain so the harmonics of the charging station cannot be calculated directly. Using the working state model built in Section 2.2, the states of chargers in an EV charging station can be determined at any time spot; then the simulation model of the entire charging station can be built in simulators to calculate the total harmonics. After simulation, the probability distribution of the charging station can be obtained through the statistical analysis of simulation results.

The simulation model of the charging station is built by the simplified models of EV chargers mentioned in Section 2.1. In each step of the EV charging station’s mathematical simulation, all the chargers’ output power is determined; thus, the equivalent resistance can be calculated through (1). After that, the value of equivalent resistance can be set in MATLAB/Simulink and then the harmonics of the charging station can be simulated for statistical analysis to acquire the probability distribution. Figure 6 illustrates the steps in a flowchart.

Details of the steps in Figure 6 are given as follows.(1)Initialize the valid data, for example, the simulation step time () and the convergence criterion. Then start the mathematical simulation process.(2)Update the battery’s SOC in time through where is the time of simulation step, is the battery’s charging time, and is the total time of a battery’s SOC changing from 0 to 100 in percent.(3)Calculate the number of EVs which quit charging in time , considering the random leaving factor, the price of electricity, and the waiting time.(4)Calculate the number of EVs which arrive in time using the correctional arrival rate to increase the calculation accuracy. Then update the number of EV cars in charging station.(5)Give the initial SOC of each EV which arrives in time with (1). Then find the corresponding charging time () and output power ().(6)Arrange the EV cars in the queue for charging according to the “first come, first served” principle.(7)Calculate the output power by (2) and (3), and then the value of equivalent resistance can be obtained by (1).(8)Set the resistance parameters of each charger in the simulation model of EV charging station. Then start the simulation and record results of harmonic and total power in an array.(9)Keep simulation until the probability distribution of charging state meets the convergence criterion that Euclidean distance of probability distributions obtained using different simulation time must be within the range of allowable error, which can be put as where , stands for the difference of the th component of random variable in the th andth distributions obtained in different simulation time, stands for the number of variables, and stands for the allowable error.(10)Obtain the probability distribution of the charging state and the harmonics.

#### 3. Probabilistic Harmonic Power Flow of Distribution System Integrating EVs

The influence of integrating EVs into the distribution network has a probabilistic nature due to the random and uncertain characteristic of EVs. Based on the probability distribution of total harmonic of charging stations, the probability characteristics of charging stations’ influences on system harmonics can be analyzed through the probabilistic harmonic power flow [10, 26]. From the simulation results of harmonics, we find that there is no typical curve that can describe the probability characteristics of charging stations’ harmonic. Thus in this research, the Monte Carlo sampling is used to calculate the probabilistic harmonic power flow.

Because the harmonic power brought by EV charging station is much less than the fundamental power in distribution network, the fundamental power flow and the harmonic power flow can be decoupled and calculated, respectively. Newton-Raphson method was used to calculate the fundamental power flow.

The harmonic models of load, transmission line, and transformer adopt the typical harmonic models in [27]. Based on the harmonic model of electrical components and the result of fundamental power flow, time harmonic admittance matrix () can be obtained according to the harmonic analysis theory. Harmonic sources are treated as an ideal current source, so the time injection current matrix () can be obtained. The time harmonic voltage matrix () can be obtained by solving

After solving harmonic power flow at each time, the effective voltage () and total harmonic distortion of voltage () can be calculated through

After the calculation of probabilistic harmonic power flow based on Monte Carlo, the probability distribution of effective voltage and can be acquired. Then the probability characteristics of charging stations’ influences on system harmonics under different conditions can be analyzed.

#### 4. Case Study

The case study is implemented on a modified IEEE-34 test system [28], which is shown in Figure 7.

An EV charging station is connected to the original IEEE-34 test system at Node 23 through a transformer. The penetration power of the EV charging station is set to 15% in this case. Detailed information of the charging station is listed in Table 1.

The charging time of the EV battery from out-of-power to fully charged is 270 minutes. The parameters of the EV charger are listed in Table 2.

The arrival rate is set to 0.1 during the day and 0.2 at night since fewer people use cars at night and the electricity price is lower. According to the load curve, the load level during the night is lower than other times. The random leaving factor, the waiting time, and electricity price are considered during the daytime. The parameters of the working state model are listed in Table 3.

##### 4.1. The Efficiency Analysis of Working State Model

In order to prove the effectiveness of the model proposed in this paper, the probability distribution of charging station’s state is calculated using two different models. The first is the conventional queuing theory model, in which the average service time of charger is 203 minutes. For in the typical model, the random leaving factor, the waiting time, and the price of electricity are not reflected. So in order to prove the effectiveness of the method proposed in this paper, these factors are ignored. The probability distribution of EV charging station’s state obtained using two models is shown in Figure 8.

From Figure 8, it is obvious that the probability distribution obtained by the typical model is similar to that by the proposed model.

The parameters of probability distribution of station state are listed in Table 4.

Among the parameters listed in Table 4, the expected number of working chargers and the number of chargers with the highest probability are the same, while the other two parameters are similar in two models. The simulation step time () is set to be 3 minutes in this case. If it is set smaller, the value of those similar parameters will get closer. Therefore, the method proposed in this paper can be used to simulate the charging process and calculate the probability distribution of charging station’s harmonic.

##### 4.2. Result of Harmonic Probability Power Flow

Based on the working state model of charging station, the distribution of charging station’s total power and harmonics can be acquired by doing statistics on simulation results. The probability distributions of charging station’s total power during daytime and night are shown in Figures 9 and 10, respectively.

From Figures 9 and 10, it can be noted that the EV charging station is more heavily utilized during night than during daytime.

The distribution of harmonics of charging station can also be acquired. Based on the distribution, the expectation of the current amplitude, the harmonic content, and the expectation of the current angle during day and night are calculated, which are listed in Table 5. It is worth noting that only th () harmonics are listed because they are the major harmonics of EV charging station.

The expectation of current amplitude decreases with the increase of the harmonic order. It is easy to see that the low-order harmonic current accounts for larger proportion than the high-order harmonic. The harmonics with orders higher than 19 are not listed because the amplitudes are too small; thus, the influences are neglectable.

Based on the result of the probabilistic harmonic power flow, the probability distributions of root mean square (RMS) voltages of each node are obtained. The overranging nodes are listed in Table 6.

According to Table 6, there are 11 nodes whose RMS voltages are overrange. Among these nodes, Node 26 has the highest overranging probability. The probability distribution of voltage RMS of Node 26 is shown in Figure 11.

It can be seen that the distribution has a bimodal characteristic, which is due to the peak-valley load during 24 hours.

Based on the result of the probabilistic harmonic power flow, the expected of each node is calculated, which is shown in Figure 12.

From Figure 12, it can be observed that Node 23, the EV charging station node, and its neighbor node, Node 24, have very high expected . Generally, it is obvious that the expected of the node near Node 23 is high while the expected of the node far from Node 23 is low.

The probability distribution of of Node 23 is shown in Figure 13.

Table 7 lists the nodes whose is over range. There are 11 nodes whose probability of is over the range; 7 of them have an overranging probability that is higher than 49%. The result shows that the integration of EV charging station significantly affects the safety and power quality of the distribution network. So filter devices need to be installed to diminish the influence.

##### 4.3. Influence Factors of Charging Station

In this part of research, the influences of the arrival rate, the penetration rate, and the accessing location of EV charging station on the probabilistic harmonic power flow are analyzed as follows.

*(1) The Arrival Rate.* First, the influence of arrival rate is studied. Calculations have been made when arrival rate is set to different values, 0.1 and 0.2. The results of the probabilistic harmonic power flow during daytime are listed in Table 8.

With the increase of the arrival rate, the harmonic distortion of the network becomes worse: two new nodes, Node 5 and Node 11, become overranging nodes. The influenced area becomes larger due to the increase of the arrival rate and so does the overranging probability. In fact, the overranging probability even reaches 100% at Nodes 22, 23, and 24. Therefore, it is easy to conclude that the harmonic pollution is more significant when the arrival rate increases.

*(2) The Penetration Rate.* The harmonic impact on the distribution network is studied during 24 hours when the penetration rate increases to 30%. The results of probabilistic harmonic power flow are listed in Table 9.

Compared to the results in Table 7, the number of overranging nodes has increased by 4, the influence area is larger than the original result, and the probability of over the range changes from 0.761 to 0.994 at Node 23. It can be seen that the impact on the power quality of the distribution network will be more significant when the penetration rate increases.

*(3) Accessing Location.* Situations where the EV charging station accesses Nodes 10, 23, and 34 are compared. The results are listed in Table 10.

From the results, two conclusions which are useful in EV charging station planning can be drawn. The influenced area when the EV charging station accesses to Node 10 is larger than that of Node 23. It can be interpreted in a way that Node 10 is the main feeder of distribution network so accessing it will result in a larger influenced area compared with accessing a branch feeder. When accessing location is Node 34, the influenced area and the degree of influence are smaller than that when accessing the other two nodes. That is because Node 34 is close to Node 15, which is connected with reactive power compensator that has an inhibitory effect on harmonics. Therefore, it can be concluded that it is better to set the charging station close to reactive power compensation devices or away from the main feeder.

#### 5. Conclusions

A new method for studying the working status of EV charging stations is proposed in this paper, while considering the random leaving factor, the electricity price, and the waiting time. This method is proved to be effective through the comparison with the conventional queuing theory model. In this paper, this method is used to analyze the characteristics of harmonics from the charging station. The probabilistic harmonic power flow is used to analyze the impact of charging station’s harmonics on the distribution network. The proposed model can be directly applied in some other fields that involve charging station’s state simulation. In addition, other factors can also be considered in the simulation process. Since the method proposed in this paper is a simulation process, further study will focus on the mathematical theory of the charging behavior.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgment

This work was supported by National Natural Science Foundation of China (no. 51277141).