Browse Search Popular Register Upload Rules User list Login:
Search:
Melting brake v2

Image:
screenshot of the scene

Author: JakubKubo

Group: Default

Filesize: 67.46 kB

Date added: 2018-01-27

Rating: 5.1

Downloads: 1136

Views: 292

Comments: 3

Ratings: 3

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Zoom out!
ONLY VISUAL heat effect!
If you want to use it somewhere (wheel or code) give me credits!

NEW:
- can be powered

Controls:
- Down - Brake
Please log in to rate this scene
edit
Similar scenes
Title: Brake Melting Dragster
Rating: 5
Filesize: 79.49 kB
Downloads: 801
Comments: 2
Ratings: 1
Date added: 2015/11/16 15:57:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Red hot metal ball melting ice
Rating: 5.375
Filesize: 0.55 MB
Downloads: 1237
Comments: 1
Ratings: 2
Date added: 2016/08/16 21:29:02
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Marble Journy 4-BOSS
Rating: 5
Filesize: 354.7 kB
Downloads: 1123
Comments: 0
Ratings: 1
Date added: 2020/03/08 17:49:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: scary animated picture part 2
Rating: 5
Filesize: 222.93 kB
Downloads: 605
Comments: 1
Ratings: 1
Date added: 2016/11/13 02:27:47
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Melting animation
Rating: 5
Filesize: 390.17 kB
Downloads: 1854
Comments: 0
Ratings: 1
Date added: 2020/10/17 10:43:02
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: melted
Rating: 5
Filesize: 253.79 kB
Downloads: 522
Comments: 1
Ratings: 1
Date added: 2013/06/17 01:25:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
Looks good and works the way you would expect. The math may not be correct (see Heat Transfer Lumped Analysis), but that might not matter. In short, the braking energy would go directly into the rotor while at the same time the rotor would be exponentially cooling at a rate depending on the temperature difference between the rotor and the surrounding air.

P.S. For more accurate modeling:

Initialize variables:

_tempAir := 20.0;
_tempOld := _tempAir;
_capacity = 0.1;
_resistance = 20.0;


colorHSVA := {
[20, 1, 1, (_temp - _tempAir) / 100.0]
};

In postStep:

Keys.isDown(_key) ? {
_heat = Scene.my.abs(_torque * angvel)
} : {
_heat = 0
};
_temp = _tempOld + _heat / (_capacity * Sim.frequency) + (_tempAir - _temp) / (_capacity * _resistance * Sim.frequency);
_tempOld = _temp;

Note: The cooling time constant = _resistance * _capacity

If you want to plot temperature:

colorHSVA := {
[20, 1, 1, (_temp - _tempAir) / 100.0];
scene.my.angVel = (_temp - _tempAir) / 100.0;
};

In a circle with center hinge put "angVel = scene.my.angVel", then plot the angular velocity for that circle.
Last edited at 2018/01/28 10:46:52 by s_noonan
- This is SIMPLE only visual braking effect, that have ONLY 2 lines of code (see older scene, this newer one is for kids, because older version can be powered only by engine, or another coaxial hinge,and can be also used as handbrake if you toggle input), no variabiles etc.
- My old code in Dragster was similar to yours (except _tempAir), but command "clamp" help me to heavily reduce script
- Ok, i can add it later in another scene (_temp-_tempAir)ˇ2
and air temperature can be zero, because there almost no diference
(unless you are driving in hell where temperature is +-500°C )
Regarding "ONLY 2 lines of code", I'm proposing 3 lines. I know it's 50% more code, but that's the price you pay for more accurate results (linear heating with exponential cooling).

I recently updated Braking Bad. I liked your tight coding so much that I used your code with the modifications mentioned above.
Last edited at 2018/01/29 09:31:10 by s_noonan