Spaces:
Sleeping
Sleeping
| # internal_loads.py | |
| # People Activity Levels | |
| # Each activity level includes metabolic rate (met), metabolic rate in W/person, | |
| # and ranges for sensible and latent heat gains in W. | |
| PEOPLE_ACTIVITY_LEVELS = { | |
| "Seated, at Rest (Quiet, Reading, Writing)": { | |
| "metabolic_rate_met": 1.0, | |
| "metabolic_rate_w": 110, | |
| "sensible_min_w": 20, | |
| "sensible_max_w": 24, | |
| "latent_min_w": 9, | |
| "latent_max_w": 12 | |
| }, | |
| "Seated, Light Office Work (Typing, Filing)": { | |
| "metabolic_rate_met": 1.1, | |
| "metabolic_rate_w": 125, | |
| "sensible_min_w": 24, | |
| "sensible_max_w": 27, | |
| "latent_min_w": 12, | |
| "latent_max_w": 15 | |
| }, | |
| "Standing, Light Work (Filing, Walking Slowly)": { | |
| "metabolic_rate_met": 1.35, | |
| "metabolic_rate_w": 155, | |
| "sensible_min_w": 30, | |
| "sensible_max_w": 35, | |
| "latent_min_w": 18, | |
| "latent_max_w": 24 | |
| }, | |
| "Walking, Moderate Pace (2–3 mph / 3.2–4.8 km/h)": { | |
| "metabolic_rate_met": 2.0, | |
| "metabolic_rate_w": 210, | |
| "sensible_min_w": 41, | |
| "sensible_max_w": 47, | |
| "latent_min_w": 30, | |
| "latent_max_w": 35 | |
| }, | |
| "Light Machine Work (Assembly, Small Tools)": { | |
| "metabolic_rate_met": 2.35, | |
| "metabolic_rate_w": 250, | |
| "sensible_min_w": 47, | |
| "sensible_max_w": 56, | |
| "latent_min_w": 35, | |
| "latent_max_w": 44 | |
| }, | |
| "Moderate Work (Walking with Loads, Lifting)": { | |
| "metabolic_rate_met": 3.0, | |
| "metabolic_rate_w": 310, | |
| "sensible_min_w": 59, | |
| "sensible_max_w": 68, | |
| "latent_min_w": 50, | |
| "latent_max_w": 59 | |
| }, | |
| "Heavy Work (Carrying Heavy Loads, Shoveling)": { | |
| "metabolic_rate_met": 4.0, | |
| "metabolic_rate_w": 425, | |
| "sensible_min_w": 73, | |
| "sensible_max_w": 88, | |
| "latent_min_w": 73, | |
| "latent_max_w": 88 | |
| }, | |
| "Dancing (Moderate to Vigorous)": { | |
| "metabolic_rate_met": 3.5, | |
| "metabolic_rate_w": 400, | |
| "sensible_min_w": 59, | |
| "sensible_max_w": 88, | |
| "latent_min_w": 59, | |
| "latent_max_w": 73 | |
| }, | |
| "Athletics/Exercise (Vigorous)": { | |
| "metabolic_rate_met": 6.0, | |
| "metabolic_rate_w": 600, | |
| "sensible_min_w": 88, | |
| "sensible_max_w": 117, | |
| "latent_min_w": 88, | |
| "latent_max_w": 117 | |
| } | |
| } | |
| # Diversity Factors by Building Type | |
| DIVERSITY_FACTORS = { | |
| "Office": 0.80, | |
| "Classroom": 1.00, | |
| "Retail": 0.80, | |
| "Restaurant Dining": 1.00, | |
| "Restaurant Kitchen": 1.00, | |
| "Hotel Guest Room": 0.50, | |
| "Hotel Lobby": 0.75, | |
| "Hospital Patient Room": 0.60, | |
| "Hospital Operating Room": 1.00, | |
| "Library": 0.75, | |
| "Museum": 0.75, | |
| "Courthouse": 1.00, | |
| "Gymnasium": 1.00, | |
| "Warehouse": 0.50, | |
| "Residential Single-Family": 0.50, | |
| "Residential Multi-Family": 0.60, | |
| "Auditorium": 1.00, | |
| "Place of Worship": 1.00, | |
| "Laboratory": 0.80, | |
| "Data Center": 0.10, | |
| "Manufacturing Facility": 0.75, | |
| "School Cafeteria": 1.00, | |
| "Dormitory": 0.60, | |
| "Conference Room": 1.00, | |
| "Bank": 0.80, | |
| "Post Office": 0.75, | |
| "Supermarket": 0.70 | |
| } | |
| # Lighting Power Density (LPD) by Building Type (W/m²) | |
| LPD_VALUES = { | |
| "Office": 8.82, | |
| "Classroom": 13.34, | |
| "Retail": 13.56, | |
| "Restaurant Dining": 9.58, | |
| "Restaurant Kitchen": 11.42, | |
| "Hotel Guest Room": 9.47, | |
| "Hotel Lobby": 13.57, | |
| "Hospital Patient Room": 11.30, | |
| "Hospital Operating Room": 17.11, | |
| "Library": 12.70, | |
| "Museum": 11.41, | |
| "Courthouse": 11.30, | |
| "Gymnasium": 10.76, | |
| "Warehouse": 4.84, | |
| "Residential Single-Family": 5.38, | |
| "Residential Multi-Family": 6.46, | |
| "Auditorium": 14.96, | |
| "Place of Worship": 11.30, | |
| "Laboratory": 15.61, | |
| "Data Center": 8.61, | |
| "Manufacturing Facility": 11.95, | |
| "School Cafeteria": 9.69, | |
| "Dormitory": 6.57, | |
| "Conference Room": 13.24, | |
| "Bank": 10.76, | |
| "Post Office": 9.37, | |
| "Supermarket": 13.35 | |
| } | |
| # Lighting Fixture Types and Heat Gain Splits | |
| LIGHTING_FIXTURE_TYPES = { | |
| "Incandescent": {"radiative": 80, "convective": 20}, | |
| "Fluorescent": {"radiative": 60, "convective": 40}, | |
| "Compact Fluorescent (CFL)": {"radiative": 60, "convective": 40}, | |
| "LED (Light Emitting Diode)": {"radiative": 50, "convective": 50}, | |
| "High-Intensity Discharge (HID)": {"radiative": 70, "convective": 30}, | |
| "Halogen": {"radiative": 80, "convective": 20} | |
| } | |
| # Equipment Heat Gains by Building Type | |
| # Includes sensible, latent, convective, and radiant splits (all in %) | |
| EQUIPMENT_HEAT_GAINS = { | |
| "Office": {"sensible": 75, "latent": 25, "convective": 50, "radiant": 50}, | |
| "Classroom": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Retail": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Restaurant Dining": {"sensible": 60, "latent": 40, "convective": 60, "radiant": 40}, | |
| "Restaurant Kitchen": {"sensible": 50, "latent": 50, "convective": 70, "radiant": 30}, | |
| "Hotel Guest Room": {"sensible": 65, "latent": 35, "convective": 60, "radiant": 40}, | |
| "Hotel Lobby": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Hospital Patient Room": {"sensible": 65, "latent": 35, "convective": 60, "radiant": 40}, | |
| "Hospital Operating Room": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Library": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Museum": {"sensible": 75, "latent": 25, "convective": 40, "radiant": 60}, | |
| "Courthouse": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Gymnasium": {"sensible": 60, "latent": 40, "convective": 60, "radiant": 40}, | |
| "Warehouse": {"sensible": 80, "latent": 20, "convective": 70, "radiant": 30}, | |
| "Residential Single-Family": {"sensible": 60, "latent": 40, "convective": 60, "radiant": 40}, | |
| "Residential Multi-Family": {"sensible": 60, "latent": 40, "convective": 60, "radiant": 40}, | |
| "Auditorium": {"sensible": 65, "latent": 35, "convective": 50, "radiant": 50}, | |
| "Place of Worship": {"sensible": 65, "latent": 35, "convective": 50, "radiant": 50}, | |
| "Laboratory": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Data Center": {"sensible": 90, "latent": 10, "convective": 80, "radiant": 20}, | |
| "Manufacturing Facility": {"sensible": 75, "latent": 25, "convective": 60, "radiant": 40}, | |
| "School Cafeteria": {"sensible": 65, "latent": 35, "convective": 60, "radiant": 40}, | |
| "Dormitory": {"sensible": 60, "latent": 40, "convective": 60, "radiant": 40}, | |
| "Conference Room": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Bank": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Post Office": {"sensible": 70, "latent": 30, "convective": 50, "radiant": 50}, | |
| "Supermarket": {"sensible": 75, "latent": 25, "convective": 60, "radiant": 40} | |
| } | |
| # Ventilation Rates by Building Type | |
| # Includes people_rate (L/s/person) and area_rate (L/s/m²) | |
| VENTILATION_RATES = { | |
| "Office": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Classroom": {"people_rate": 5.0, "area_rate": 0.9}, | |
| "Retail": {"people_rate": 3.8, "area_rate": 0.9}, | |
| "Restaurant Dining": {"people_rate": 5.0, "area_rate": 1.8}, | |
| "Restaurant Kitchen": {"people_rate": 3.8, "area_rate": 1.0}, | |
| "Hotel Guest Room": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Hotel Lobby": {"people_rate": 3.8, "area_rate": 0.3}, | |
| "Hospital Patient Room": {"people_rate": 5.0, "area_rate": 0.6}, | |
| "Hospital Operating Room": {"people_rate": 10.0, "area_rate": 0.6}, | |
| "Library": {"people_rate": 2.5, "area_rate": 0.6}, | |
| "Museum": {"people_rate": 3.8, "area_rate": 0.6}, | |
| "Courthouse": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Gymnasium": {"people_rate": 10.0, "area_rate": 0.9}, | |
| "Warehouse": {"people_rate": 5.0, "area_rate": 0.3}, | |
| "Residential Single-Family": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Residential Multi-Family": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Auditorium": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Place of Worship": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Laboratory": {"people_rate": 5.0, "area_rate": 0.9}, | |
| "Data Center": {"people_rate": 5.0, "area_rate": 0.6}, | |
| "Manufacturing Facility": {"people_rate": 5.0, "area_rate": 0.9}, | |
| "School Cafeteria": {"people_rate": 5.0, "area_rate": 0.9}, | |
| "Dormitory": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Conference Room": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Bank": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Post Office": {"people_rate": 2.5, "area_rate": 0.3}, | |
| "Supermarket": {"people_rate": 3.8, "area_rate": 0.6}, | |
| "Custom": {"people_rate": 0.0, "area_rate": 0.0} | |
| } | |
| BUILDING_TYPES = list(VENTILATION_RATES.keys()) | |
| # Infiltration Settings by Building Type and Method | |
| # Methods: ACH, Crack Flow, Empirical Equations | |
| # Each method has specific parameters for each building type | |
| INFILTRATION_SETTINGS = { | |
| "ACH": { | |
| "Office": {"rate": 0.5}, | |
| "Classroom": {"rate": 0.3}, | |
| "Retail": {"rate": 0.4}, | |
| "Restaurant Dining": {"rate": 0.6}, | |
| "Restaurant Kitchen": {"rate": 0.8}, | |
| "Hotel Guest Room": {"rate": 0.2}, | |
| "Hotel Lobby": {"rate": 0.5}, | |
| "Hospital Patient Room": {"rate": 0.1}, | |
| "Hospital Operating Room": {"rate": 0.05}, | |
| "Library": {"rate": 0.3}, | |
| "Museum": {"rate": 0.2}, | |
| "Courthouse": {"rate": 0.4}, | |
| "Gymnasium": {"rate": 0.6}, | |
| "Warehouse": {"rate": 1.0}, | |
| "Residential Single-Family": {"rate": 0.5}, | |
| "Residential Multi-Family": {"rate": 0.4}, | |
| "Auditorium": {"rate": 0.3}, | |
| "Place of Worship": {"rate": 0.4}, | |
| "Laboratory": {"rate": 0.2}, | |
| "Data Center": {"rate": 0.1}, | |
| "Manufacturing Facility": {"rate": 0.7}, | |
| "School Cafeteria": {"rate": 0.5}, | |
| "Dormitory": {"rate": 0.4}, | |
| "Conference Room": {"rate": 0.3}, | |
| "Bank": {"rate": 0.4}, | |
| "Post Office": {"rate": 0.5}, | |
| "Supermarket": {"rate": 0.6} | |
| }, | |
| "Crack Flow": { | |
| "Office": {"ela": 0.0001}, # Effective Leakage Area (m²/m² of wall) | |
| "Classroom": {"ela": 0.00008}, | |
| # Additional building types can be added as needed | |
| }, | |
| "Empirical Equations": { | |
| "Office": {"c": 0.1, "n": 0.65}, # Example coefficients for Sherman-Grimsrud model | |
| "Classroom": {"c": 0.08, "n": 0.65}, | |
| # Additional building types can be added as needed | |
| } | |
| } |