co2mpas_driver.model
Functions and a model dsp to process a CO2MPAS input file.
Sub-Modules: .. currentmodule:: co2mpas_driver.model .. autosummary:
:nosignatures:
:toctree: model/
co2mpas
simulation
Functions
|
Calculate the maximum acceleration possible for the vehicle object my_car, under road_type conditions. |
|
Calculate the final speed acceleration curves based on full load curves and resistances for all curves. |
|
Calculate deceleration curves . |
|
|
|
|
|
|
|
|
|
|
|
Define discrete acceleration curves. |
|
Define discrete car resistance curve. |
|
Define discrete resistance force. |
|
Define discrete deceleration curves. |
|
Define discrete poly. |
|
Defines the drivers simulation model. |
|
Define speed bins. |
|
Define times for simulation. |
|
|
|
|
|
|
|
electric poly_spline (based on Yinglong). |
|
Get coefficients and speed boundaries and return Tans value for per speed per gear. |
|
Return the gear limits based on gear_shifting_style, using linear gear swifting strategy. |
|
Get the gear cuts based on gear shifting style and tangent values. |
|
Based on speed/acceleration points per gear, cubic splines are calculated (old MFC). |
|
Calculate the resistances that a vehicle faces, per speed. |
|
Speed and acceleration points per gear are calculated based on full load curve, new version works with array and forbid acceleration over the maximum vehicle speed. |
|
Speed and acceleration points per gear are calculated based on full load curve, new version works with array and forbid acceleration over the maximum vehicle speed. |
|
Use the coefficients to get a "spline" that could be used. |
|
Calculate Speed boundaries for each gear. |
|
|
|
Calculate the coefficients of the polynomial for each gear Full load curve is fitted to a polynomial of degree. |
|
Computes the CO2 emissions in grams for |
|
Run simulation. |