Scrap Mechanic

Scrap Mechanic

47 ratings
Scripted Engine Dyno V2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
83.211 KB
23 Jun, 2024 @ 1:11pm
19 Jan @ 6:11am
21 Change Notes ( view )

Subscribe to download
Scripted Engine Dyno V2

Description
This dyno is a huge revamp of our old scripted dyno, which uses the far more optimized and feature rich "Scrap Computers" mod. It offers screens with much higher resolution and various new display features like multiple pages and a fancier UI. All of the more optimized maths have been taken in from the modpack dyno aswell and despite all of this, it is still far less laggy then any of the old dynos.

How It Works:
For those who dont know how a dyno works or who havent seen this ever being made in sm, this device is made to measure the 3 values of your engine/motor. It does so by connecting the output of your engine to the input of the dyno and by it applying resistance until it hits 0 rpm (or the set target RPM) at which point it must have hit peak torque. The torque of the resistance can then be directly outputted as engine torque and together with engine speed the power can be outputted aswell. As its applying torque and measuring speed, a dyno graph can be drawn, representing the torque and power curve of your engine.
This dyno measures torque by applying torque with a powered bearing as resistance and outputting its value directly.

Important To Note:
Peak torque & power values are automatically found by the dyno, but may not be 100% accurate, due to them being taken from smoothed torque and power and having inerta. This can easily be coped with the "Average Table Size" value, described further below.
I should also point out that the dyno does automatic compensation for bearing flex for advanced physics, reason why the visual input speed can deviate (even quite a bit) from the displayed & processed speed.

Central Display:
Average Speed: Displays speed, coming out of an averaging table
Max Speed: Displays the highest average speed detected
Raw Speed: Displays speed directly read from the gps
Speed @ PK PWR: Displays the speed detected when it made peak power
-Advanced Mode Only-
Real Speed: Displays speed relative to world position (exponential deviation from the speed meters tell you, only use it when you know what you're doing)
Max Real Speed: Displays the highest average real speed detected

Average Torque: Displays torque coming out of an averaging table
Max Torque: Displays the highest absolute torque detected
Raw Torque: Displays torque directly out of the computer
Torque @ PK PWR: Displays the torque detected when it made peak power

Average Power: Displays power coming out of an averaging table to counteract fluctuating rpm from piston engines for example
Max Power: Displays the highest average power detected
Raw Power: Displays power directly calculated out of rpm and torque
-Advanced Mode Only-
Real Power: Displays power calculated out of real speed and torque
Max Real Power: Displays the highest average real power detected

You can change the displayed speed, torque and power values by clicking on them directly, same for the different units used.

Rpm - Engine speed in revolutions per minute
D/s - Engine speed in degrees per second
D/t - Engine speed in degrees per tick (40 Ticks = 1 Second)
Nm - Torque in newton-meters
Lbft - Torque in foot-pounds
Hp - Power in horsepower
Kw - Power in kilowatts

Graph Selection:
You can press E on any point on the graph and it will output the values here.

Advanced Mode:
This is a special mode for more advanced engine data. If you want to know more feel free to ask us, I ran out of space the explain it here.

Central Display Controls:
START/STOP (green): Starts or stops the dyno run.
RESET (green): Quickly restarts the dyno (saves you clicking start/stop 2 times).

Count Multiplier (+/- adjuster): This adjusts how quickly the dyno counts up torque and can be lowered for more sensitive engine or increased for higher torque engines to save time. It should normally not be necessary to adjust this value, as the default tune should cover pretty much everything.
Dyno Target Speed (+/- adjuster): This controls the engine speed, at which you want to find torque and which PID will try to match. It will also define the bottom threshold for automatic engine restarts as mentioned before.
Starting Torque (+/- adjuster): This lets you select a starting torque before it starts the run to heavily speed up dyno runs on engines where you already know the general torque they output.

Engine Restarting (box): This toggles a feature that can automatically restart your engine when it stalled, referencing target speed as the engaging threshold and the max speed as the restarting speed and disangaging threshold.
Stabilisation Check (box): This toggles the speed stabalisation check the dyno does incase it gets in your way.
Average Table Size (+/- adjuster): This is the main modifier for the averaged table size, which affects all averaged values on the dyno. It can help to increase accuracy for specific engines, where a smaller table size reduces value inerta for more accurate numbers and a bigger table size will make them more of a constant to increase number consistancy.

Graph Refresh Rate (+/- adjuster): This adjusts the speed at which the graphs get refreshed, which can be important for those that want to reduce lag or increase accuracy (visual only).
Screen Refresh Rate (+/- adjuster): This adjusts the speed at which the screens get refreshed, which can be important for those that want to reduce lag or increase accuracy (visual only).
White physical button: This works as a hard reset for the computer and is only really necessary if you modify the dynos script yourself or if it bugs out.

You can hold down on the +/- adjusters to change values faster.

Right Display:
Efficiency Page:
This page will show you various metrics relevant for your engines power efficiency. You can select your engine type and you would have to set your piston count and everything else will be calculated automatically.

Engine Type (arrows): Switches the engine type for the reference numbers.

Regular Conventional Engine: Regular piston(s), slider crank linkage (most common).
Regular Kein Engine: Regular piston(s), multiaxis sliders that are fixed against rotation.
Regular Ratchet Engine: Regular piston(s), ratchet principle using a clutch.
Pressure Ratchet Engine: Pressure piston(s), ratchet principle using a clutch.
Pressure Kein Engine: Pressure piston(s), scotch yoke mechanism.
Pressure Conventional Engine: Pressure piston(s), slider crank linkage.
(Pressure engines utilize piston compression)

Piston Count (+/- adjuster): This sets your engines piston count for calculations. The white R sets it back to the default.

Power Per Piston: Divides your max power by the defined piston count and uses the selected units.

Reference Power: This is another power per piston value that is used as a reference point for power efficiency.

Power Efficiency: This divides your engines power per piston by the reference power per piston to get an efficiency ratio in %.

Leaderboards:
This includes the power per piston leaderboards from our SMTC discord server for all various engine types. You can press on the numbers to select them as a new reference power per piston value.

Graph Page:
This will show you the graph in its entirety, going from the highest detected speed on the right to the target speed on the left.

Blue curve: Torque curve
Red curve: Power curve

Left Mini Display:
The Number Paster 3000: Lets you input any number you want with the keyboard to input bigger numbers faster then holding +/- down. The "k" next to the values on the central display will apply it.
Save & Load: This menu lets you load and save power runs with the dedicated storage module you can find as a needed item on the right side of the workshop page.

You can cycle through the pages using the arrows on the top corners.

If you are interested in a mechanical sm community, you can check out this discord server:

https://discord.gg/6r46PkYr9s

Tags:
Engine, Rpm, Torque, Horsepower, Engine Dynamometer, Tool
22 Comments
duucky 4 Jan @ 5:20pm 
░░░███████ ]▄▄▄▄▄▄▄▄ - - -
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
FIGHT AGAINST ANYONE WHO'S INVADING AND SAVE STEAM!
Ben Bingo  [author] 26 Sep, 2024 @ 10:30am 
@Spyralonn thanks bro 👍
Spyralonn 26 Sep, 2024 @ 3:06am 
W creation
Electro 1 Sep, 2024 @ 2:36am 
░░░███████ ]▄▄▄▄▄▄▄▄ - - -
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
FIGHT AGAINST ANYONE WHO'S INVADING AND SAVE STEAM!
DeltaIguassu 30 Aug, 2024 @ 12:44pm 
░░░███████ ]▄▄▄▄▄▄▄▄ - - -
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
FIGHT AGAINST ANYONE WHO'S INVADING AND SAVE STEAM!
DeltaIguassu 30 Aug, 2024 @ 12:44pm 
░░░███████ ]▄▄▄▄▄▄▄▄ - - -
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
FIGHT AGAINST ANYONE WHO'S INVADING AND SAVE STEAM!
dkp.paka 21 Jul, 2024 @ 4:05am 
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS Dr. BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
Ben Bingo  [author] 5 Jul, 2024 @ 12:07am 
@larsgren.kristensen thanks! I'll correct it when I'm next online
larsgren.kristensen 3 Jul, 2024 @ 1:40am 
little typo under " how it works. It is assmued and pretty much confirmed, by the way devs do units ingame, that it has to be metric torque. :steamhappy:
TahmayN 30 Jun, 2024 @ 4:54am 
i sigma'd all over it