Sizing Lab

Hydrid Storage Architecture and Specification#

Written by Marc Budinger, INSA Toulouse, France

We will consider here an hybrid solutions with super capacities and traction battery packs. This notebook is dedicated :

  • to understand main operating limits of super capacitors and batteries

  • to understand a control architecture enabling to split power between super capacitors and batteries

  • to specify energy storage requirements of the different energy sources.

The storage element selection approach developed here is inspired by the following publication:

Jaafar, A., Sareni, B., Roboam, X., & Thiounn-Guermeur, M. (2010, September). Sizing of a hybrid locomotive based on accumulators and ultracapacitors. In 2010 IEEE Vehicle Power and Propulsion Conference (pp. 1-6). IEEE.[pdf]

Main operating limits of energy storage components#

To enable the selection of energy storage means, it is necessary to understand their main operational limitations. These limits can be representative:

  • rapid deterioration that can develop over an operating cycle, for example one journey or a few journeys over the same day.

  • gradual degradation linked to the lifespan of the component over multiple cycles, months or years, where the accumulation of degradation leads to an irreversible loss of performance.

Questions: Examine the following Figures extract from datasheet of elementary storage cells of supercapacitors or battery (LiFeSO4). Propose selection criteria representative of the main operational limits. Explain how to size a battery taking into account an high number of discharge cycles.

Battery Cell

Ultracapacitor Cell

Simulation of a complete line#

The objective of this section is to propose an evolution of the previous python codes to be able to:

  • simulate the power profile necessary for a complete line comprising several sections.

  • We will define in particular the type of vehicle, the different lengths of sections between 2 stations (Distances vector), the average speed to be ensured (Speeds vector), the presence of charger in station (Chargers vector), the stopping duration at station (StopDuration vector), the ratio between the maximum braking power and the maximum acceleration power (RatioBrakeMax).

  • provide the information necessary for sizing the battery/supercapacity packs that could be added.

  • We assume here an efficiency of the motorization chain of 100%.

  • Each line section will be optimized in order to meet the requirements defined previously and minimize the energy consumed. -The energy flow or the resulting power demand will be shared between battery and supercapacity with control based on frequency sharing of demands: the low frequency power will be provided by the batteries while the high frequency part will be provided by supercapacitors.

  • Indicators useful for sizing will then be generated from these power profiles.

  • take into account the energy that could come from charging stations or catenaries.

  • This version will only implement the consideration of charging stations.

  • Each charging station will provide the power to compensate for the energy of the travel from the last station.

Here we load all the functions and classes defined in the previous notebook.

%run ./01b_CaseStudy_Specification.ipynb
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Duration of traject for given mean speed: 92.76923076923077s
Consumption per passenger: 21.18 kJ/(Pax.km)
Max energy discharge: 5039 kJ
Consumption per passenger: 103.06 kJ/(Pax.km)
../../_images/02e0f58c0274abacf4607f3606257d1b2cfc9e51f58b1adc19e37270fbde1828.png ../../_images/27393b51991fe43431d48339b173c15943e9b1a86a4a4ad1692b945d639e9f52.png
Min acceleration is: 0.3114059332964806m/s²
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Consumption per passenger: 18.74 kJ/(Pax.km)
Max energy discharge: 7420 kJ
../../_images/8820e2182d7479264adf73c9107b521a387502e3193b66e59dcea640665e78bf.png ../../_images/66a7682669dad9abf964b2358d0e5e3173d4f08456a66ac2fe6e8f944ffad54e.png
/tmp/ipykernel_2703/2473967107.py:17: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
  k1=float(sol.x)
0.036125972011676784
[0.036125972011676784, 1, 0.9638740279883232]
Consumption per passenger: 20.44 kJ/(Pax.km)
Max energy discharge: 4450 kJ
../../_images/6566fe3bc3b10c067316d38d0c872ecc87cfe39ff330131d31e5ec64b66fd3be.png
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
             message: Optimization terminated successfully.
             success: True
                 fun: 1.1047112452861376
                   x: [ 6.424e-02  6.840e-01  9.579e-01]
                 nit: 20
                nfev: 949
          population: [[ 6.424e-02  6.840e-01  9.579e-01]
                       [ 8.272e-02  5.841e-01  9.609e-01]
                       ...
                       [ 6.967e-02  6.960e-01  9.725e-01]
                       [ 7.690e-02  6.007e-01  9.692e-01]]
 population_energies: [ 1.105e+00  1.107e+00 ...  1.116e+00  1.107e+00]
Optimal vector : [0.06424496 0.68399672 0.95794324]
Brake power/Acceleration power ratio is: 0.4645834131038729
Constraints vector : [0.0012001935608422947, 0.002902155887230561, 0.13541658689612707]
Consumption per passenger: 16.88 kJ/(Pax.km)
Max energy discharge: 3603 kJ

######################################
             message: Optimization terminated successfully.
             success: True
                 fun: 1.4822231652256583
                   x: [ 1.401e-01  3.752e-01  9.663e-01]
                 nit: 22
                nfev: 1039
          population: [[ 1.401e-01  3.752e-01  9.663e-01]
                       [ 1.346e-01  3.933e-01  9.678e-01]
                       ...
                       [ 1.205e-01  4.279e-01  9.845e-01]
                       [ 1.365e-01  3.811e-01  9.672e-01]]
 population_energies: [ 1.482e+00  1.501e+00 ...  1.517e+00  1.488e+00]
Optimal vector : [0.14007968 0.37521609 0.96627591]
Brake power/Acceleration power ratio is: 0.36515128415938675
Constraints vector : [0.0007442074331796862, 0.00020729684908794098, 0.23484871584061323]
Consumption per passenger: 16.93 kJ/(Pax.km)
Max energy discharge: 3337 kJ
../../_images/b9b236fa8eb6317676ca3bb84a57630c993ecd8402cf02096035748b7bc4f939.png ../../_images/9a03c3040c93c5197d254ca152266750a762cd7a05f27fcebe01279e65bd2e1c.png
Calculation of energy consumption of different vehicles: 

Tramway :
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
             message: Optimization terminated successfully.
             success: True
                 fun: 1.2482194479805129
                   x: [ 9.645e-02  4.992e-01  9.744e-01]
                 nit: 15
                nfev: 724
          population: [[ 9.645e-02  4.992e-01  9.744e-01]
                       [ 9.503e-02  5.187e-01  9.783e-01]
                       ...
                       [ 9.242e-02  4.953e-01  9.761e-01]
                       [ 9.052e-02  4.724e-01  9.750e-01]]
 population_energies: [ 1.248e+00  1.257e+00 ...  1.248e+00  1.249e+00]
Consumption per passenger: 19.71 kJ/(Pax.km)
----
Trolleybus :
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
             message: Optimization terminated successfully.
             success: True
                 fun: 1.119602251196164
                   x: [ 5.770e-02  7.955e-01  9.800e-01]
                 nit: 18
                nfev: 859
          population: [[ 5.770e-02  7.955e-01  9.800e-01]
                       [ 5.360e-02  8.491e-01  9.784e-01]
                       ...
                       [ 8.542e-02  6.353e-01  9.775e-01]
                       [ 6.350e-02  8.037e-01  9.798e-01]]
 population_energies: [ 1.120e+00  1.122e+00 ...  1.134e+00  1.141e+00]
Consumption per passenger: 33.62 kJ/(Pax.km)
----
Bus :
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
             message: Optimization terminated successfully.
             success: True
                 fun: 1.1382110888204808
                   x: [ 4.951e-02  7.566e-01  9.703e-01]
                 nit: 25
                nfev: 1174
          population: [[ 4.951e-02  7.566e-01  9.703e-01]
                       [ 6.662e-02  7.398e-01  9.831e-01]
                       ...
                       [ 3.958e-02  9.347e-01  9.538e-01]
                       [ 7.948e-02  7.396e-01  9.514e-01]]
 population_energies: [ 1.138e+00  1.165e+00 ...  1.151e+00  1.167e+00]
Consumption per passenger: 34.50 kJ/(Pax.km)
----
Car :
             message: Optimization terminated successfully.
             success: True
                 fun: 1.509129192627761
                   x: [ 3.806e-02  2.416e-01  9.851e-01]
                 nit: 28
                nfev: 1309
          population: [[ 3.806e-02  2.416e-01  9.851e-01]
                       [ 3.728e-02  2.346e-01  9.851e-01]
                       ...
                       [ 3.471e-02  2.410e-01  9.850e-01]
                       [ 3.309e-02  2.442e-01  9.848e-01]]
 population_energies: [ 1.509e+00  1.509e+00 ...  1.509e+00  1.509e+00]
Consumption per passenger: 99.96 kJ/(Pax.km)
../../_images/78e3ab709ba6f8977c701cce31ec1982e0ff232e1a7c3821a4189d2f5f4247f8.png

Here we define a line class with all the functionalities described just before.

from scipy import signal

class line():
    def __init__(self,Vehicle, Distances,Speeds, Chargers, StopDuration, RatioBrakeMax):
        i=0
        self.Section=[]
        self.Chargers =  Chargers # Boolean vector (True = Charger, False = No Charger , at end of te section)
        self.StopDuration = StopDuration # [s] station stop duration (scalar)
        self.RatioBrakeMax = RatioBrakeMax # [-] Ratio between max braking power / max acceleration power
        
        # initialization of  transient evolution (vectors)
        self.PowerStorage= [] # Transient evolution of requested power
        self.GlobalTime=[] # Time vector for plot and energy integration
        self.GlobalNRJStorage=[] # Transient evolution of energy
        self.PowerLF = [] # Transient evolution of power  (Low Frequency)
        self.PowerHF = [] # Transient evolution of power  (high Frequency)
        self.LFNRJStorage=[] # Time vector for plot and energy integration (Low Frequency)
        self.HFNRJStorage=[] # Time vector for plot and energy integration (High Frequency)

        self.TotalLineDistance =  sum(Distances)
        self.dt=0.25 # Time step for numerical integration
        
        # print characteristic of each section
        for d,s,c in zip(Distances,Speeds,Chargers):
            print("Section %.i: %.i m at %.2f m/s %s charger"%(i+1,d,s, "whith" if c else "without"))
            self.Section=self.Section+[OptimSection(Vehicle,d,s,self.RatioBrakeMax,self.dt)]
            i=i+1
    
    # Optimization loop of each section of the line
    def optimLine(self):
        X=[0.1,1,0.9]
        for i in range(len(self.Section)):
            self.Section[i].optimizeGConso(X)
            self.Section[i].plot()   
    
    # Power vector concatenation 
    def CalculPowerStorage(self):
        NRJ = 0
        self.PowerStorage= []
        self.GlobalTime= []
        dt=self.dt # [s] pas de temps pour l'integration
        
        # Power vector build thanks concatenation 
        for i in range(len(self.Section)):
            NRJ=NRJ+self.Section[i].NRJsection[-1] # we add here the energy consummed on the section
            
            self.PowerStorage = self.PowerStorage + self.Section[i].psection
            
            # Chargers effect
            if (self.Chargers[i] == True and i<(len(self.Section)-1)):
                tcharge=NRJ/self.Section[i].Vehicle.Pmax # Charging time caculation function of energy  
            else:
                tcharge=0
            if (tcharge>=self.StopDuration):
                self.PowerStorage = self.PowerStorage + [-self.Section[i].Vehicle.Pmax]*int(tcharge/dt)
                NRJ=0
            else:
                if (i<(len(self.Section)-1)):
                    self.PowerStorage = self.PowerStorage + [-self.Section[i].Vehicle.Pmax]*int(tcharge/dt)
                    self.PowerStorage = self.PowerStorage + [0]*int((self.StopDuration-tcharge)/dt)
                if (self.Chargers[i] == True) :
                    NRJ=0  
        
        # Time vector
        t=0
        for i in range(len(self.PowerStorage)):
            self.GlobalTime = self.GlobalTime + [t]
            t = t + dt
            
    # Filtering of total power in order to generate LF and HF pwoers
    def FilterPower(self, omega):
        TF=signal.TransferFunction([1], [1/omega**2, 2*1/omega, 1])
        time, self.PowerLF, state = signal.lsim(TF, self.PowerStorage , self.GlobalTime)
        self.PowerHF = self.PowerStorage -  self.PowerLF
        
    # NRJ vector integration from power vectors
    def IntegrateNRJ(self):
        t=0
        NRJtotal=0
        NRJHF=0
        NRJLF=0
        #NRJTotalAging=0
        #NRJLFAging=0
        self.HFNRJStorage = []
        self.GlobalNRJStorage = []
        self.LFNRJStorage = []
        dt=self.dt
        
        for i in range(len(self.PowerStorage)):
            self.GlobalNRJStorage = self.GlobalNRJStorage + [NRJtotal]
            self.HFNRJStorage = self.HFNRJStorage + [NRJHF]
            self.LFNRJStorage = self.LFNRJStorage + [NRJLF]
            #self.TotalNRJAging = self.TotalNRJAging + [NRJTotalAging]
            #self.LFNRJAging = self.LFNRJAging + [NRJLFAging]
        
            t = t + dt
            NRJtotal = NRJtotal+(self.PowerStorage[i])*dt
            NRJHF = NRJHF+(self.PowerHF[i])*dt
            NRJLF = NRJLF+(self.PowerLF[i])*dt
        
        PmaxHF = max(abs(min(self.PowerHF)),max(self.PowerHF))/1e3 # kW
        PmaxLF = max(self.PowerLF)/1e3 # kW 
        PmaxBrakeLF = abs(min(self.PowerLF))/1e3 # kW, Max power braking
        NRJHF = (max(self.HFNRJStorage) - min(self.HFNRJStorage))/3600/1e3 # NRJ en kWh
        NRJLF = (max(self.LFNRJStorage) - min(self.LFNRJStorage))/3600/1e3 # NRJ en kWh
        
        return PmaxHF, PmaxLF, PmaxBrakeLF, NRJHF, NRJLF
          
    
    
                
    # Main results plot
    def plot(self):
        
        fig, axs = plt.subplots(2,1)
        try:
            axs[0].plot(self.GlobalTime,self.PowerStorage,'b-',label='Total')
            axs[0].plot(self.GlobalTime,self.PowerLF,'r-.',label='LF')
            axs[0].plot(self.GlobalTime,self.PowerHF,'g-.',label='HF')
        except:
            pass
        axs[0].set_ylabel("Power (W)")
        axs[0].legend(bbox_to_anchor=(1.05, 1.0), loc='upper left')
        axs[0].grid()
        
        try:
            axs[1].plot(self.GlobalTime,self.GlobalNRJStorage,'b-',label='Total')
            axs[1].plot(self.GlobalTime,self.LFNRJStorage,'r-.',label='LF')
            axs[1].plot(self.GlobalTime,self.HFNRJStorage,'g-.',label='HF')
            axs[1].set_ylabel("Energy (J)")
            axs[1].legend(bbox_to_anchor=(1.05, 1.0), loc='upper left')
            axs[1].grid()   
            axs[1].set_xlabel('Time (s)')
        except:
            fig.delaxes(axs[1])
        fig.tight_layout()            
        
        
            

Example of a line definition#

We can now use this new class to define a bus transport line with the following requirements:

  • distances: 700, 500, 400, 700, 300, 300, 300, 300, 300, 300 m/s

  • mean speed: 7, 7, 7, 5, 5, 5, 5, 5 m/s

  • one final charger

ToulouseC=line(Bus,[700,500,400,700,300,300,300,300,300],[7, 7, 7,5,5,5,5,5],[False,False,False,False,False,False,False,True], 20, 0.6)
#ToulouseC=line(Bus,[700,500,400],[7, 7, 7],[False,False,True], 20, 0.6)
Section 1: 700 m at 7.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 2: 500 m at 7.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 3: 400 m at 7.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 4: 700 m at 5.00 m/s without charger
Section 5: 300 m at 5.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 6: 300 m at 5.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 7: 300 m at 5.00 m/s without charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small
Section 8: 300 m at 5.00 m/s whith charger
Vehicle Max Acceleration (depending of max force) is too low or travel distance too small or mean speed too small

Each speed profil section can be optimized.

ToulouseC.optimLine()
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0789022328098097
                   x: [ 4.841e-02  8.163e-01  9.794e-01]
                 nit: 28
                nfev: 1309
          population: [[ 4.841e-02  8.163e-01  9.794e-01]
                       [ 4.963e-02  8.498e-01  9.789e-01]
                       ...
                       [ 5.067e-02  8.495e-01  9.710e-01]
                       [ 4.696e-02  8.655e-01  9.888e-01]]
 population_energies: [ 1.079e+00  1.085e+00 ...  1.086e+00  1.081e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0937748899749213
                   x: [ 6.836e-02  9.012e-01  9.535e-01]
                 nit: 20
                nfev: 949
          population: [[ 6.836e-02  9.012e-01  9.535e-01]
                       [ 8.540e-02  8.232e-01  9.742e-01]
                       ...
                       [ 1.535e-01  5.459e-01  9.852e-01]
                       [ 7.801e-02  8.471e-01  9.547e-01]]
 population_energies: [ 1.094e+00  1.101e+00 ...  1.101e+00  1.097e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.103788938532267
                   x: [ 1.018e-01  8.651e-01  9.204e-01]
                 nit: 16
                nfev: 769
          population: [[ 1.018e-01  8.651e-01  9.204e-01]
                       [ 1.636e-01  6.893e-01  9.515e-01]
                       ...
                       [ 1.094e-01  8.231e-01  9.189e-01]
                       [ 2.078e-01  5.579e-01  9.606e-01]]
 population_energies: [ 1.104e+00  1.123e+00 ...  1.108e+00  1.122e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0405787055502655
                   x: [ 1.877e-02  9.201e-01  9.896e-01]
                 nit: 31
                nfev: 1444
          population: [[ 1.877e-02  9.201e-01  9.896e-01]
                       [ 1.798e-02  9.525e-01  9.896e-01]
                       ...
                       [ 1.852e-02  9.401e-01  9.894e-01]
                       [ 1.800e-02  9.232e-01  9.893e-01]]
 population_energies: [ 1.041e+00  1.042e+00 ...  1.041e+00  1.041e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0610453764966636
                   x: [ 6.663e-02  7.871e-01  9.753e-01]
                 nit: 17
                nfev: 814
          population: [[ 6.663e-02  7.871e-01  9.753e-01]
                       [ 8.907e-02  6.836e-01  9.836e-01]
                       ...
                       [ 5.925e-02  8.614e-01  9.855e-01]
                       [ 6.079e-02  8.191e-01  9.803e-01]]
 population_energies: [ 1.061e+00  1.066e+00 ...  1.063e+00  1.062e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0609329840248514
                   x: [ 6.132e-02  7.852e-01  9.801e-01]
                 nit: 20
                nfev: 949
          population: [[ 6.132e-02  7.852e-01  9.801e-01]
                       [ 6.228e-02  7.761e-01  9.730e-01]
                       ...
                       [ 7.670e-02  7.405e-01  9.844e-01]
                       [ 6.281e-02  7.821e-01  9.722e-01]]
 population_energies: [ 1.061e+00  1.061e+00 ...  1.064e+00  1.061e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0609329840248514
                   x: [ 6.453e-02  7.884e-01  9.782e-01]
                 nit: 20
                nfev: 949
          population: [[ 6.453e-02  7.884e-01  9.782e-01]
                       [ 7.159e-02  8.161e-01  9.587e-01]
                       ...
                       [ 1.014e-01  7.053e-01  9.751e-01]
                       [ 1.842e-01  6.793e-01  9.366e-01]]
 population_energies: [ 1.061e+00  1.068e+00 ...  1.077e+00  1.116e+00]
             message: Optimization terminated successfully.
             success: True
                 fun: 1.0610480033351233
                   x: [ 6.468e-02  7.754e-01  9.735e-01]
                 nit: 16
                nfev: 769
          population: [[ 6.468e-02  7.754e-01  9.735e-01]
                       [ 7.259e-02  7.522e-01  9.709e-01]
                       ...
                       [ 7.720e-02  7.764e-01  9.721e-01]
                       [ 5.860e-02  8.582e-01  9.776e-01]]
 population_energies: [ 1.061e+00  1.065e+00 ...  1.070e+00  1.064e+00]
../../_images/c58125d1cbb7c08ef9d7a7d60bb7a6febb557bce1077a506a31ab9908723633c.png ../../_images/2a2c4ac49f4b3d008b49190924e83acf701c30b85f3f145bb477f9a4e6d02352.png ../../_images/5981a5bcc32cc27bd3e8efe34b85cb1363b82170cd6a724047267f265b1f45c5.png ../../_images/e33ae676706bfe9b8396c12abb05b6296bdb851937744ec2fd15e4ead7d262dd.png ../../_images/65dc405b7b27e000ac007f47f4afb00d2f2f8cb1d9ff97b8c58d6bfbd74938e0.png ../../_images/dd31bb1ba091c43431f2ca412616c880ee0be53f1aadbd3755fabd9e7f3aca17.png ../../_images/dd31bb1ba091c43431f2ca412616c880ee0be53f1aadbd3755fabd9e7f3aca17.png ../../_images/aa4f918fec772da6286dcabd72450055e9dc2bd9bc4bc34faad08520e2823354.png

A time vector of evolution of the power required at each section or supplied to each charger is constructed.

ToulouseC.CalculPowerStorage()
ToulouseC.plot()
../../_images/5000ece2fab92d2fe7a7eba92c549e212827de8217e80c373ef03266ecd0a6d2.png

Hybrid storage system sizing#

The energy flow or the resulting power demand will be shared between battery and supercapacity with control based on frequency sharing of demands. The Figure below show how the low frequency power will be provided by the batteries while the high frequency part will be provided by supercapacitors.

Sizing Stategy

The cutoff frequency defines the power sharing and has a strong influence on the sizing of the storage elements. The following code analyzes this power sharing by varying this cutoff frequency.

Questions: Explain the sizing criteria implemented here to evaluate the mass or CO2 impact of batteries and supercapacitors.

omegaV=np.logspace(-5,2,50)
MassStorageV=[]
MassSC=[]
MassLFPAging=[]
MassLFPNRJ=[]
MassLFPPow=[]
CO2Total=[]

# Hypothese
Targetkm = 250e3 # [km] durée de vie du vehicule

# Energie massique des supercapacités
# https://1188159.fs1.hubspotusercontent-na1.net/hubfs/1188159/02-DS-220909-SKELCAP-CELLS-1F.pdf
# chez Skeleton
WmassSC=6.8*0.75 # [Wh/kg] on suppose pouvoir recuperer 75% de l'energie stockée
PmassSC=860/4.3*6.8*0.75 # [W/kg]

# Energie massique des batteries
# LFP
WmassLFP= 100 # [Wh/kg] les LFP peuvent pratiquement etre dechargé a 100%
PmassLFP=3*100 # [W/kg]  puissance massique en decharge à 3 C
PBmassLFP=1*100 # [W/kg]  puissance massique en decharge à 1 C
Ncycle = 3000 # [-] nb de cycle de decharge a 100%

# Bilan carbone
CO2SC = 39 # kgCO2eq/kg d'ecoInvent
CO2LFP = 11 # kgCO2eq/kg d'ecoInvent

for omega in omegaV:
    ToulouseC.FilterPower(omega)
    PmaxHF, PmaxLF, PmaxBrake, NRJHF, NRJLF = ToulouseC.IntegrateNRJ()
    
    Nc=Targetkm*1000/ToulouseC.TotalLineDistance # Number of cycles for global lifetime 
    DoD=(Nc/3365)**(-1/2.26) # DoD calculation for Target Km
    MassStorageV = MassStorageV + [max(NRJHF/WmassSC*1e3, PmaxHF/PmassSC*1e3)
                                   +max(NRJLF/DoD/WmassLFP*1e3,
                                       PmaxLF/PmassLFP*1e3, PmaxBrake/PBmassLFP*1e3)] 
    MassSC = MassSC + [max(NRJHF/WmassSC*1e3, PmaxHF/PmassSC*1e3)] 
    MassLFPNRJ = MassLFPNRJ + [NRJLF/WmassLFP*1e3] 
    
    MassLFPAging = MassLFPAging + [NRJLF/DoD/WmassLFP*1e3] 
    MassLFPPow = MassLFPPow + [PmaxBrake/PBmassLFP*1e3]
    CO2Total = CO2Total + [max(NRJHF/WmassSC*1e3, PmaxHF/PmassSC*1e3)*CO2SC+
                           max(NRJLF/DoD/WmassLFP*1e3, PmaxLF/PmassLFP*1e3, PmaxBrake/PBmassLFP*1e3)*CO2LFP]

The following figures represent the overall mass of the solutions according to the power sharing achieved. A simple CO2 impact is also estimated.

plt.plot(omegaV, MassStorageV, 'g^', label='Total')
plt.plot(omegaV, MassSC, 'yx', label='SuperCap')
plt.plot(omegaV, MassLFPNRJ, 'bo', label='LFP NRJ')
plt.plot(omegaV, MassLFPPow, 'bx', label='LFP Power (Brake)')
plt.plot(omegaV, MassLFPAging, 'ro', label='LFP Aging')
plt.xscale('log') 
plt.ylabel('Weight (kg)')
plt.xlabel('Cut off angular frequency (rad/s)')
plt.legend()
plt.show()
plt.plot(omegaV, CO2Total, 'g^', label='Total')
plt.xscale('log') 
plt.ylabel('CO2  (kgCO2eq)')
plt.xlabel('Cut off angular frequency (rad/s)')
plt.legend()
plt.show()
../../_images/3ad6245312fd918ad91f4a04655bd1de979b864bd4e353046737aede66982640.png ../../_images/e5b2391430c05d0eae0ab60d16e7f69a215afedebb38577a07a3791fde971f77.png

A Pareto front can help find a solution achieving a compromise between 2 objectives.

# Pareto Front

plt.scatter(MassStorageV, CO2Total, c=np.log10(omegaV))
plt.xlabel('Weight (kg)')
plt.ylabel('CO2  (kgCO2eq)')
plt.colorbar()
plt.title('Cut off angular frequency influence on Pareto Front')
plt.show()
../../_images/c1a0f1caa3e6084770ae352662d85c97e41023b6a02b43b60fcd61e5be9ce8d9.png
ToulouseC.FilterPower(0.4)
PmaxHF, PmaxLF, PmaxBrakeLF, NRJHF, NRJLF=ToulouseC.IntegrateNRJ()

Nc=Targetkm*1000/ToulouseC.TotalLineDistance # Number of cycles for global lifetime 
DoD=(Nc/3365)**(-1/2.26) # DoD calculation for Target Km

print("Super Capacitor:")
print("Pmax: %.2f kW"%PmaxHF)
print("NRJ:  %.2f kWh"%NRJHF)
print("Mass: % .1f kg"%(max(NRJHF/WmassSC*1e3, PmaxHF/PmassSC*1e3)))
      
print("---")
print("Traction battery:")
print("Pmax discharge: %.2f kW"%PmaxLF)
print("Pmax charge: %.2f kW"%PmaxBrakeLF)
print("NRJ: %.2f kWh"%(NRJLF/DoD))
print("NRJ one travel: %.2f kWh"%(NRJLF))
print("Mass: % .1f kg"%(max(NRJLF/DoD/WmassLFP*1e3,
                                       PmaxLF/PmassLFP*1e3, PmaxBrakeLF/PBmassLFP*1e3)))  
print("Mass (brake criteria): % .1f kg"%(PmaxLF/PmassLFP*1e3))  


ToulouseC.plot()
print("---")
Super Capacitor:
Pmax: 109.73 kW
NRJ:  0.23 kWh
Mass:  107.6 kg
---
Traction battery:
Pmax discharge: 99.95 kW
Pmax charge: 45.69 kW
NRJ: 11.30 kWh
NRJ one travel: 3.03 kWh
Mass:  456.9 kg
Mass (brake criteria):  333.2 kg
---
../../_images/f9e32ce068df4c4696dd23a319a42616f7c46d4a23f0cedba7974b5226d546a5.png

Labwork and homework#

Your objective is to specify the hybrid storage system of an electric bus for doubling line 78 between the IUT Rangueil and MFJA stations. The characteristics of the bus are here
BlueBus A example of time table of the line 78 is here
L78 We will assume a round trip in 20 min, charge at the ends of the lines included.

Modify the present notebooks in order to set up a technical justification report : starting from the need (journey, vehicle size, frequency of journeys), setting up the effort/speed/power profiles, the power distribution in the hybrid storage system, the preliminary sizing and the specification of the main components.

Adapt and complete the sizing process in order to take into account the global efficiency of the converters and storage elments (assumed to be equal to 80%).

Sizing process

Propose compatible technological storage packs and specify the DC/DC converters (DC bus of 400 V).

Provide an electrical architecture diagram (possible software) summarizing your main choices:

  • representing the different sources and load of the network.

  • making it possible to standardize the DC/DC converters used.

  • allowing reduced functionality to be maintained in the event of a fault on part of the storage elements