Spaces:
Sleeping
Sleeping
Update utils/cooling_load.py
Browse files- utils/cooling_load.py +3 -3
utils/cooling_load.py
CHANGED
|
@@ -13,7 +13,7 @@ from enum import Enum
|
|
| 13 |
|
| 14 |
# Import data models and utilities
|
| 15 |
from data.building_components import Wall, Roof, Floor, Window, Door, Orientation, ComponentType
|
| 16 |
-
from data.ashrae_tables import
|
| 17 |
from utils.psychrometrics import Psychrometrics
|
| 18 |
from utils.heat_transfer import HeatTransferCalculations
|
| 19 |
|
|
@@ -28,7 +28,7 @@ class CoolingLoadCalculator:
|
|
| 28 |
"""Initialize cooling load calculator."""
|
| 29 |
self.heat_transfer = HeatTransferCalculations()
|
| 30 |
self.psychrometrics = Psychrometrics()
|
| 31 |
-
self.ashrae_tables =
|
| 32 |
|
| 33 |
def calculate_wall_cooling_load(self, wall: Wall, outdoor_temp: float, indoor_temp: float,
|
| 34 |
month: str, hour: int, latitude: str = "40N",
|
|
@@ -771,4 +771,4 @@ if __name__ == "__main__":
|
|
| 771 |
print(f"Total Latent: {summary['total_latent']:.2f} W")
|
| 772 |
print(f"Total: {summary['total']:.2f} W")
|
| 773 |
print(f"Sensible Heat Ratio: {summary['sensible_heat_ratio']:.2f}")
|
| 774 |
-
print(f"Design Hour: {summary['design_hour']}")
|
|
|
|
| 13 |
|
| 14 |
# Import data models and utilities
|
| 15 |
from data.building_components import Wall, Roof, Floor, Window, Door, Orientation, ComponentType
|
| 16 |
+
from data.ashrae_tables import ASHRAETables
|
| 17 |
from utils.psychrometrics import Psychrometrics
|
| 18 |
from utils.heat_transfer import HeatTransferCalculations
|
| 19 |
|
|
|
|
| 28 |
"""Initialize cooling load calculator."""
|
| 29 |
self.heat_transfer = HeatTransferCalculations()
|
| 30 |
self.psychrometrics = Psychrometrics()
|
| 31 |
+
self.ashrae_tables = ASHRAETables()
|
| 32 |
|
| 33 |
def calculate_wall_cooling_load(self, wall: Wall, outdoor_temp: float, indoor_temp: float,
|
| 34 |
month: str, hour: int, latitude: str = "40N",
|
|
|
|
| 771 |
print(f"Total Latent: {summary['total_latent']:.2f} W")
|
| 772 |
print(f"Total: {summary['total']:.2f} W")
|
| 773 |
print(f"Sensible Heat Ratio: {summary['sensible_heat_ratio']:.2f}")
|
| 774 |
+
print(f"Design Hour: {summary['design_hour']}")
|