1.5.4 - Fix concrete calculation

This commit is contained in:
fraxle
2026-05-18 21:50:33 +01:00
parent 0aad826934
commit bd89d07dcb
+3 -2
View File
@@ -55,8 +55,9 @@ export const ALBEDO_CONCRETE = 0.30;
export function calcConcreteTemp(Ta, globalRad, windSpeed) { export function calcConcreteTemp(Ta, globalRad, windSpeed) {
if (globalRad == null || Ta == null) return null; if (globalRad == null || Ta == null) return null;
const absorbed = globalRad * (1 - ALBEDO_CONCRETE); // W/m² const absorbed = globalRad * (1 - ALBEDO_CONCRETE); // W/m²
// Convective heat transfer coefficient: ~5 W/m²K still air, rises with wind // Convective heat transfer coefficient: ~10 W/m²K still air, rises with wind
const hc = 5 + 4.5 * Math.sqrt(Math.max(windSpeed || 0, 0)); // (10 reflects realistic natural convection; 5 was too low and ran too hot)
const hc = 10 + 4.5 * Math.sqrt(Math.max(windSpeed || 0, 0));
// Surface temp: Ta + solar gain / convective loss // Surface temp: Ta + solar gain / convective loss
const Ts = Ta + absorbed / hc; const Ts = Ta + absorbed / hc;
// Clamp: can't be cooler than air, cap at 85 °C (melting asphalt territory) // Clamp: can't be cooler than air, cap at 85 °C (melting asphalt territory)