关于「脉冲开窗与动态规划:锯齿曲线里的换气排程」,《室内二氧化碳与穿堂风》给出的定量结论是什么?

结论:第五章用动态规划求最省的开窗排程,两小时会议守住 1000 ppm 至少开窗 35 分钟,冬季热损 2.34 千瓦时,一直开窗则为 7.01。

数据口径:书中的房间、人数、呼出量与风压系数均为示意参数;全部计算由书中程序生成;本书不是医疗建议,不对任何健康结果作出承诺,对经营者的建议为非个人化的经营建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(21 段程序)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 1000, 2.34, 35, 7.01

ceilingDP open mingreedy open mingreedy meanheat kWh
80061617623.77
100035359252.34
1200232310721.68
1400151612141.30
fixed 5 of every 15 (40 open min): 2.62 kWh
window open all meeting: 7.01 kWh
查看完整验算程序
# Chapter 5. p52: fewest open minutes that keep CO2 under a ceiling.
# Model: the minute-by-minute room of p51. Dynamic programming over the
# CO2 level (rounded to 1 ppm) finds the minimum number of open minutes
# in a 120 min meeting such that CO2 never exceeds the ceiling; a greedy
# rule (open only when one more shut minute would break the ceiling) is
# checked against it. Heat lost with the exchanged air in winter uses
# rho*cp = 1.206 kJ/(m^3 K) and dT = 15 K. All parameters illustrative.
# 动态规划求最少开窗分钟数,并与贪心规则对照;冬季热损为示意。
import math

V, C0, N, T = 84.0, 420.0, 8, 120
GEN = N * 0.0052e-3 * 3600
SHUT, OPEN = 0.5, 8.3


def step(c, ach):
    css = C0 + 1e6 * GEN / (ach * V)
    return css + (c - css) * math.exp(-ach / 60.0)


def dp(limit):
    best = {round(C0): 0}
    for _ in range(T):
        nxt = {}
        for c, cost in best.items():
            for ach, add in ((SHUT, 0), (OPEN, 1)):
                c2 = step(c, ach)
                if c2 > limit:
                    continue
                k = round(c2)
                if k not in nxt or cost + add < nxt[k]:
                    nxt[k] = cost + add
        best = nxt
    return min(best.values())


def greedy(limit):
    c, opened, cs = C0, 0, []
    for _ in range(T):
        if step(c, SHUT) > limit:
            c = step(c, OPEN)
            opened += 1
        else:
            c = step(c, SHUT)
        cs.append(c)
    return opened, cs


def heat_kwh(open_min, dt=15.0):
    m3 = (open_min * OPEN + (T - open_min) * SHUT) * V / 60.0
    return m3 * 1.206 * dt / 3600.0


if __name__ == "__main__":
    print("ceiling  DP open min  greedy open min  greedy mean  heat kWh")
    for lim in (800, 1000, 1200, 1400):
        g, cs = greedy(lim)
        print("{:7d} {:12d} {:16d} {:12.0f} {:9.2f}".format(
            lim, dp(lim), g, math.fsum(cs) / T, heat_kwh(g)))
    print("fixed 5 of every 15 (40 open min): {:.2f} kWh".format(
        heat_kwh(40)))
    print("window open all meeting: {:.2f} kWh".format(heat_kwh(T)))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《室内二氧化碳认知衰减、穿堂风伯努利换气与藏风聚气的通风工程重读母典》第 5 章「脉冲开窗与动态规划:锯齿曲线里的换气排程」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-194 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026194,
  author    = {Fan, Yafu},
  title     = {Indoor CO2 and Cognitive Decline, Bernoulli Cross-Ventilation and an Engineering Re-reading of 'Storing Wind, Gathering Qi'},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论