Documentation |
Model gasoline fuel engine with throttle control, speed governor, and driveline output
The Gasoline Engine block models a gasoline-fuel, spark-ignition engine with a speed governor. The engine runs at a variable speed that you can control with a Simulink^{®} throttle signal. The throttle signal directly controls the output torque that the engine generates and indirectly controls the speed at which the engine runs. If the engine speed exceeds the maximum speed that you specify, the engine generates no torque. The model does not include the air-fuel dynamics of combustion.
The block accepts the throttle signal through a Simulink inport. This signal specifies the engine torque as a fraction of the maximum torque possible in a steady state at a fixed engine speed and should lie between 0 and 1. A throttle signal below zero is interpreted as zero; above one, as one.
To prevent engine power and torque from becoming negative, the block imposes an upper limit on the maximum engine speed itself. If the maximum speed you specify exceeds this limit, the block issues an error that indicates what the upper limit is.
Use the blocks of the Vehicle Components library as a starting point for vehicle modeling. To see how a Vehicle Component block models a driveline component, look under the block mask. The blocks of this library serve as suggestions for developing variant or entirely new models to simulate the same components. Break the block's library link before modifying it and creating your own version.
Maximum power that the engine can output, in watts (W). The default is 150000.
Engine speed, in revolutions per minute (rpm), when the engine is running at maximum power. The default is 4500.
Maximum speed, in revolutions per minute (rpm), at which the engine can generate torque. The default is 6000.
During simulation, if the engine speed exceeds this maximum, the engine torque drops to zero.
The engine model uses a programmed relationship between torque and speed, modulated by the throttle signal.
The engine model is specified by an engine torque demand function g(Ω) built into the block. It provides the maximum torque available for a given engine speed Ω. The block dialog entries (maximum power, speed at maximum power, and maximum speed) normalize this function to physical maximum torque and speed values.
The throttle input signal T specifies the actual engine torque delivered as a fraction of the maximum torque possible in a steady state at a fixed engine speed. It modulates the actual torque delivered τ from the engine: τ = T·g(Ω). The actual engine drive shaft speed Ω is fed back to the engine input.
The demand function g(Ω) is specified in terms of the steady-state engine power P(Ω).
The engine speed is limited to a maximum: 0 ≤ Ω ≤ Ω_{max}. The absolute maximum engine power P_{max} defines Ω_{0} such that P_{max} = P(Ω_{0}). Define w = Ω/Ω_{0} and P(Ω) = P_{max}·p(w). Then p(1) = 1 and dp(1)/dw = 0. Power is the product of torque and angular velocity. The torque demand function is thus
$${\tau}_{\mathrm{max}}=g(w)=({P}_{\mathrm{max}}/{\Omega}_{0})\cdot [p(w)/w]$$
You can derive forms for p(w) from engine data and models.
The block uses a polynomial form for P(Ω):
p(w) = p_{1}·w + p_{2}·w^{2}– p_{3}·w^{3}
satisfying
p_{1} + p_{2}– p_{3} = 1 and p_{1} + 2p_{2}– 3p_{3} = 0
Typical Engine Power Demand Function