Spaces:
Sleeping
Sleeping
Update utils/psychrometrics.py
Browse files- utils/psychrometrics.py +3 -2
utils/psychrometrics.py
CHANGED
|
@@ -721,7 +721,7 @@ class Psychrometrics:
|
|
| 721 |
'flow_rate': flow_mix
|
| 722 |
}
|
| 723 |
|
| 724 |
-
#
|
| 725 |
if __name__ == "__main__":
|
| 726 |
# Test basic properties
|
| 727 |
t_db_test = 25.0
|
|
@@ -739,7 +739,8 @@ if __name__ == "__main__":
|
|
| 739 |
for key, value in props_altitude.items():
|
| 740 |
print(f"{key}: {value:.6f}")
|
| 741 |
p_calc_alt = Psychrometrics.pressure_at_altitude(altitude_test)
|
| 742 |
-
|
|
|
|
| 743 |
|
| 744 |
# Test air mixing
|
| 745 |
print("\n--- Air Mixing Test ---")
|
|
|
|
| 721 |
'flow_rate': flow_mix
|
| 722 |
}
|
| 723 |
|
| 724 |
+
# Example Usage (Preserved and expanded)
|
| 725 |
if __name__ == "__main__":
|
| 726 |
# Test basic properties
|
| 727 |
t_db_test = 25.0
|
|
|
|
| 739 |
for key, value in props_altitude.items():
|
| 740 |
print(f"{key}: {value:.6f}")
|
| 741 |
p_calc_alt = Psychrometrics.pressure_at_altitude(altitude_test)
|
| 742 |
+
pressure_diff = abs(p_calc_alt - props_altitude["atmospheric_pressure_pa"]) < 1e-3
|
| 743 |
+
print(f"Calculated pressure at {altitude_test}m: {p_calc_alt:.0f} Pa (matches: {pressure_diff})")
|
| 744 |
|
| 745 |
# Test air mixing
|
| 746 |
print("\n--- Air Mixing Test ---")
|