Files
SystemSimulationApp/app/simulation/README.md
T

20 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 仿真后端
当前采用 Python 编排、C 数值执行。输入 XML 经校验后,Python 根据模型参数和连接生成系统专用 C;GCC 编译成 EXE,EXE 内执行初始化、物性、流量、机械、RK45/CVODE BDF、事件和采样。求解循环不调用 Python。
## 目录
- `components/`:模型参数、端口、显示和结果声明。
- `core/`、`registry.py`、`systems/network.py`:模型合同与网络结构校验。
- `native_codegen/`:C 生成、构建、进程运行和 CLI。
- `config.py`、`sampling.py`、`results.py`:公共配置、进度、采样网格校验与结果类型。
- `performance.py`、`warmup.py`:编排计时和启动工具链检查。
- `reporting/amesim_results.py`:外部 Amesim 结果读取。
- 仓库根目录 `native/`:C 组件公式和求解器。
旧 Python 积分器、数值组件方法和固定算例专用求解器已经退役。旧 `/api/reactflow/simulate-testmodel`、`/api/reactflow/simulate-test-mql` 返回 410;使用 `/api/system-xml/simulate` 或流式接口。
旧 `ir/` 包、专属 schema、规范与测试已删除。当前 C 生成器直接使用经过校验的网络结构,不依赖旧 System IR v2。
运行、支持范围与依赖见 [C 后端说明](../../native/README.md)。模型开发规则见 [组件规范](../../docs/standard/component-model-authoring-spec-v1.md)。历史性能、Amesim 差异和旧公式说明位于 `docs/other/` 及 Git 历史,不能作为当前运行入口。