calibrate_co2_params

calibrate_co2_params(is_cycle_hot, engine_coolant_temperatures, co2_emissions_model, identified_co2_emissions, co2_params_identified, _1st_step=False, _2nd_step=False, _3rd_step=True)[source]

Calibrates the CO2 emission model parameters (a2, b2, a, b, c, l, l2, t, trg ).

Parameters:
  • engine_coolant_temperatures (numpy.array) – Engine coolant temperature vector [°C].
  • co2_emissions_model (callable) – CO2 emissions model (co2_emissions = models(params)).
  • identified_co2_emissions (numpy.array) – CO2 instantaneous emissions vector [CO2g/s].
  • co2_params_identified (Parameters) – Identified initial guess of co2 emission model params.
  • is_cycle_hot (bool) – Is an hot cycle?
  • _1st_step (bool) – Enable first step in the co2_params calibration? [-]
  • _2nd_step (bool) – Enable second step in the co2_params calibration? [-]
  • _3rd_step (bool) – Enable third step in the co2_params calibration? [-]
Returns:

Calibrated CO2 emission model parameters (a2, b2, a, b, c, l, l2, t, trg) and their calibration statuses.

Return type:

(lmfit.Parameters, list)