@sh.add_function(dsp, outputs=['start_demand_function'])
def define_engine_start_demand_function(engine_moment_inertia):
"""
Define the energy required to start the engine function [kJ].
:param engine_moment_inertia:
Engine moment of inertia [kg*m2].
:type engine_moment_inertia: float
:return:
Energy required to start the engine function.
:rtype: function
"""
coef = (np.pi / 30) ** 2 / 2000 * engine_moment_inertia
def _func(start_engine_speed):
return coef * start_engine_speed ** 2
return _func