Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: New material attributes, heat of phase change.  (Read 799 times)

iceball3

  • Bay Watcher
  • Miaou~
    • View Profile
    • My DA
New material attributes, heat of phase change.
« on: March 02, 2018, 01:08:45 am »

Basically, the suggestion here is to implement raw tokens for materials that define the amount of energy that needs to go into it before it changes phases.
[HEAT_OF_FUSION:X]
[HEAT_OF_EVAPORATION:X]
[HEAT_OF_SUBLIMATION:X]
Where X is a unit of energy in the form of [SPEC_HEAT:of object]*volume of object.

When a material's temperature hits the threshold where it melts/solidifies, boils/precipitates, or sublimates/condensates, it will need to have a certain amount of energy added or removed from it to gradually change it's phase until it overcomes the HEAT_OF_X, changing fully into the new state.
Materials subject to contact with materials at temperatures dramatically above it's boiling point (specifically water, which has both high heat of evaporation and SPEC_HEAT) will draw in heat rapidly, allowing water to smother fire effectively in large quantities. Blood and fat cooking off as well will prevent a minor ignition from consistently burning through the whole body unless the victim is subject to extreme flames or made especially flammable by what covers them. Being covered in water at all will retard flammability somewhat, due to the HEAT_OF_EVAPORATION making it difficult to keep temperatures extremely high without causing the water to dry out first.

[VAPOR_PRESSURE:multiplier?] could be set for materials for the temperature threshold in which vapor pressure becomes a source of evaporation with the liquid, before it's fully gaseous. This can cause liquids in unsealed containers, for example, to gradually diminish due to "drying out" from vapor pressure evaporation, cooling somewhat continuously as a result.
Sweat, also, will actually cool the body, due to the vapor pressure. Being windy and covered in water in the middle of a tundra could cause some severe chilling if you don't have the proper clothes to protect against the water and wind.
Logged

bloop_bleep

  • Bay Watcher
    • View Profile
Re: New material attributes, heat of phase change.
« Reply #1 on: March 02, 2018, 02:13:19 am »

Temperature calculations are already a big drain on FPS; this might increase that effect even further.
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

KittyTac

  • Bay Watcher
  • Impending Catsplosion. [PREFSTRING:aloofness]
    • View Profile
Re: New material attributes, heat of phase change.
« Reply #2 on: March 02, 2018, 08:19:31 am »

Temperature calculations are already a big drain on FPS; this might increase that effect even further.

By the time Toady chooses to implement this, we will have powerful enough computers. Even if we won't, why not have this as an init.txt option?
Logged
Don't trust this toaster that much, it could be a villain in disguise.
Mostly phone-posting, sorry for any typos or autocorrect hijinks.

GoblinCookie

  • Bay Watcher
    • View Profile
Re: New material attributes, heat of phase change.
« Reply #3 on: March 05, 2018, 02:19:28 pm »

How is this not already in the game?   ??? ???
Logged