Skip to content

EMachine

EMachineModel

__init__(pwr_pars)

Python version: 3.5 Created by: Thomas Herrmann (thomas.herrmann@tum.de) Created on: 01.04.2020

Documentation: E-Machine class for the optimization of global trajectories for electric race cars implemented in the CasADi modeling language.

Inputs: pwr_pars: powertrain parameters defined in the initialization file

extract_sol(w, sol_states)

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Defines function to retrieve values of optimized NLP e-machine

Inputs: w: discrete optimized NLP decision variables (x and u) sol_states: numeric values belonging to the symbolic NLP decision variables w

get_increment(sf, temp_cool_12, temp_cool_13)

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Initializes temperature increment of electric machine symbolically (sf * dx/dt = dx/ds)

Inputs: sf: transformation factor dt/ds temp_cool_12: intermediate temperature within motor-inverter cooling circuit (radiator-motor) [°C] temp_cool_13: intermediate temperature within motor-inverter cooling circuit (motor-inverter) [°C]

get_loss(p_wheel)

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Initializes total power loss of a single electric machine and split into loss effects (with detailed models) or loss power of a single e-machine using a simple power fit to measured data (input -- output power)

Inputs: p_wheel: on wheels desired power [kW]

get_machines_cum_losses()

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Calculate total loss of all e-machines in electric powertrain

get_states(f_drive, v)

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Initializes states of the electric machine symbolically

Inputs: f_drive: drive force at wheel [N] v: velocity of vehicle [m/s]

get_thermal_resistance()

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Calculates thermal resistance of electric machine to be used within a lumped thermal model description

ini_nlp_state(x, u)

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Defines function to define e-machine states in NLP

Inputs: x: discrete NLP state u: discrete NLP control input

initialize()

Python version: 3.5 Created by: Thomas Herrmann Created on: 01.04.2020

Documentation: Initialization of necessary optimization variables (symbolic CasADi expressions) and states including limits.