Cap windchill heat from vapor pressure to 50C #36450
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: None
Purpose of change
Make heat transfer from fires more reasonable, instead of allowing fires to heat the player to 100000C.
Fixes #36449, #32861
Describe the solution
The model we currently use to approximate windchill seems to have degenerate behavior at high "dry-bulb" temperatures; this manifests most obviously by generating apparent temperatures in the millions of celsius for input temperatures of ~1000C.
Since most of this runaway extra temperature is from the vapor pressure term, and since it seems unreasonable that a given 1000C fire would actually have water vapor pressure of 10MPa (about 100 atmospheres) in its vicinity, we cap that vapor pressure-induced extra temperature to only 50C. This makes #36449 less of a problem, while not changing behavior in most normal gameplay situations.
Testing
Ran
./tests/cata_test
locally. Some crafting tests failed, but they appear also to be failing on currentHEAD
of master.Additional context