Untitled
unknown
plain_text
a year ago
1.4 kB
5
Indexable
import matplotlib.pyplot as plt
# Create a simple flow diagram for a chilled water central air conditioning plant
fig, ax = plt.subplots(figsize=(10, 6))
# Components and their positions
components = {
"Chiller": (2, 5),
"Chilled Water Pump": (5, 5),
"Air Handling Unit (AHU)": (8, 5),
"Cooling Tower": (2, 1),
"Condenser Water Pump": (5, 1)
}
# Draw components as boxes
for name, (x, y) in components.items():
ax.text(x, y, name, fontsize=10, ha='center', va='center',
bbox=dict(facecolor='lightblue', edgecolor='black', boxstyle='round,pad=0.5'))
# Draw arrows representing the flow of water
arrows = [
((2.5, 5), (4.5, 5)), # Chiller to Chilled Water Pump
((5.5, 5), (7.5, 5)), # Chilled Water Pump to AHU
((7.5, 4.8), (5.5, 4.8)), # AHU to Chilled Water Pump (return)
((4.5, 4.8), (2.5, 4.8)), # Chilled Water Pump to Chiller (return)
((2.5, 1), (4.5, 1)), # Chiller to Condenser Water Pump
((5.5, 1), (7, 1.5)), # Condenser Water Pump to Cooling Tower
((7, 1.5), (5.5, 4.5)), # Cooling Tower to Chiller
]
for start, end in arrows:
ax.annotate('', xy=end, xytext=start, arrowprops=dict(arrowstyle='->', lw=1.5))
# Set limits and remove axes
ax.set_xlim(0, 10)
ax.set_ylim(0, 6)
ax.axis('off')
plt.title("Simple Diagram of a Chilled Water Central Air Conditioning Plant", fontsize=12)
plt.show()
Editor is loading...
Leave a Comment