Next Article in Journal
Optimal Planning of Electric Vehicle Charging Stations Considering Traffic Load for Smart Cities
Previous Article in Journal
A Multi-Disciplinary Approach for the Electrical and Thermal Characterization of Battery Packs—Case Study for an Electric Race Car
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Simplified Python Models for Photovoltaic-Based Charging Stations for Electric Vehicles Considering Technical, Economic, and Environmental Aspects

1
Faculty of Graduate Studies, An-Najah National University, Nablus P400, Palestine
2
Department of Energy Engineering and Environment, An-Najah National University, Nablus P400, Palestine
*
Author to whom correspondence should be addressed.
World Electr. Veh. J. 2023, 14(4), 103; https://0-doi-org.brum.beds.ac.uk/10.3390/wevj14040103
Submission received: 5 February 2023 / Revised: 27 March 2023 / Accepted: 5 April 2023 / Published: 10 April 2023

Abstract

:
This paper proposes Python models for a photovoltaic-based charging station for electric vehicles considering technical, economic, and environmental aspects. The proposed models consider two main cases of photovoltaic-based charging systems, which are photovoltaic/grid-charging systems and photovoltaic/grid/battery-charging systems. Moreover, additional operational options, such as exporting energy to the grid and zero-export, are added to the proposed models. The proposed techno-economic models can be used to evaluate the location of the electric vehicle charging station and the financial and environmental benefits of the electric vehicle charging station that is installed in a residential, commercial, or industrial context. The models are tested by proposing a simulation based on load demand, and then different cases, including the actual size case and additional trading cases, are investigated.

1. Introduction

The transportation industry has often been considered the world’s greatest producer of greenhouse gases and a significant cause of local air pollution. According to [1], the transportation industry currently consumes more than 55% of total oil consumption and emits around 25% of total CO2 emissions. When it comes to decreasing this global and local pollution, electric vehicles (Evs) are expected to be a vital technology. Thus, electric vehicles must be widely adopted by the transportation sector in order to provide significant environmental benefits. Following that, multiple types of electric vehicles have been marketed by automakers, including hybrid electric vehicles (HEVs), plug-in hybrid electric vehicles (PHEVs), and battery electric vehicles (BEVs) [2].
In fact, there are two main challenges that the general public may face while switching to electric vehicles: the high cost of electric vehicles and the unavailability of charging stations [3]. On the other hand, the lack of infrastructure for charging Evs can be a huge challenge for their adoption. As a result, the need for more dependable systems with shorter EV charging times is becoming more essential [4].
As the number of electric vehicles on the road may grow at an exponential rate, the infrastructure and operators of distribution networks are confronted with new issues regarding the quality of low-voltage transmission networks [5]. The primary issues that need to be addressed when integrating electric vehicles into the electrical grid are high electrical power demands, network voltages, power losses, stability, harmonic distortion, and system efficiency. Proper development and planning of electric vehicle charging station (EVCS) infrastructures may help to limit the negative impact on the distribution systems [6].
One of the most frequent planning actions of EV charging stations (CS) is the optimal placement and sizing of these stations. Mohsenzadeh et al. [7] discuss the optimal placement and sizing of electric vehicle parking lots, as well as the several levels of charging stations (slow, medium, and rapid). For optimal planning, an objective function that takes into account system reliability, power loss, voltage drop, and the cost/revenue of EV parking lots is suggested. Similar work is carried out in [8] with an aim to minimize the land cost, equipment cost, operating cost, and real power loss cost as objective functions. On the other hand, environmental factors and the service radius of EV charging stations are taken into account to identify the best locations for EV charging stations in [9]. A new method for EV station site selection was proposed in [10]. Meanwhile, by using a multi-objective optimization approach, the authors in [11] were able to find the optimal locations and sizes for distributed generations (DGs), taking into account factors such as the total number of Evs in each zone. A novel approach by [12] is proposed for assessing the effect of integrating a large number of Evs into a power system and their effect on the network voltage profile via reactive power injection into heavily loaded buses. Meanwhile, the ideal location and sizing of charging stations and renewable energy sources (RES) are determined by using a multi-objective optimization problem in [13,14] as well. In the aforementioned research papers, simple models for EVCS were considered. The authors of [7,8,9,10,11,12,13,14,15] considered the EVCS as a simple load or a simple source of energy, whereas; the most concern was given to the formulation of the objective function. Meanwhile, the model of the EVCS and the accuracy of its output greatly affect the optimization results.
On the other hand, another important topic in EV science is its feasibility. In Ref. [16], the authors conducted an economic analysis of residential photovoltaic systems integrated with electric vehicles, taking into future cost estimates for these technologies. In Ref. [17], a data-intensive technical-economic model is proposed to estimate the cost of charging a renewable-powered battery with a 16-kWh capacity for an average travel distance of 65 km. An optimal PV-EV sizing framework for solar-powered charging stations based on load-matching performance is presented in [18]. The suggested framework in this study includes a unique score, the self-consumption-sufficiency balance (SCSB), which reflects the balance between self-consumption (SC) and self-sufficiency (SS). Similarly, the economic feasibility of a photovoltaic battery (PVB) system for several residential customer groups in Switzerland is examined in [19] using a techno-economic optimization model based on yearly energy consumption, rooftop size, annual radiation, and location. Here also, the accuracy of the adapted model is very critical to ensure that it affects the accuracy of the research output.
In addition to that, the power of EV charging stations by PV systems is a very trending topic nowadays. In Ref. [20], a system that combines an energy storage system (ESS) with a photovoltaic (PV) source and an electric vehicle charger is suggested. In Ref. [21], an office building in southern Italy is analyzed for the implementation of a solar system to meet its electric, heating, cooling, and EV charging needs. An empirical study [22] of the charging and mobility habits of 78 Swiss BEV owners over a decade is presented. Data on the precise roof geometry and PV capacity of each BEV owner’s residence are extracted using Switzerland’s fine-grained digital surface model. An electric vehicle (EV) charging station powered by solar photovoltaic (PV) canopies is being developed [23] for the parking infrastructure of large-scale shops. Similarly, a solar-powered electric vehicle charging station in India is discussed in detail in [24]. Furthermore, in [25], a 10 kW solar-powered EV charger with V2G for workplaces in the Netherlands is discussed. In Ref. [26], a PEV charging station employing PV panels at a workplace parking garage is analyzed. Photovoltaics systems used for EV charging in Tromso, Norway, and Uppsala, Sweden, are presented in [27] to evaluate self-consumption and self-sufficiency in these two Scandinavian towns. A stochastic model based on survey data was used to construct EV charging schedules. Each scenario has an EV penetration level between ten percent and one hundred percent. Finally, Hybrid solar photovoltaic (PV) and wind turbine (WT) power systems for environmentally friendly electric vehicle (EV) charging stations at five different sites in China are discussed in [28]. The HOMER Pro 3.14 program, which uses a derivative-free algorithm, has searched for the best charging station design. The hybrid PV/WT/battery EV charging station was the best solution for renewable energy charging stations in the five regions studied. Furthermore, the charging station in Nanjing is the most cost-effective, while the charging station in Zhengzhou is the least.
In general, the reviewed literature examines various techno-economic models for electric vehicles coupled with distributed energy resources. Techno-economic models are frequently used to evaluate the financial and environmental benefits of various distributed energy resources installed in residential, commercial, or industrial buildings and optimize them compared to a base scenario with no distributed energy resources. All of these researches are usually conducted based on the EV system model. Here, the model’s accuracy is a very important issue that affects the accuracy of the overall results. Thus, this paper particularly aims at developing an EV system model that combines distributed battery storage and renewable power sources. This study will focus solely on the PV-grid charging method and will examine a scenario that integrates a storage battery. Python programming language will be used to develop a model capable of solving various situations involving different PV capacities and storage batteries along with EV demand data.
The rest of the paper comes in three sections, whereas Section 2 presents the steps of developing the proposed model considering technical, environmental, and financial aspects. Meanwhile, Section 3 provides the performance of the proposed model considering different operation scenarios. Finally, a conclusion section is provided as Section 4.

2. Modeling of EV Charging/Discharging System with Renewable Energy Resources

The high current drawn when charging electric vehicles puts an additional burden on the grid. Additionally, if the charging demand occurs during peak hours, the owner may pay a higher tariff. Integrating PV systems in the charging cycle can reduce peak demand and improve grid stability [29].
Both PV-grid and PV-standalone charging methods are already available, and both have their advantages and disadvantages. Using grid electricity to continually charge the EV while the sun isn’t shining is a significant benefit of the PV-grid charging method. Moreover, PV-grid charging allows the EV to be constantly charged even when the irradiance is insufficient. On the other hand, the PV-standalone is a better option when grid power is unavailable or too expensive [29].
There are two types of EV chargers: alternating current (onboard) chargers and direct current (out-board) chargers. When using an AC charger, the conversion of grid alternating current (AC) into direct current (DC) for battery charging takes place inside the vehicle; however, DC chargers convert the grid alternating current into direct current outside the vehicle and within the charger circuit itself [30].
EV battery chargers may be classified into three categories based on their power ratings: level 1, level 2, and level 3. On-board battery chargers have physical limitations due to their size and weight. Therefore, they are typically compatible with level 1 and level 2 chargers only [31]. The properties of the three different power levels are summarized in Table 1.
Level 1 chargers are the slowest of the three types of chargers. They are commonly utilized in domestic applications and have a power output of about 2 kW. The power range for Level 2 is 6.6kW to 22 kW. This charger has charge periods ranging from 4 to 8 h, and it is mostly utilized in commercial and public charging applications. Level 3 is the DC fast charger, which has a charging capability of up to 350 kW. It can charge an electric vehicle in less than one hour in commercial and public fast-charging stations.
EV load profiles are generated by providing information on the number of vehicles, manufacturer, arrival time, the initial and final states of charge, traveled distance, and typical charging periods.

2.1. EV-Load Profile Generation

In this research, HOMER Grid software is used to build the EV-load profile as it can be seen in Figure 1. This software generates the load profile based on multiple inputs. This includes the percentage of vehicles with access to charging stations, the maximum amount of power allowed to charge the electric vehicle, and the average time required to charge the vehicle in minutes. The following table (Table 2) shows the input parameters used in the model generation:
In this study, it is assumed that the charging station will include 15 identical Level-2 chargers. The manufacturer data for the selected charger type is shown in Table 3 below.
The total number of chargers was selected based on an iterative approach to minimize the number of missed sessions, as shown in Table 4.
The load profile peak power is 85 kW, the total number of charging sessions per year is 7253, and the annual energy is 207,211 kWh. The monthly average EV load and daily average EV by month are shown in Table 5 below.

2.2. PV System Design

PV sizing software calculates the PV system’s hourly output using Typical Meteorological Year (TMY) data. PVGIS software, NASA, and metronome databases offer such data files for many locations in the world. Hourly weather data generated from long-term measurements are included in these files. The key data includes irradiance, ambient temperature, and wind speed. Furthermore, PV module tilt and azimuth angles are critical when designing a PV system. Latitude angle is a key factor in determining the best tilt angles for solar panels. The PV panels are typically tilted to the location’s latitude for annual maximum energy generation.
The TMY for any location or city can be obtained from the PVGIS database. Such data will be used to simulate PV systems with different capacities to generate an hourly power profile to use as input into the proposed method. The daily average irradiance, plan of array irradiance, and average ambient temperature adopted in this research are for a city in Palestine called Nablus. These data are shown in the following table (Table 6):
From the generated load profile, the annual peak demand of the EV charging station is 85 kW. Therefore, the initial size of the PV system is set to 90 kWp. The system capacity will be increased, and a battery will be added to study different scenarios and their impact on the performance of the charging station.
Recent trends in renewable energy system design emphasize the necessity of self-consumption and self-sufficiency at both the individual and community levels. Self-consumption and self-sufficiency are two energy indicators used to assess the utilization of local energy output [32]. The planning of future EV infrastructure should consider both metrics.
The term self-consumption ( S C ) refers to the quantity of electricity generated and consumed locally ( E l g c ) in proportion to the overall amount generated locally [32]:
S C = E l g c E l g
Self-sufficiency ( S S ) quantifies the proportion of consumption provided by the local generation to overall consumption. It assesses the user’s independence from the grid, and it is determined using the following formulas [32,33],
S S = E l g c E l o a d
Both metrics will be investigated for all scenarios in this work.
The average daily energy consumption of the generated load profile over the year is 567 kWh. The daily average generation for a 90 kW PV system is 409 kWh. As a result, a storage battery with a 200 kWh capacity is proposed. The battery capacity is determined after a number of iterations to optimize the system.
The battery state of charge (SOC) is defined as the ratio of the available energy to the maximum energy that can be stored in the battery. The SOC of a fully charged battery is 1, while the SOC of a fully discharged battery is 0. Batteries must not exceed their thermal limits in order to ensure their safety and stability. There is a limit to the amount of energy that can be discharged from the battery, which is commonly referred to as the minimum state of charge ( S O C m i n ). On the other hand, there is a limit to the amount of energy that can be stored in the battery, which is the maximum state of charge ( S O C m a x ). As a result, the S O C of the battery should always meet the following criteria:
S O C m i n S O C S O C m a x
By using the, and S O C m i n , as well as the rated energy (Erated) of the battery, it is possible to compute the maximum and minimum energy stored in the battery ( E b m a x , E b m i n ) as well as the rated energy (Erated) of the battery.
E b m a x = E r a t e d × S O C m a x
E b m i n = E r a t e d × S O C m i n
In this research, the selected battery is assumed to have a S O C m i n value of 0.2 and S O C m a x value of 0.95.

2.3. EV Charging Station Energy Models

In this research, two charging station configurations will be investigated, which are a PV-grid charging station without a battery and a PV-grid charging station with a battery.
The charging station is equipped with Level-2 AC-type chargers and is directly connected to the AC bus, allowing it to receive power from the PV inverter and the grid. The PV-grid charging configuration is illustrated in Figure 2.
The flowchart illustrated in Figure 3 explains the analysis of the first case. This approach is rather straightforward; the PV system will initially supply the EV load, and if the PV system is unable to supply the entire load, the grid will deliver the reset. On the other hand, if the PV system is able to meet 100% of the load, the excess energy is fed into the grid. The analysis will be performed for each hour of the year. Eventually, the total energy from the PV and the grid will be utilized to compute system self-consumption and self-sufficiency, as well as financial and environmental indicators.
The second configuration is shown in Figure 4 and it includes a battery equipped with a bidirectional converter that enables the battery to be charged from the PV system AC output power while also injecting energy into the grid to power the EV chargers on the AC bus. The following diagram illustrates how this system is connected.
The energy flow is more complicated in this scenario than in the previous one. First, the PV system will attempt to serve an entire load of local energy. If it is unable to do so, the battery will attempt to supply as much as possible. However, if the battery is unable to cover the entire load, the grid will supply the remaining load, and the battery state of charge will change to SOCmin. On the other hand, if the PV system can totally supply the load, the excess energy will be utilized to charge the battery. Any excess energy above the capacity of the battery will be injected into the grid, and the battery state of charge is set to SOCmax.
The process is illustrated in further detail in the flowchart illustrated in Figure 5.
In the case of having a vehicle-to-grid (V2G) system, the modeling will be very close to this case, as the principle of a vehicle-to-grid system is the ability to import expert power to the grid considering a specific situation. Here, in the case of exporting power to the grid, the code that describes the discharging process of the battery can be used. Meanwhile, in case of importing power from the grid, the code that describes the battery charging can be used. As for the role of exporting and importing power from the grid, they can be also set as the user wishes, considering system specifications.

2.4. Environmental Impact Modeling

The EV may save a considerable amount of CO2 emissions since it emits less CO2 compared to a diesel vehicle when traveling the same distance. According to our assumptions, the electric vehicle requires 0.16 kWh/km on average. The total distance traveled may be determined from the generated load profile by dividing the total electricity consumption per year (207,211 kWh/year) by the kWh consumption per km. The total distance traveled per year is calculated to be 1,295,068 km. Given that diesel vehicles can travel on average 12 km/liter, it is estimated that if diesel vehicles are utilized, they will burn 107,922 L/year.
On average, a diesel vehicle emits 2.6 kgCO2 for every liter of fuel burned. This means that diesel vehicles may release 280.59 tCO2 annually if they travel the assumed distance.
On the other side, the CO2 emitted by the EV depends on the generating source of electricity. In this research, it is assumed to be 0.7 kgCO2/kWh; therefore, the overall emission, if electric vehicles are used to travel the assumed distance, is equal to 145 tCO2/year. This suggests that the grid-powered EV vehicles may save 135.6 tCO2/year, which is comparable to a 48.32% reduction in CO2/year compared to a diesel vehicle. Now, if a portion of the power consumed by the grid is replaced with PV, the savings will be much greater. The following equation shows the total CO2 savings associated with integrating a PV system to power the electric vehicle charging station.
C O 2 D i e s e l   V e h i c l e = l d i e s e l × 2.6 k g C O 2 l
C O 2 E V = k W h g r i d × 0.7 k g C O 2 k W h
C O 2 S a v i n g E V = C O 2 D i e s e l   V e h i c l e C O 2 E V
C O 2 S a v i n g P V = k W h P V × 0.7 k g C O 2 k W h
T o t a l C O 2 S a v i n g = C O 2 S a v i n g E V + C O 2 S a v i n g P V

2.5. Financial Parameters

In this research, the assumed initial parameters are PV Station Cost (1100 $/kW), Charger Cost (700 $/charger), Annual Running and Replacement Cost (15 $/kW), Battery Cost (200 $/kWh), Daytime Tariff (0.16 $/kWh), and Battery Tariff (0.2 $/kWh). These values are obtained based on many previous reports and some local figures [4,5,6,7,8,9].

3. Results and Discussion

In this research, python codes have been developed for two main cases with more than four subcases. The two main cases are a PV-based charging station that is connected to the grid with/without a battery as an additional source.
Each case of these cases is simulated by considering two types of grid interfaces, exporting interface (allowing energy to flow back to the grid) and the zero-export interface, which blocks any reverse power to the grid. The reason behind simulating these cases is to provide information about EV charging stations considering all other technical conditions.
The required size (90 kWp) is simulated first. Moreover, in this research, the advantage of adding more treading options for any PV-based charging stations with more PV array that exports energy to the grid is investigated by adding two trading options (30% (120 kWp) and 50% (140 kWp) more than the required size.
The performance of the two main cases is provided in Table 7 and Table 8. From Table 7, the charging size of 90 kWp is suitable for the system with an acceptable payback period and cost of energy. Here the additional trading option does not add that much to the system as it is a net metering system considering the economic issue. However, it makes self-sufficiency higher and contributes positively to the environment by saving more CO2 emissions. As for the zero export system, the optional trading options are not recommended as they did not contribute that much to the system. This situation is the same for PV systems with batteries considering the zero export system; however, the additional trading option might provide some advantages to the system. As a result, adding a battery increases the payback period and the cost of energy but also increases the self-sufficiency ratio. This is to say that the designer should use the proposed model in a trade-off frame between the technical, economic, and environmental issues in order to propose an optimal system.
After all, the posted performance in Table 7 and Table 8 are examples of the developed models (provided in Appendix A). The user can modify the input parameters of these models in order to simulate any of the aforementioned systems under special circumstances. Moreover, the provided codes can be combined in any size optimization or optimal allocation process of EV charging stations as it provides system performance depending on different types of parameters. Finally, such codes can also be used to conduct feasibility studies, whereas system production can be predicted by running the model, and then the cost of the unit can be calculated. Such models can be implemented in a Python environment or Matlab environment easily.

4. Conclusions

This paper presented the development of Python codes for photovoltaic/grid-based charging stations for electric vehicles considering many operation models. These modes included grid-connected photovoltaic charging stations with/without exporting features to the grid. In addition to that, the case of the PV/grid/battery system was also modeled with/without exported feature to the grid. Following the development of these models, systems performance was generated considering technical, environmental, and economic aspects. Such models are useful for researchers who are working in the field of EV sizing, placement, and control and performance analysis. The proposed techno-economic models can be used to evaluate the optimal location of the electric vehicle charging stations and the financial and environmental benefits of the electric vehicle charging stations installed in a residential, commercial, or industrial context. The models were tested by proposing a simulation of load demand and investigating different cases, including actual size cases and additional trading cases.

Author Contributions

Conceptualization, R.D. and T.K.; methodology, R.D. and T.K.; R.D. and T.K.; validation, T.K.; formal analysis, R.D. and T.K.; investigation, R.D. and T.K.; writing—original draft preparation, R.D. and T.K.; writing—review and editing, R.D. and T.K.; supervision, T.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data is available upon request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. (Python Codes)

Appendix A.1. PV/Grid Charging Station Code

tariff=0.15
PV_Capacity=140 # 90, 120 , 140
DCACratio=1 # 1 or 1.2
PVcost=1100 # cost per kW
Charger_cost=700
Chargers=15
investment=PV_Capacity*PVcost + Chargers*Charger_cost
time=pd.date_range(start=‘1/1/2021’, end=‘1/1/2022’,freq=‘1h’)
time=list(time)
del time[-1]
EVload=pd.read_csv(‘EVLoad.csv’)
PV= pd.read_csv( “90kW.csv” )
Data=pd.DataFrame(columns=[‘Time’,’PV’,’EV’,’Grid’])
Data[‘Time’]=time
Data[‘PV’]=PV[‘E_Grid’]
Data[‘EV’]=EVload[‘EVLoad’]
Data[‘Grid’]=99999
for i in range(len(Data[‘PV’])):
if Data[‘PV’].iloc[i] >= Data[‘EV’].iloc[i] :
Data[‘Grid’].iloc[i]=-( Data[‘PV’].iloc[i]—Data[‘EV’].iloc[i] ) # Export Energy (negative Sign)
elif Data[‘PV’].iloc[i] < Data[‘EV’].iloc[i]:
Data[‘Grid’].iloc[i]=Data[‘EV’].iloc[i]—Data[‘PV’].iloc[i] # Import Energy (Positive Sign)
E_grid_export=sum( Data[‘Grid’][( Data[‘Grid’] < 0 ) ])
E_grid_import=sum( Data[‘Grid’][( Data[‘Grid’] > 0 ) ])
E_Load=sum(Data[‘EV’])
E_PV=sum(Data[‘PV’])
E_PV_consumed=E_Load-E_grid_import
SC=E_PV_consumed/( E_PV )*100 #Self-Consumption
SS=E_PV_consumed/(E_Load )*100 #Self-Sufficiency
SPBP=investment/(E_PV*tariff) #SPBP for Net Metering (feed-in System)
CO2=E_PV*0.7/1000
print(“E_PV:”,E_PV,”kWh”)
print(“E_PV_consumed:”,E_PV_consumed,”kWh”)
print(“E_Load:”,E_Load,”kWh”)
print(“Self-Consumption:”,SC,”%”)
print(“Self-Sufficiency :”,SS,”%”)
print(“E_grid_export:”,E_grid_export,”kWh”)
print(“E_grid_import:”,E_grid_import,”kWh”)
print(“SPBP:”,SPBP,”year”)
print(“CO2:”,CO2,”ton”)
Data.to_csv(“Results.csv”)

Appendix A.2. PV/Grid/Battery Charging Station Code

tariff=0.1
PV_Capacity=90 # 90, 120 , 140
PVcost=1000 # cost per kW
Charger_cost=700
Chargers=15
investment=PV_Capacity*PVcost + Chargers*Charger_cost + 200*200
SOCmax=0.95
SOCmin=0.2
Eb_rated=200
SOC_init=0.2
Eb_min=Eb_rated*SOCmin
Eb_max=Eb_rated*SOCmax
timex=pd.date_range(start=‘1/1/2021’, end=‘1/1/2022’,freq=‘1h’)
timex=list(timex)
del timex[-1]
EVLoad=pd.read_csv(‘EVLoad.csv’)
PV= pd.read_csv( “90kW.csv” )
Data=pd.DataFrame(columns=[‘Time’,’PV’,’Eload’,’Grid’,’SOC’,’Eb’])
Data[‘Time’]=timex
Data[‘PV’]=PV[‘E_Grid’]
Data[‘Eload’]=EVLoad[‘EVLoad’]
Data[‘Grid’]=99999
Data[‘Grid’].iloc [0]=0
Data[‘SOC’]=99999
Data[‘SOC’].iloc [0]=SOC_init
Data[‘Eb’].iloc [0]=99999
Ebatt=0
for i in range(1,len(Data[‘PV’]) ):
Data[‘Eb’].iloc[i-1]=Data[‘SOC’].iloc[i-1]*Eb_rated
if Data[‘PV’].iloc[i] >= Data[‘Eload’].iloc[i] :
if Data[‘SOC’].iloc[i-1]==SOCmax:
Data[‘Grid’].iloc[i]=-( Data[‘PV’].iloc[i]—Data[‘Eload’].iloc[i] ) # Export All Energy (negative Sign)
Data[‘SOC’].iloc[i]=SOCmax
elif Data[‘SOC’].iloc[i-1]<SOCmax:
Echarg=Eb_max-Data[‘Eb’].iloc[i-1]
Eexcess=Data[‘PV’].iloc[i]-Data[‘Eload’].iloc[i]-Echarg
if Eexcess>=0:
Data[‘Grid’].iloc[i]=-Eexcess # Export part of the Energy (negative Sign)
Data[‘SOC’].iloc[i]=SOCmax
else:
Data[‘Grid’].iloc[i]=0
Data[‘SOC’].iloc[i]=Data[‘SOC’].iloc[i-1] + ( Data[‘PV’].iloc[i]—Data[‘Eload’].iloc[i] )/Eb_rated # Battery carging
elif Data[‘PV’].iloc[i] < Data[‘Eload’].iloc[i]:
if Data[‘SOC’].iloc[i-1]==SOCmin:
Data[‘Grid’].iloc[i]=Data[‘Eload’].iloc[i]—Data[‘PV’].iloc[i] # Import Energy (Positive Sign)
Data[‘SOC’].iloc[i]=SOCmin
else:
Edischarg=Data[‘Eb’].iloc[i-1]—Eb_min
Edeficit=Data[‘PV’].iloc[i] + Edischarg—Data[‘Eload’].iloc[i]
if Edeficit >=0:
Data[‘Grid’].iloc[i]=0
Data[‘SOC’].iloc[i]=Data[‘SOC’].iloc[i-1]—( Data[‘Eload’].iloc[i]—Data[‘PV’].iloc[i] )/Eb_rated # Battery discarging
Ebatt+=( Data[‘Eload’].iloc[i]—Data[‘PV’].iloc[i] )
else:
Data[‘Grid’].iloc[i]=-Edeficit # Import Energy (Positive Sign)
Data[‘SOC’].iloc[i]=SOCmin
Ebatt+=Edischarg
E_grid_export=sum( Data[‘Grid’][( Data[‘Grid’] < 0 ) ])
E_grid_import=sum( Data[‘Grid’][( Data[‘Grid’] > 0 ) ])
E_Load=sum(Data[‘Eload’])
E_PV=sum(Data[‘PV’])
E_PV_consumed=E_Load-E_grid_import
SC=E_PV_consumed/( E_PV )*100 #Self-Consumption
SS=E_PV_consumed/(E_Load )*100 #Self-Sufficiency
SPBP=investment/(E_PV*tariff) # SPBP for Net Metering (feed-in System)
CO2=E_PV*0.7/1000
print(“E_Load:”,E_Load,”kWh”)
print(“E_PV:”,E_PV,”kWh”)
print(“E_PV_consumed:”,E_PV_consumed,”kWh”)
print(“Self-Consumption:”,SC,”%”)
print(“Self-Sufficiency :”,SS,”%”)
print(“E_grid_export:”,E_grid_export,”kWh”)
print(“E_grid_import:”,E_grid_import,”kWh”)
print(“Battery Energy”,Ebatt)
print(“SPBP:”,SPBP,”year”)
print(“CO2:”,CO2,”ton”)
Data.to_csv(“Results_90kW.csv”)

References

  1. Adnan, N.; Nordin, S.M.; Rahman, I.; Vasant, P.; Noor, M.A. An Integrative Approach to Study on Consumer Behavior towards Plug-In Hybrid Electric Vehicles Revolution: Consumer Behavior towards Plug-In Hybrid Electric Vehicles. In Applied Behavioral Economics Research and Trends; IGI Global: Hershey, PA, USA, 2017. [Google Scholar]
  2. Parker, N.; Breetz, H.L.; Salon, D.; Conway, M.W.; Williams, J.; Patterson, M. Who saves money buying electric vehicles? Heterogeneity in total cost of ownership. Transp. Res. Part D Transp. Environ. 2021, 96, 102893. [Google Scholar] [CrossRef]
  3. Ahmad, F.; Iqbal, A.; Ashraf, I.; Marzband, M.; Khan, I. Optimal location of electric vehicle charging station and its impact on distribution network: A review. Energy Rep. 2022, 8, 2314–2333. [Google Scholar] [CrossRef]
  4. Zeb, M.Z.; Imran, K.; Khattak, A.; Janjua, A.K.; Pal, A.; Nadeem, M.; Zhang, J.; Khan, S. Optimal Placement of Electric Vehicle Charging Stations in the Active Distribution Network. IEEE Access 2020, 8, 68124–68134. [Google Scholar] [CrossRef]
  5. Torres, S.; Durán, I.; Marulanda, A.; Pavas, A.; Quirós-Tortós, J. Electric vehicles and power quality in low voltage networks: Real data analysis and modeling. Appl. Energy 2021, 305, 117718. [Google Scholar] [CrossRef]
  6. Tuan, L.A. Impacts of fast charging of electric buses on electrical distribution systems. CIRED Open Access Proc. J. 2017, 2017, 2350–2353. Available online: https://digital-library.theiet.org/content/journals/10.1049/oap-cired.2017.0802 (accessed on 1 October 2022).
  7. Mohsenzadeh, A.; Pazouki, S.; Ardalan, S.; Haghifam, M.-R. Optimal placing and sizing of parking lots including different levels of charging stations in electric distribution networks. Int. J. Ambient. Energy 2018, 39, 743–750. [Google Scholar] [CrossRef]
  8. Awasthi, A.; Venkitusamy, K.; Padmanaban, S.; Selvamuthukumaran, R.; Blaabjerg, F.; Singh, A.K. Optimal planning of electric vehicle charging station at the distribution system using hybrid optimization algorithm. Energy 2017, 133, 70–78. [Google Scholar] [CrossRef]
  9. Liu, Z.; Wen, F.; Ledwich, G. Optimal Planning of Electric-Vehicle Charging Stations in Distribution Systems. IEEE Trans. Power Deliv. 2013, 28, 102–110. [Google Scholar] [CrossRef]
  10. Zhu, Z.-H.; Gao, Z.-Y.; Zheng, J.-F.; Du, H.-M. Charging station location problem of plug-in electric vehicles. J. Transp. Geogr. 2016, 52, 11–22. [Google Scholar] [CrossRef]
  11. Battapothula, G.; Yammani, C.; Maheswarapu, S. Multi-objective simultaneous optimal planning of electrical vehicle fast charging stations and DGs in distribution system. J. Mod. Power Syst. Clean Energy 2019, 7, 923–934. [Google Scholar] [CrossRef] [Green Version]
  12. Moradi, M.H.; Abedini, M.; Tousi, S.R.; Hosseinian, S.M. Optimal siting and sizing of renewable energy sources and charging stations simultaneously based on Differential Evolution algorithm. Int. J. Electr. Power Energy Syst. 2015, 73, 1015–1024. [Google Scholar] [CrossRef]
  13. Islam, M.M.; Shareef, H.; Mohamed, A. Optimal location and sizing of fast charging stations for electric vehicles by incorporating traffic and power networks. IET Intell. Transp. Syst. 2018, 12, 947–957. [Google Scholar] [CrossRef]
  14. Falcão, E.A.M.; Teixeira, A.C.R.; Sodre, J.R. Analysis of CO2 emissions and techno-economic feasibility of an electric commercial vehicle. Appl. Energy 2017, 193, 297–307. [Google Scholar] [CrossRef]
  15. Laurischkat, K.; Jandt, D. Techno-economic analysis of sustainable mobility and energy solutions consisting of electric vehicles, photovoltaic systems and battery storages. J. Clean. Prod. 2018, 179, 642–661. [Google Scholar] [CrossRef]
  16. Kobashi, T.; Yarime, M. Techno-economic assessment of the residential photovoltaic systems integrated with electric vehicles: A case study of Japanese households towards 2030. Energy Procedia 2019, 158, 3802–3807. [Google Scholar] [CrossRef]
  17. Verma, A.; Raj, R.; Kumar, M.; Ghandehariun, S.; Kumar, A. Assessment of renewable energy technologies for charging electric vehicles in Canada. Energy 2015, 86, 548–559. [Google Scholar] [CrossRef]
  18. Fachrizal, R.; Shepero, M.; Åberg, M.; Munkhammar, J. Optimal PV-EV sizing at solar powered workplace charging stations with smart charging schemes considering self-consumption and self-sufficiency balance. Appl. Energy 2021, 307, 118139. [Google Scholar] [CrossRef]
  19. Han, X.; Garrison, J.; Hug, G. Techno-economic analysis of PV-battery systems in Switzerland. Renew. Sustain. Energy Rev. 2022, 158, 112028. [Google Scholar] [CrossRef]
  20. Kumar, V.; Teja, V.R.; Singh, M.; Mishra, S. PV Based Off-Grid Charging Station for Electric Vehicle. IFAC-PapersOnLine 2019, 52, 276–281. [Google Scholar] [CrossRef]
  21. Roselli, C.; Sasso, M. Integration between electric vehicle charging and PV system to increase self-consumption of an office application. Energy Convers. Manag. 2016, 130, 130–140. [Google Scholar] [CrossRef]
  22. Martin, H.; Buffat, R.; Bucher, D.; Hamper, J.; Raubal, M. Using rooftop photovoltaic generation to cover individual electric vehicle demand—A detailed case study. Renew. Sustain. Energy Rev. 2022, 157, 111969. [Google Scholar] [CrossRef]
  23. Deshmukh, S.S.; Pearce, J.M. Electric vehicle charging potential from retail parking lot solar photovoltaic awnings. Renew. Energy 2021, 169, 608–617. [Google Scholar] [CrossRef]
  24. Singh, A.; Shaha, S.S.; Nikhil, P.G.; Sekhar, Y.R.; Saboor, S.; Ghosh, A. Design and Analysis of a Solar-Powered Electric Vehicle Charging Station for Indian Cities. World Electr. Veh. J. 2021, 12, 132. [Google Scholar] [CrossRef]
  25. Chandra, G.R.; Bauer, P.; Zeman, M. System design for a solar powered electric vehicle charging station for workplaces. Appl. Energy 2016, 168, 434–443. [Google Scholar] [CrossRef] [Green Version]
  26. Tulpule, P.J.; Marano, V.; Yurkovich, S.; Rizzoni, G. Economic and environmental impacts of a PV powered workplace parking garage charging station. Appl. Energy 2013, 108, 323–332. [Google Scholar] [CrossRef]
  27. Good, C.; Shepero, M.; Munkhammar, J.; Boström, T. Scenario-based modelling of the potential for solar energy charging of electric vehicles in two Scandinavian cities. Energy 2019, 168, 111–125. [Google Scholar] [CrossRef]
  28. Li, C.; Shan, Y.; Zhang, L.; Zhang, L.; Fu, R. Techno-economic evaluation of electric vehicle charging stations based on hybrid renewable energy in China. Energy Strat. Rev. 2022, 41, 100850. [Google Scholar] [CrossRef]
  29. Bhatti, A.R.; Salam, Z.; Aziz, M.J.A.; Yee, K.P.; Ashique, R. Electric vehicles charging using photovoltaic: Status and technological review. Renew. Sustain. Energy Rev. 2016, 54, 34–47. [Google Scholar] [CrossRef]
  30. Brenna, M.; Foiadelli, F.; Leone, C.; Longo, M. Electric Vehicles Charging Technology Review and Optimal Size Estimation. J. Electr. Eng. Technol. 2020, 15, 2539–2552. [Google Scholar] [CrossRef]
  31. Sanguesa, J.A.; Torres-Sanz, V.; Garrido, P.; Martinez, F.J.; Marquez-Barja, J.M. A Review on Electric Vehicles: Technologies and Challenges. Smart Cities 2021, 4, 372–404. [Google Scholar] [CrossRef]
  32. Ciocia, A.; Amato, A.; Di Leo, P.; Fichera, S.; Malgaroli, G.; Spertino, F.; Tzanova, S. Self-Consumption and Self-Sufficiency in Photovoltaic Systems: Effect of Grid Limitation and Storage Installation. Energies 2021, 14, 1591. [Google Scholar] [CrossRef]
  33. Molina, M.B.T.; Prodanovic, M. Profitability assessment for self-sufficiency improvement in grid-connected non-residential buildings with on-site PV installations. In Proceedings of the 2013 International Conference on Clean Electrical Power (ICCEP), Alghero, Italy, 11–13 June 2013; pp. 353–360. [Google Scholar] [CrossRef]
Figure 1. Generated EV-load profile.
Figure 1. Generated EV-load profile.
Wevj 14 00103 g001
Figure 2. PV-grid charging configuration.
Figure 2. PV-grid charging configuration.
Wevj 14 00103 g002
Figure 3. Flow chart of energy flow model of EV–PV−grid.
Figure 3. Flow chart of energy flow model of EV–PV−grid.
Wevj 14 00103 g003
Figure 4. PV−grid battery system.
Figure 4. PV−grid battery system.
Wevj 14 00103 g004
Figure 5. Energy flow model for PV−grid battery charging system.
Figure 5. Energy flow model for PV−grid battery charging system.
Wevj 14 00103 g005
Table 1. EV battery chargers classification.
Table 1. EV battery chargers classification.
Power LevelCharger LocationTypical UseTypical PowerCharging Time
Level 1On-boardHome1.3–2.4 kW40–50 h
Level 2On-boardHome, Workplace, and Public6.6–22 kW4–8 h
Level 3Off-boardPublic DC Fast Station50–350 kW<1 h
Table 2. Input parameters to generate EV load profile [29,30].
Table 2. Input parameters to generate EV load profile [29,30].
Vehicle ModelNumber of VehiclesMaximum Charging Power (kW)Average Charging Duration (min)kWh per Kilometer
Tesla Model 350112400.15
Nissan Leaf506.62400.18
Hyundai IONIQ Electric507.22400.16
Table 3. Manufacturer data for charger type used in this research [29,30].
Table 3. Manufacturer data for charger type used in this research [29,30].
Input Voltage100 V/250 V/380 V (Three Phase)
Input frequency47~63 Hz
Max. output power7.6 kW/22 kW (Three Phase)
Max. output current32 A
Charging interface typeIEC 62196-2, SAE J1772
Environment temperature−40 °C~+80 °C
Protection degreeIP66
Standby power consumption<8 W
Table 4. Number of chargers selection.
Table 4. Number of chargers selection.
Number of ChargersAssumed Session per DayActual Sessions per DayMissed Sessions per Day
52012.47.6
102018.51.5
152019.90.1
202019.90.1
Table 5. Energy consumption of EV based on the generated load profile.
Table 5. Energy consumption of EV based on the generated load profile.
MonthEV Avg Monthly Load (kWh)EV Avg Daily Load (kWh)
January17,161554
February15,970570
March19,000613
April16,803560
May16,926546
June17,208574
July16,724539
August19,263621
Sepeptember16,931564
October17,200555
November17,103570
December16,922546
Total207,211567
Table 6. Average solar energy and ambient temperature in Nablus city.
Table 6. Average solar energy and ambient temperature in Nablus city.
MonthDaily Average Irradiance (kWh/m2/day)POA Irradiance (kWh/m2)Daily Average Temperature (°C)
January4.20522130.3628.69
February4.10834115.03410.55
March6.03906187.21110.31
April6.32847189.85415.3
May7.64967237.1418.72
June7.7606232.81820.37
July7.89418244.7223.57
August7.67325237.87123.18
September6.96279208.88422.25
October5.78391179.30120.35
November4.19166125.7515.17
December3.70693114.91510.03
Table 7. Performance of EV charging station with PV system without battery.
Table 7. Performance of EV charging station with PV system without battery.
PV Net-MeteringPV Zero-Export
System Capacity (kW)9012014090120140
Total PV Generation (kWh)149,633199,506232,75297,190103,389105,788
PV Energy Consumed locally (kWh)97,190103,389105,78897,190103,389105,788
Egrid exported (kWh)52,44296,117126,964000
Egrid Imported (kWh)110,020103,821101,422110,020103,821101,422
Self-Consumption Ratio (%)64.9551.8245.45100%100%100%
Self-Sufficiency Ratio (%)46.9049.8951.0546.9049.8951.05
Payback Period (year)4.474.073.97.189.2710.8
Levelized Cost of Energy ($/kWh)0.0570.0560.0550.0880.1080.122
Total CO2 Saving (tCO2)240.34275.25298.53203.63207.97209.65
Table 8. Performance of EV charging station with PV system with battery.
Table 8. Performance of EV charging station with PV system with battery.
PV/Battery Net-MeteringPV/Battery Zero-Export
System Capacity (kW)9012014090120140
Total PV Generation (kWh)149,633199,506232,752137,099152,385156,623
PV Energy Consumed locally (kWh)137,099152,385156,623137,099152,385156,623
Battery Energy (kWh)39,90548,99350,83239,90548,99350,832
Egrid exported (kWh)12,53647,12376,132000
Egrid Imported (kWh)70,11154,82550,58770,11154,82550,587
Self-Consumption Ratio (%)91.62%76.3867.29100%100%100%
Self-Sufficiency Ratio (%)66.1673.5475.5866.1673.5475.58
Payback Period (Year)6.756.145.907.378.078.85
Levelized Cost of Energy ($/kWh)0.0960.0850.0800.1040.1110.119
CO2 Saving (tCO2)240.34275.25298.53231.57242.27245.24
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

Direya, R.; Khatib, T. Simplified Python Models for Photovoltaic-Based Charging Stations for Electric Vehicles Considering Technical, Economic, and Environmental Aspects. World Electr. Veh. J. 2023, 14, 103. https://0-doi-org.brum.beds.ac.uk/10.3390/wevj14040103

AMA Style

Direya R, Khatib T. Simplified Python Models for Photovoltaic-Based Charging Stations for Electric Vehicles Considering Technical, Economic, and Environmental Aspects. World Electric Vehicle Journal. 2023; 14(4):103. https://0-doi-org.brum.beds.ac.uk/10.3390/wevj14040103

Chicago/Turabian Style

Direya, Rezeq, and Tamer Khatib. 2023. "Simplified Python Models for Photovoltaic-Based Charging Stations for Electric Vehicles Considering Technical, Economic, and Environmental Aspects" World Electric Vehicle Journal 14, no. 4: 103. https://0-doi-org.brum.beds.ac.uk/10.3390/wevj14040103

Article Metrics

Back to TopTop