mabuseif commited on
Commit
70655e0
·
verified ·
1 Parent(s): 4706ca7

Update data/ashrae_tables.py

Browse files
Files changed (1) hide show
  1. data/ashrae_tables.py +0 -38
data/ashrae_tables.py CHANGED
@@ -543,44 +543,6 @@ class ASHRAETables:
543
  plt.savefig(filename)
544
  plt.close()
545
 
546
- def _apply_climatic_corrections(self, cltd: float, latitude: str, month: str, color: str, outdoor_temp: float, indoor_temp: float) -> float:
547
- """
548
- Apply climatic corrections to CLTD values based on latitude, month, color, and temperature.
549
-
550
- Args:
551
- cltd (float): Base CLTD value.
552
- latitude (str): Latitude (e.g., '32N').
553
- month (str): Month (e.g., 'Jul').
554
- color (str): Surface color ('Dark', 'Medium', 'Light').
555
- outdoor_temp (float): Outdoor design temperature (°C).
556
- indoor_temp (float): Indoor design temperature (°C).
557
-
558
- Returns:
559
- float: Corrected CLTD value (°C).
560
- """
561
- try:
562
- # Convert temperatures to °F for ASHRAE corrections
563
- outdoor_temp_f = outdoor_temp * 9/5 + 32
564
- indoor_temp_f = indoor_temp * 9/5 + 32
565
-
566
- # Get correction factors
567
- lat_corr = self.latitude_correction.get(latitude, {}).get(month, 0.0)
568
- month_corr = self.month_correction.get(month, 0.0)
569
- color_corr = self.color_correction.get(color, 0.0)
570
-
571
- # Apply temperature difference correction (ASHRAE CLTD correction formula)
572
- temp_diff = outdoor_temp_f - indoor_temp_f
573
- design_temp_diff = 85 - 78 # ASHRAE base conditions: 85°F outdoor, 78°F indoor
574
- temp_corr = (temp_diff - design_temp_diff) * 0.5556 # Convert °F to °C
575
-
576
- # Total correction
577
- corrected_cltd = cltd + lat_corr + month_corr + color_corr + temp_corr
578
-
579
- # Ensure non-negative CLTD
580
- return max(0.0, corrected_cltd)
581
- except Exception as e:
582
- raise ValueError(f"Error applying climatic corrections: {str(e)}")
583
-
584
  def calculate_corrected_cltd_wall(self, wall_group: str, orientation: str, hour: int, latitude: str, month: str, color: str, outdoor_temp: float, indoor_temp: float) -> float:
585
  """
586
  Calculate corrected CLTD for a wall with climatic corrections.
 
543
  plt.savefig(filename)
544
  plt.close()
545
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
  def calculate_corrected_cltd_wall(self, wall_group: str, orientation: str, hour: int, latitude: str, month: str, color: str, outdoor_temp: float, indoor_temp: float) -> float:
547
  """
548
  Calculate corrected CLTD for a wall with climatic corrections.