通过 Python 原生 COM 接口驱动 Aspen Plus V11/V14,自动化搭建、修改、运行并诊断化工流程模拟,覆盖组分与物性方法、精馏塔、换热与流体设备、反应器、收敛策略及参数拟合等场景。
✓已通过基础校验
名称、分类、版本与作者信息完整,安装包与文档齐备。
✓可直接使用
提供 Markdown 文档与配置示例,下载后按文档说明使用即可。
v3.8.0 — case-library refresh (2026-10-10): both shipped end-to-end RadFrac cases now run a methanol–water duty (feed 50 wt% methanol, 10 000 kg/h → top ≥99.5 wt%), replacing ethanol–water in the main Design-Spec case
v11_fast_radfrac_designspec.pyand incase17_binary_param_fit.py(case2/7/12/16keep ethanol–water only as a working medium). Running the new duty falsified two statements the recipes had been carrying: (1) for a near-total-recovery target the manipulated variable must beMOLE-RR, notMOLE-D— measured w_D moved 1.0e-5 over D 150→156 kmol/h but 6.3e-3 over RR 1.2→3.2, andMOLE-RRconverged first try (BLKSTAT=0,PER_ERROR=0); §9's "prefer MOLE-D / MOLE-RR can crash" advice is now scoped to targets sitting mid-range, not to this class. (2)Design-Spec\DS-1\Output\FINAL_VALis a LIST node — its parent.Valueis the row counter1, the answers areFINAL_VAL\1(MANIPULATED) and\2(target expression); and the converged value is not written back toInput\BASIS_RR(readBlocks\<b>\Output\RR). Also fixed: the main case had been writing 25 K into aMET(K/atm/kmol/h) document since it was written — §1.6 filed that lesson but the reference case never applied it. Verified live:w_METHANOL,D = 0.995015836, recovery 0.990886, D+B = 10 000.07 kg/h. Details:CHANGELOG.md.
v3.8.0 — 案例库刷新(2026-10-10):两个已交付的端到端 RadFrac 案例现在都运行甲醇–水工况(进料 50 wt% 甲醇,10 000 kg/h → 塔顶 ≥99.5 wt%),取代了主 Design-Spec 案例v11_fast_radfrac_designspec.py和case17_binary_param_fit.py中的乙醇–水(case2/7/12/16仅将乙醇–水保留为工作介质)。运行新工况证伪了配方一直沿用的两条陈述:(1) 对于接近全回收的目标,操纵变量必须是MOLE-RR,而非MOLE-D——实测 w_D 在 D 从 150→156 kmol/h 时仅变化 1.0e-5,但在 RR 从 1.2→3.2 时变化 6.3e-3,且MOLE-RR首次尝试即收敛(BLKSTAT=0,PER_ERROR=0);§9 中“优先用 MOLE-D / MOLE-RR 可能崩溃”的建议现在仅适用于处于中间范围的目标,不适用于此类。(2)Design-Spec\DS-1\Output\FINAL_VAL是一个 LIST 节点——其父节点.Value是行计数器1,答案是FINAL_VAL\1(MANIPULATED)和\2(目标表达式);且收敛值不会写回Input\BASIS_RR(应读取Blocks\<b>\Output\RR)。另已修复:主案例自编写以来一直将 25 K 写入MET(K/atm/kmol/h)文档——§1.6 记录了这一教训,但参考案例从未应用。实测验证:w_METHANOL,D = 0.995015836,回收率 0.990886,D+B = 10 000.07 kg/h。详情见CHANGELOG.md。
Do not re-inflate this file: release notes go toCHANGELOG.md, recipe detail goes toreferences/. Keep only the current release note here (the audit gate fails the build if a second> v…block appears).
不要重新膨胀此文件:发布说明写入CHANGELOG.md,配方细节写入references/。此处仅保留当前发布说明(若出现第二个>v… 块,审计门禁将使构建失败)。
BASIS_D/BASIS_RR/NSTAGE → app.Reinit() → Run2, with a Python-side bisection/secant search; usually 2–4 iterations to converge). DSTWU shortcut estimation (§26) is not a Model Analysis Tool — use it freely when you need stage count / feed-stage starting values.common_aspen.py helper functions instead of rewriting them.Before writing any automation code, read references/com_recipes.md — the core native COM recipe, verified node-by-node on real Aspen Plus V11.0 and covering the everyday chain before any run; its head carries a §→file index. Deep-dive topics live in 7 companion volumes (references/com_recipes_*.md, listed in the tree below) — open one only when the task needs it. Before writing any dimensional value, read references/unit_systems.md — it is the authority for which unit a COM node / .bkp code uses (base sets SI/ENG/MET, named sets, <type> <index> codes, per-node units, conversion):
在编写任何自动化代码之前,请阅读 references/com_recipes.md——这是核心原生 COM 配方,已在真实 Aspen Plus V11.0 上逐节点验证,涵盖任何运行前的日常链条;其开头带有 §→文件索引。深入专题位于 7 个配套卷(references/com_recipes_*.md,见下方目录树)——仅在任务需要时打开。在写入任何量纲数值之前,请阅读 references/unit_systems.md——它是 COM 节点 / .bkp 代码使用何种单位的权威依据(基本单位集 SI/ENG/MET、命名集、<type> <index> 代码、逐节点单位、换算):
list_aspen_versions()/connect_aspen() auto-detect/explicit version), unit system & property method (§2), component 2-D table add (§3: InsertRow/SetLabel writing, dedup/error list)list_aspen_versions()/connect_aspen() 自动检测/显式版本)、单位制与物性方法(§2)、组分二维表添加(§3:InsertRow/SetLabel 写入、去重/错误列表)Input\PRES)Input\PRES)GHEN/GCHEMISTRY/GTRUE_COMPS is the only correct hook for electrolyte chemistry, block-level TRUE-COMPS=YES deadlocks the engine, stage-efficiency STAGE_EFF text surgery, ABSORBER=YES ordering rule & VD(OUT), Mixer/Heater/FSplit default pressure 0, bkp 72-column fold & regex anchor, ENG→METCHEM direct write deadlock & result-comparison conversion, recycle-flowsheet reproduction checklist)GHEN/GCHEMISTRY/GTRUE_COMPS 是电解质化学的唯一正确挂钩,模块级 TRUE-COMPS=YES 会使引擎死锁,级效率 STAGE_EFF 文本手术,ABSORBER=YES 顺序规则与 VD(OUT),Mixer/Heater/FSplit 默认压力 0,bkp 72 列折行与正则锚点,ENG→METCHEM 直接写入死锁与结果对比换算,循环流程复现检查清单)e90aac78aae47abb0ab66730fd8c60c125ad2737b55eb60d2ffab62a4241a3e2