DCT Shift Lab

Dual-clutch transmission simulator with 4 to 8 speeds and pluggable shift control

Sim time0.00 s
GearD1
StateLaunch
Engine speed800 rpm
Vehicle speed0 km/h
Engine torque0 N·m
Axle torque0 N·m
Jerk0.0 m/s³

Powertrain and torque path

Torque via C1 (odd gears) Torque via C2 (even gears) Axle torque Locked Slipping or synchronising Open

Scenario editor

Time [s]Throttle [%]Brake [%]Grade [%]GearRampRemove

Each channel holds the value of the last keyframe that sets it; tick Ramp on a keyframe to move there linearly instead. Leave a cell empty to leave that channel alone (for example, keep the grade slider under your control). A gear entry requests that gear once, best with the gearbox in manual. Your scenarios are kept in this browser; use Export to keep or share them.

Shift log

#ShiftStrategyPreselectClutch-to-clutchPeak |jerk|RMS jerkAxle torque min / maxClutch energyEngine flare

Each completed shift is scored here. Metrics cover the clutch-to-clutch phase plus 0.4 s of settling; peak jerk above 10 m/s³, the comfort limit cited by Deng et al. and Yuan et al., is flagged.

Driver

0 %
30 %
0 %

↑ ↓ throttle, B brake, E / Q shift up or down, Space pause. Moving a pedal ends a scripted scenario.

Gearbox

1
Gear 2 preselected

Clicking a gear or using + / − switches to manual. Skips within one half of the box, such as 4→2, run as quick successive shifts through the other half.

Shift control strategy

Custom strategy

Your function runs every 6.25 ms while a clutch-to-clutch shift is active. Read signals from s, write commands to cmd, and keep controller state in mem. Preselection, launch and steady driving stay with the built-in supervisor.

Signals and commands
s.up, s.from, s.to
Shift direction and gears
s.t, s.dt
Time since clutch-to-clutch start, control period [s]
s.we, s.wOn, s.wOff, s.wOut
Engine, on-coming shaft, off-going shaft and wheel-side output speed [rad/s]
s.slipOn, s.slipOff
Engine speed minus shaft speed across each clutch [rad/s]
s.lockedOn, s.lockedOff
Clutch stuck, no slip
s.TcOn, s.TcOff
Torque transmitted by each clutch, positive when the engine drives [N·m]
s.pOn, s.pOff
Actual clutch pressures [bar]
s.TeDriver, s.Te
Driver-demanded and actual engine torque [N·m]
s.TeMax, s.TeMin
Engine torque limits at the current speed
s.iFrom, s.iTo, s.fd
Gear ratios and final drive
s.Tout, s.accel, s.jerk, s.v
Axle torque, vehicle acceleration, jerk and speed
s.Je, s.pLine, s.pKiss, s.Kc
Engine inertia, line and kiss-point pressure, clutch gain
cmd.pOn, cmd.pOff
Pressure commands [bar], clamped to 0…line
cmd.dTe
Engine torque intervention added to driver demand [N·m]; cuts act through spark (fast), increases through the throttle (slower)
cmd.phase
Optional label shown in the schematic
cmd.done
Set to true to finish; the supervisor then holds line pressure on the on-coming clutch
h.pFromT(T), h.TFromP(p)
Nominal inverse and forward clutch model
h.smooth(x), h.dsmooth(x)
Quintic minimum-jerk blend from 0 to 1, and its slope
h.pi(mem, key, e, kp, ki, lo, hi, dt)
PI controller with clamped integrator stored in mem[key]
h.clamp, h.lerp, h.ramp
Utilities

Commands persist between calls. A shift that is not finished after 3 s is forced to complete and marked in the log.

Engine

Crank-angle engines are ports of Engine Simulator by AngeTheGreat (MIT). They resolve every cylinder's gas exchange and combustion and need much more computing; the simulation slows down if your computer cannot keep up.

Vehicle and transmission model

Engine: 2-litre mean-value torque map, 320 N·m peak, idle 800 rpm, fuel cut at 6700 rpm. Line pressure 15 bar, kiss point 1 bar.

Engine dyno

An engine on its own test bench, separate from the transmission simulation. Drive it live like Engine Simulator, or let the dyno measure it automatically.

1000 rpm
Engine speed0 rpm
Throttle0 %
Manifold pressure101 kPa
Dyno torque–
Dyno power–
StateStopped

Engine Simulator's controls: A ignition, hold S to crank the starter, hold Q W E R for 1, 10, 20 and 100 % throttle (released = closed), hold Space and turn the mouse wheel for a throttle that stays put, D dyno, H hold, G + wheel or G + ↑/↓ hold speed, Esc gives the keyboard back to the transmission simulation. Hold full throttle with the dyno on and it sweeps the engine to the redline at 500 rpm/s, drawing the curves; a sweep reads a little below the steady-state map because the engine is accelerating (use Automatic sweep for steady-state values).

Speed [rpm]Torque [N·m]Power [kW]Power [hp]

Engine editor

Parameters as in Engine Simulator's engine scripts. Flows are rated like a flow bench: ports at 28 inH2O, throttle, runners and exhaust at 1.5 inHg. Hover over a field for help. Try on the live bench drives the design right away; Save measures its torque map (a few seconds) so the transmission simulation can use it.

Engine catalog

Drop Engine Simulator engine scripts (.mr) here, or a folder of them. Add the .mr files they import and any .wav recordings they name that are not in Engine Simulator's sound library; its es/ library is built in. Engine JSON exported from this catalog can be dropped too.

    In useEngineSourceLayoutPeak N·mPeak kWRedlineActions

    Each script is converted by the same interpreter as tools/mr2json.js; its torque map is then measured on the crank-angle model (a few seconds per engine; the simulation keeps running). Imported engines are kept in this browser; Export saves one as a file. Hide leaves a built-in engine out of the engine lists. Unsupported: Wankel, radial (slave rods), VTEC and governor engines.