Spaces:
Sleeping
Sleeping
Update utils/heating_load.py
Browse files- utils/heating_load.py +3 -3
utils/heating_load.py
CHANGED
|
@@ -28,7 +28,7 @@ from utils.psychrometrics import Psychrometrics
|
|
| 28 |
from utils.heat_transfer import HeatTransferCalculations
|
| 29 |
|
| 30 |
# Import data modules
|
| 31 |
-
from
|
| 32 |
|
| 33 |
|
| 34 |
class HeatingLoadCalculator:
|
|
@@ -266,7 +266,7 @@ class HeatingLoadCalculator:
|
|
| 266 |
|
| 267 |
# ENHANCEMENT: Log detailed information in debug mode
|
| 268 |
if self.debug_mode:
|
| 269 |
-
logger.debug(f"Door {
|
| 270 |
|
| 271 |
return max(0, load)
|
| 272 |
|
|
@@ -305,7 +305,7 @@ class HeatingLoadCalculator:
|
|
| 305 |
adjusted_u_value *= adjustment
|
| 306 |
elif hasattr(skylight, 'frame_type') and skylight.frame_type:
|
| 307 |
# Fallback to skylight.frame_type if frame_type not provided
|
| 308 |
-
adjustment = frame_adjustments.get(
|
| 309 |
adjusted_u_value *= adjustment
|
| 310 |
|
| 311 |
# Adjust U-value for drapery based on drapery_openness
|
|
|
|
| 28 |
from utils.heat_transfer import HeatTransferCalculations
|
| 29 |
|
| 30 |
# Import data modules
|
| 31 |
+
from utils.building_components import Wall, Roof, Floor, Window, Door, Orientation, ComponentType, Skylight
|
| 32 |
|
| 33 |
|
| 34 |
class HeatingLoadCalculator:
|
|
|
|
| 266 |
|
| 267 |
# ENHANCEMENT: Log detailed information in debug mode
|
| 268 |
if self.debug_mode:
|
| 269 |
+
logger.debug(f"Door {door.name} heating load: u_value={adjusted_u_value}, area={door.area}, delta_t={delta_t}, load={load:.2f} W")
|
| 270 |
|
| 271 |
return max(0, load)
|
| 272 |
|
|
|
|
| 305 |
adjusted_u_value *= adjustment
|
| 306 |
elif hasattr(skylight, 'frame_type') and skylight.frame_type:
|
| 307 |
# Fallback to skylight.frame_type if frame_type not provided
|
| 308 |
+
adjustment = frame_adjustments.get(frame_type, 1.0)
|
| 309 |
adjusted_u_value *= adjustment
|
| 310 |
|
| 311 |
# Adjust U-value for drapery based on drapery_openness
|