mabuseif commited on
Commit
65c9c7f
·
verified ·
1 Parent(s): 26950bb

Update data/building_components.py

Browse files
Files changed (1) hide show
  1. data/building_components.py +6 -1
data/building_components.py CHANGED
@@ -1,6 +1,7 @@
1
  """
2
  Building component data models for HVAC Load Calculator.
3
  This module defines the data structures for walls, roofs, floors, windows, doors, and other building components.
 
4
  """
5
 
6
  from dataclasses import dataclass, field
@@ -264,6 +265,8 @@ class Floor(BuildingComponent):
264
  floor_type: str = "Custom" # Slab-on-grade, Raised, etc.
265
  is_ground_contact: bool = False
266
  perimeter_length: float = 0.0 # m (for slab-on-grade floors)
 
 
267
 
268
  def __post_init__(self):
269
  """Initialize floor-specific attributes."""
@@ -277,7 +280,9 @@ class Floor(BuildingComponent):
277
  floor_dict.update({
278
  "floor_type": self.floor_type,
279
  "is_ground_contact": self.is_ground_contact,
280
- "perimeter_length": self.perimeter_length
 
 
281
  })
282
  return floor_dict
283
 
 
1
  """
2
  Building component data models for HVAC Load Calculator.
3
  This module defines the data structures for walls, roofs, floors, windows, doors, and other building components.
4
+ Reference: ASHRAE Handbook—Fundamentals (2017), Chapter 18, Section 18.2.
5
  """
6
 
7
  from dataclasses import dataclass, field
 
265
  floor_type: str = "Custom" # Slab-on-grade, Raised, etc.
266
  is_ground_contact: bool = False
267
  perimeter_length: float = 0.0 # m (for slab-on-grade floors)
268
+ insulated: bool = False # Added to indicate insulation status
269
+ ground_temperature_c: float = None # Added for ground temperature in °C
270
 
271
  def __post_init__(self):
272
  """Initialize floor-specific attributes."""
 
280
  floor_dict.update({
281
  "floor_type": self.floor_type,
282
  "is_ground_contact": self.is_ground_contact,
283
+ "perimeter_length": self.perimeter_length,
284
+ "insulated": self.insulated,
285
+ "ground_temperature_c": self.ground_temperature_c
286
  })
287
  return floor_dict
288