dt_ciclo_fases <- data.table(
tiempo = seq(0, 60, length.out = 600),
presion = 100 + 35 * sin(seq(0, 60, length.out = 600) / 4) + rnorm(600, 0, 0.5)
)
ggplot() +
annotate("rect", xmin = 0, xmax = 10, ymin = -Inf, ymax = Inf, fill = pal$blue_soft, alpha = 0.4) +
annotate("rect", xmin = 10, xmax = 20, ymin = -Inf, ymax = Inf, fill = pal$gray_ice, alpha = 0.5) +
annotate("rect", xmin = 20, xmax = 30, ymin = -Inf, ymax = Inf, fill = pal$blue_soft, alpha = 0.4) +
annotate("rect", xmin = 30, xmax = 50, ymin = -Inf, ymax = Inf, fill = pal$gray_ice, alpha = 0.5) +
annotate("rect", xmin = 50, xmax = 60, ymin = -Inf, ymax = Inf, fill = pal$blue_soft, alpha = 0.4) +
geom_line(data = dt_ciclo_fases, aes(x = tiempo, y = presion), color = pal$blue_deep, linewidth = 0.8) +
annotate("text", x = 5, y = 142, label = "Transitorio (Válvula/Acumulador)", color = pal$blue_dark, fontface = "bold", size = 3) +
annotate("text", x = 15, y = 142, label = "Carga Estacionaria (Bomba)", color = pal$gray_mid, fontface = "bold", size = 3) +
annotate("text", x = 40, y = 142, label = "Carga Sostenida (Enfriador/Bomba)", color = pal$gray_mid, fontface = "bold", size = 3) +
labs(title = "Estructura Temporal del Ciclo de Trabajo de 60 Segundos",
subtitle = "Zonas sombreadas indican fases transitorias de conmutación vs. zonas estacionarias de carga",
x = "Tiempo en el Ciclo (s)", y = "Presión de Trabajo PS1 (bar)")