コード例 #1
0
        'maximum': 500
    }
}
limits_current_battery = {
    'charge': {
        'minimum': 0,
        'maximum': 1000
    },
    'discharge': {
        'minimum': -1000,
        'maximum': 0
    }
}

power_profile_1, time_1 = power_profile.WltpProfile(specs, (1, ))
t_wltp1 = electrical.Evolution(list(time_1))
p_wltp1 = electrical.Evolution(list(power_profile_1))

power_profile_2, time_2 = power_profile.WltpProfile(specs, (2, ))
t_wltp2 = electrical.Evolution(list(time_2))
p_wltp2 = electrical.Evolution(list(power_profile_2))

power_profile_3, time_3 = power_profile.WltpProfile(specs, (3, ))
t_wltp3 = electrical.Evolution(list(time_3))
p_wltp3 = electrical.Evolution(list(power_profile_3))
t_load = electrical.Evolution(list(range(10)))
p_load = electrical.Evolution([1e5] * 10)
t_end = electrical.Evolution(list(range(10)))
p_end = electrical.Evolution([-2e4] * 10)

ce_end = electrical.CombinationEvolution(evolution1=[t_end],
コード例 #2
0
"""
from powerpack import cells, power_profile, electrical, thermal, mechanical
from powerpack.optimization import electrical as eo
from powerpack.optimization import thermal as to
from powerpack.optimization import mechanical as mo
from dessia_common import workflow as wf

import numpy as npy


# =============================================================================
# Thermal specification
# =============================================================================

nb_discret = 4
evol_soc = electrical.Evolution(evolution=list(npy.linspace(0, 1, nb_discret)))

soc_charger = electrical.Evolution(evolution=[0, 0.2, 0.5, 1])
current_charger = electrical.Evolution(evolution=[60, 60, 30, 10])
ce_charger = electrical.CombinationEvolution(evolution1=[soc_charger],
                                       evolution2=[current_charger],
                                       title1='Soc',
                                       title2='Current')
se_charger = electrical.SpecsEvolution(temperature=298.15,
                                 charge=ce_charger,
                                 title='Current')
cce_charger = electrical.CombinationSpecsEvolution(specs_evolutions=[se_charger],
                                             title='Current')

evol_temperature = electrical.Evolution(evolution = [270, 290, 310, 330])
evol_thermal_trans1 = electrical.Evolution(evolution = [0.1, 0.5, 1, 1.5])
コード例 #3
0
                                          limits_voltage = {'charge': {'minimum': 0, 'maximum': 1000},
                                                            'discharge': {'minimum': 0, 'maximum': 600}},
                                          limits_current = {'charge': {'minimum': 0, 'maximum': 2000},
                                                            'discharge': {'minimum': -500, 'maximum': 0}})

# plots = b1.concept_plot_data()
# pdg = plot_data.plot_d3(plots[0])

VEHICLE_SPECS = {'SCx' : 1,
                 'Crr' : 0.01,
                 'mass' : 1300,
                 'powertrain_efficiency' : 0.7,
                 'charge_efficiency' : 0.5}

POWER_PROFILE, TIME = power_profile.WltpProfile(VEHICLE_SPECS, (1, ))
t_wltp = electrical.Evolution(list(TIME), name='t_wltp')
p_wltp = electrical.Evolution(list(POWER_PROFILE))
t_load = electrical.Evolution(list(range(10)))
p_load = electrical.Evolution([1e5]*10)
t_end = electrical.Evolution(list(range(10)))
p_end = electrical.Evolution([-2e4]*10)

ce_end = electrical.CombinationEvolution(evolution1 = [t_end],
                                        evolution2 = [p_end])
ce_wltp = electrical.CombinationEvolution(evolution1 = [t_wltp],
                                        evolution2 = [p_wltp])
ce_load = electrical.CombinationEvolution(evolution1 = [t_load],
                                        evolution2 = [p_load])


load_bat = electrical.PowerProfile(soc_init = 0.05*180000, combination_evolutions = [ce_load],