app.js and styles.css in the same folder as this page.Dual-clutch transmission simulator with 4 to 8 speeds and pluggable shift control
| Time [s] | Throttle [%] | Brake [%] | Grade [%] | Gear | Ramp | Remove |
|---|
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 | Strategy | Preselect | Clutch-to-clutch | Peak |jerk| | RMS jerk | Axle torque min / max | Clutch energy | Engine 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.
↑ ↓ throttle, B brake, E / Q shift up or down, Space pause. Moving a pedal ends a scripted scenario.
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.
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.
s.up, s.from, s.tos.t, s.dts.we, s.wOn, s.wOff, s.wOuts.slipOn, s.slipOffs.lockedOn, s.lockedOffs.TcOn, s.TcOffs.pOn, s.pOffs.TeDriver, s.Tes.TeMax, s.TeMins.iFrom, s.iTo, s.fds.Tout, s.accel, s.jerk, s.vs.Je, s.pLine, s.pKiss, s.Kccmd.pOn, cmd.pOffcmd.dTecmd.phasecmd.donetrue to finish; the supervisor then holds line pressure on the on-coming clutchh.pFromT(T), h.TFromP(p)h.smooth(x), h.dsmooth(x)h.pi(mem, key, e, kp, ki, lo, hi, dt)mem[key]h.clamp, h.lerp, h.rampCommands persist between calls. A shift that is not finished after 3 s is forced to complete and marked in the log.
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.
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.
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.
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] |
|---|
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.
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 use | Engine | Source | Layout | Peak N·m | Peak kW | Redline | Actions |
|---|
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.