Engine
Simple torque driver Engine component
The Engine component provides a first-approximation model for any type of internal combustion engine (spark ignition, diesel, etc.). The engine power characteristics are determined by a lookup table for power vs. engine speed data, or torque vs. engine speed data.
Equations
Where is the absolute rotation angle and the engine output torque is defined by:
Where
is the throttle input
Also
and
Where and are the lower and upper speed limits where the engine exerts torque, respectively.
Also is a constant to adjust how quickly output torque goes to zero once the engine speed falls outside the set limits.
, , and are the speed, power, and torque unit conversion factors, respectively.
is the interpolation function that uses user input data and depending on the choice for the mode parameter, the input data is either torque vs. speed data or power vs. speed data
Connections
Name
|
Condition
|
Description
|
ID
|
|
-
|
Engine output shaft
|
flange_b
|
|
-
|
Real input port for engine throttle, from 0 (idle) to 1 (maximum torque)
|
throttle
|
|
|
Conditional Support Flange
|
loss
|
|
|
Parameters
Symbol
|
Condition
|
Default
|
Units
|
Description
|
ID
|
|
-
|
torque vs. speed
|
-
|
Defines whether:
•
|
Torque vs. speed data is used to calculate engine torque [torque vs. speed] or
|
•
|
Power vs. speed data is used to calculate engine torque [power vs. speed]
|
|
enginedatamode
|
|
-
|
|
|
Stall speed of the engine
|
minw
|
|
-
|
|
|
Maximum speed of the engine
|
maxw
|
|
-
|
|
|
Factor controlling the rate at which engine torque goes to zero outside the operating range.
|
k0
|
data source
|
-
|
GUI
|
-
|
Defines the source for the loss data:
•
|
by an attachment [attachment]
|
•
|
by an external file [file]
|
|
datasourcemode
|
|
-
|
false
|
-
|
Enables/disables the support flange
|
useSupport
|
|
|
RPM
|
-
|
Defines whether the speed data has the unit:
•
|
User defined [user-defined]
|
|
angularspeedunitmode
|
|
speed unit = user defined
|
|
|
Speed conversion factor from the user-defined unit [] to rad/s
|
userspeedscale
|
|
mode = torque vs. speed
|
|
-
|
Defines whether the torque data has the unit:
•
|
User defined [user-defined]
|
|
torqueunitmode
|
|
torque unit = user-defined
|
|
|
Torque conversion factor from the user-defined unit [] to N.m
|
usertorquescale
|
|
mode = power vs. speed
|
kW
|
-
|
Defines whether the torque data has the unit:
•
|
User defined [user-defined]
|
|
powerunitmode
|
|
power unit = user-defined
|
|
|
Torque conversion factor from the user-defined unit [] to N.m
|
userpowerscale
|
data
|
data source = GUI
|
|
-
|
Defines engine curve:
•
|
if mode = [torque vs. speed]: the data is interpreted as speed-dependent maximum torque. (1st column speed, 2nd column torque)
|
•
|
if mode = [power vs. speed]:the data is interpreted as speed-dependent maximum power. (1st column speed, 2nd column power)
|
|
engineData
|
data source = attachment
|
|
|
Defines engine curve:
•
|
if mode = [torque vs. speed]: the data is interpreted as speed-dependent maximum torque. (1st column speed, column number given by column parameter is torque)
|
•
|
if mode = [power vs. speed]: the data is interpreted as speed-dependent maximum power. (1st column speed, column number given by column parameter is power)
|
|
data
|
data source = file
|
|
|
fileName
|
|
data source = attachment or file
|
2
|
-
|
The column number where the engine data is stored
1st column is always the speed data
|
column
|
smoothness
|
-
|
Table points are linearly interpolated
|
-
|
Defines the smoothness of table interpolation
There are two options:
•
|
Table points are linearly interpolated
|
•
|
Table points are interpolated such that the first derivative is continuous
|
|
smoothness
|
|
|
See Also
Driveline Library Overview
MapleSim Library Overview
1-D Mechanical Overview
Engines and Dynamometers
|