Module: HeatLossableConstants

Included in:
Models::HeatLossable
Defined in:
app/models/heat_lossable_constants.rb

Overview

Constants shared across the heat-loss calculator and its UI widgets:
the U-value threshold above which the room is flagged as poorly
insulated and the colour palette used for the pie-chart breakdown.

Constant Summary collapse

HIGH_U_VALUE_THRESHOLD =

Threshold for high u value.

0.25
PIE_CHART_OK_COLORS =

Pie chart ok colors.

['#344805', '#517008', '#6a920a', '#7da719', '#96c32b', '#b0d458', '#c3e376', '#eafac2'].freeze
PIE_CHART_FLAG_COLORS =

Pie chart flag colors.

['#0e3266', '#094291', '#0c52b2', '#2c81d8', '#609bd8', '#a0d0f5', '#d9eefe'].freeze
INFILTRATION_SEALING_FACTORS =

Infiltration sealing factors.

{ best: "New construction, no cracks, all doors and windows perfectly sealed.", good: "Newer home or renovated room, very few cracks, all doors and windows sealed.",
average: "Older homes, some small gaps in door seals, some draft around windows.", worst: "Visible gaps around doors and windows, cracks in the walls or window panes, gaps around the roof, drafts inside the home when the wind blows." }.freeze
INFILTRATION_AREA_FACTORS =

Infiltration area factors.

{ area_thresholds: [0.0, 900.0, 1500.0, 2100.00], best: [0.4, 0.4, 0.3, 0.3], good: [0.8, 0.7, 0.6, 0.5], average: [1.2, 1.0, 0.8, 0.7], worst: [2.2, 1.6, 1.2, 1.0] }.freeze
INFILTRATION_FIREPLACE_FACTORS =

Infiltration fireplace factors.

{ best: 0.1, good: 0.15, average: 0.2, worst: 0.6 }.freeze
BTU_PER_HOUR_PER_WATT =

Btu per hour per watt.

3.4121416
HLC_PRIMARY_OK_THRESHOLD =

Threshold for hlc primary ok.

{ percent: 10.0, btu_per_hr: 200.0 }.freeze