Module: VctFinishLayerCount2026
- Defined in:
- lib/vct_finish_layer_count_2026.rb
Overview
VCT Finish Layer Count 2026 — Ruby Engine
Burnishing response, repairability, and COF/slip compliance calculator for commercial VCT floor maintenance programs.
Reference: www.binx.ca/guides/vct-finish-layer-count-optimization-2026.pdf Published by Binx Professional Cleaning, North Bay and Sudbury, Ontario.
Constant Summary collapse
- VERSION =
"0.1.0"- FINISH_TYPES =
%w[acrylic_zinc acrylic_no_metal high_solids].freeze
- TRAFFIC_LEVELS =
%w[low medium high extreme].freeze
- ZONE_TYPES =
%w[dry_general wet_general accessible_route healthcare_wet].freeze
- BURNISH_DATA =
{ "acrylic_zinc" => { 1 => [12, 18, 22, 0], 2 => [22, 30, 34, 0], 3 => [34, 52, 60, 0], 4 => [42, 64, 74, 0], 5 => [48, 72, 82, 0], 6 => [52, 78, 88, 0], 7 => [54, 80, 90, 0], 8 => [54, 80, 89, 1], 9 => [53, 79, 87, 1], 10 => [51, 75, 82, 2], 11 => [48, 68, 74, 2], 12 => [44, 60, 66, 2], 13 => [40, 54, 59, 3], 14 => [38, 50, 55, 3], }.freeze, "acrylic_no_metal" => { 1 => [10, 15, 18, 0], 2 => [18, 26, 30, 0], 3 => [28, 44, 52, 0], 4 => [36, 56, 66, 0], 5 => [42, 64, 74, 0], 6 => [44, 68, 78, 0], 7 => [46, 70, 80, 0], 8 => [44, 68, 76, 1], 9 => [42, 64, 72, 1], 10 => [40, 60, 66, 2], 11 => [36, 54, 58, 2], 12 => [32, 46, 50, 3], }.freeze, "high_solids" => { 1 => [18, 26, 30, 0], 2 => [30, 48, 58, 0], 3 => [46, 70, 82, 0], 4 => [54, 82, 92, 0], 5 => [56, 84, 94, 1], 6 => [54, 80, 88, 1], 7 => [50, 72, 80, 2], 8 => [46, 66, 72, 2], 9 => [40, 56, 62, 3], 10 => [34, 48, 52, 3], }.freeze, }.freeze
- OPTIMAL_RANGES =
{ "acrylic_zinc_low" => [3, 5, 8], "acrylic_zinc_medium" => [5, 6, 9], "acrylic_zinc_high" => [6, 7, 10], "acrylic_zinc_extreme" => [7, 7, 10], "acrylic_no_metal_low" => [3, 4, 8], "acrylic_no_metal_medium" => [5, 6, 9], "acrylic_no_metal_high" => [6, 7, 10], "acrylic_no_metal_extreme" => [6, 7, 10], "high_solids_low" => [2, 3, 6], "high_solids_medium" => [3, 4, 7], "high_solids_high" => [4, 5, 8], "high_solids_extreme" => [4, 5, 8], }.freeze
- REPAIR_SCORES =
{ 1 => [1, false, true, "easy", 18], 2 => [3, false, true, "easy", 20], 3 => [6, true, false, "easy", 22], 4 => [8, true, false, "easy", 24], 5 => [9, true, false, "easy", 26], 6 => [9, true, false, "moderate", 30], 7 => [8, true, false, "moderate", 34], 8 => [6, true, false, "moderate", 38], 9 => [4, false, true, "hard", 45], 10 => [2, false, true, "hard", 52], 11 => [2, false, true, "very_hard", 60], 12 => [1, false, true, "very_hard", 65], 13 => [1, false, true, "extreme", 78], 14 => [1, false, true, "extreme", 85], 15 => [1, false, true, "extreme", 100], }.freeze
- HEAT_RISK_LABELS =
%w[low medium high very_high].freeze
- COF_DATA =
{ "acrylic_zinc" => { 0 => [0.62, 0.55], 1 => [0.58, 0.50], 2 => [0.56, 0.47], 3 => [0.55, 0.45], 4 => [0.54, 0.44], 5 => [0.52, 0.42], 6 => [0.51, 0.40], 7 => [0.50, 0.39], 8 => [0.49, 0.37], 9 => [0.48, 0.36], 10 => [0.47, 0.35], }.freeze, "acrylic_no_metal" => { 0 => [0.63, 0.56], 1 => [0.60, 0.52], 2 => [0.58, 0.50], 3 => [0.57, 0.48], 4 => [0.56, 0.47], 5 => [0.54, 0.45], 6 => [0.53, 0.43], 7 => [0.51, 0.41], 8 => [0.50, 0.39], 9 => [0.49, 0.38], 10 => [0.48, 0.37], }.freeze, "high_solids" => { 0 => [0.62, 0.55], 1 => [0.57, 0.49], 2 => [0.55, 0.46], 3 => [0.53, 0.43], 4 => [0.51, 0.41], 5 => [0.50, 0.39], 6 => [0.49, 0.37], 7 => [0.47, 0.35], 8 => [0.46, 0.34], }.freeze, }.freeze
Class Method Summary collapse
-
.assess_coat_count(finish_type:, traffic_level:, coat_count:) ⇒ Hash
Assess a VCT finish coat count program.
-
.assess_cof(finish_type:, coat_count:, zone_type: "dry_general") ⇒ Hash
Assess COF compliance for a finished VCT floor.
- .burnish_rating(g3) ⇒ Object
- .clamp_key(keys, n) ⇒ Object
Class Method Details
.assess_coat_count(finish_type:, traffic_level:, coat_count:) ⇒ Hash
Assess a VCT finish coat count program.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/vct_finish_layer_count_2026.rb', line 113 def assess_coat_count(finish_type:, traffic_level:, coat_count:) ft = finish_type tl = traffic_level cc = coat_count.round ft_data = BURNISH_DATA.fetch(ft) { raise ArgumentError, "Unknown finish_type: #{ft}" } bkey = clamp_key(ft_data.keys, cc) gi, g1, g3, hri = ft_data[bkey] rep_key = clamp_key(REPAIR_SCORES.keys, [[cc, 1].max, 15].min) score, spot_viable, strip_required, strip_diff, strip_time = REPAIR_SCORES[rep_key] mn, mx, trigger = OPTIMAL_RANGES.fetch("#{ft}_#{tl}", [4, 7, 10]) to_trigger = [trigger - cc, 0].max if cc < mn action = "add_coats" notes = "Floor is under-coated. Optimal range for #{tl} traffic (#{ft.gsub('_', ' ')}) is #{mn}–#{mx} coats. Add #{mn - cc} coat(s) before next burnish." elsif cc <= mx action = "maintain" notes = "Coat count is within optimal range (#{mn}–#{mx}) for #{tl} traffic. Strip cycle triggered at #{trigger} coats (#{to_trigger} coats remaining). Continue scheduled program." elsif cc < trigger action = "plan_strip" notes = "Coat count exceeds optimal range. Schedule strip-and-refinish within next maintenance cycle. #{to_trigger} coats remaining before strip trigger." else action = "strip_now" notes = "Strip trigger reached (#{cc} coats). Full strip cycle required. Expect #{strip_diff} strip (#{strip_time} min/1,000 sq ft)." end { finish_type: ft, traffic_level: tl, coat_count: cc, burnish_response: { gloss_initial: gi, gloss_1pass: g1, gloss_3pass: g3, rating: (g3), heat_risk: HEAT_RISK_LABELS[hri], }, repairability: { score: score, spot_repair_viable: spot_viable, strip_required: strip_required, strip_difficulty: strip_diff, strip_time_per_1000sqft: strip_time, }, recommendation: { action: action, optimal_range: [mn, mx], coats_to_strip_trigger: to_trigger, notes: notes, }, } end |
.assess_cof(finish_type:, coat_count:, zone_type: "dry_general") ⇒ Hash
Assess COF compliance for a finished VCT floor.
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/vct_finish_layer_count_2026.rb', line 175 def assess_cof(finish_type:, coat_count:, zone_type: "dry_general") ft = finish_type cc = coat_count.round zt = zone_type ft_data = COF_DATA.fetch(ft) { raise ArgumentError, "Unknown finish_type: #{ft}" } ckey = clamp_key(ft_data.keys, cc) dry, wet = ft_data[ckey] high_zone = %w[accessible_route healthcare_wet].include?(zt) wet_thresh = high_zone ? 0.60 : 0.50 diff = wet - wet_thresh slip_risk = if diff >= 0.08 then "low" elsif diff >= 0.02 then "medium" elsif diff >= -0.02 then "medium_high" elsif diff >= -0.08 then "high" else "very_high" end threshold_met = high_zone ? wet >= 0.60 : wet >= 0.50 action_required = if threshold_met && dry >= 0.50 then "none" elsif dry >= 0.50 && wet >= 0.44 then "monitor" elsif cc >= 9 then "strip_and_retreat" else "anti_slip_treatment_required" end { finish_type: ft, coat_count: cc, zone_type: zt, static_cof_dry: (dry * 100).round.to_f / 100, static_cof_wet: (wet * 100).round.to_f / 100, passes_osha_dry: dry >= 0.50, passes_nfpa_wet: wet >= 0.50, passes_csa_accessible: dry >= 0.60, passes_obc_healthcare: wet >= 0.60, slip_risk_rating: slip_risk, action_required: action_required, } end |
.burnish_rating(g3) ⇒ Object
99 100 101 102 103 104 105 |
# File 'lib/vct_finish_layer_count_2026.rb', line 99 def (g3) if g3 >= 85 then "excellent" elsif g3 >= 70 then "good" elsif g3 >= 55 then "fair" else "poor" end end |
.clamp_key(keys, n) ⇒ Object
95 96 97 |
# File 'lib/vct_finish_layer_count_2026.rb', line 95 def clamp_key(keys, n) keys.min_by { |k| (k - n).abs } end |