PythonFMU:一个轻量级的框架,可将Python3.x代码打包为协同仿真FMU-源码

上传者: 42099936 | 上传时间: 2021-09-13 09:04:35 | 文件大小: 120KB | 文件类型: ZIP
PythonFMU 一个轻量级的框架,可将Python 3代码或CSV文件打包为协同仿真FMU(遵循FMI 2.0版)。 如何从python代码构建FMU? 安装pythonfmu软件包: pip install pythonfmu 创建一个新类,扩展在pythonfmu.fmi2slave模块中声明的Fmi2Slave类(请参见下面的示例)。 运行pythonfmu build创建fmu。 usage: pythonfmu build [-h] -f SCRIPT_FILE [-d DEST] [--doc DOCUMENTATION_FOLDER] [--no-external-tool] [--no-variable-step] [--interpolate-inputs] [--only-one-per-process] [

文件下载

资源详情

[{"title":"( 58 个子文件 120KB ) PythonFMU:一个轻量级的框架,可将Python3.x代码打包为协同仿真FMU-源码","children":[{"title":"PythonFMU-master","children":[{"title":"setup.py <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"MANIFEST.in <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"pythonfmu","children":[{"title":"pythonfmu-export","children":[{"title":".clang-format <span style='color:#111;'> 944B </span>","children":null,"spread":false},{"title":"build_win.sh <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"headers","children":[{"title":"cppfmu","children":[{"title":"cppfmu_cs.hpp <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"cppfmu_common.hpp <span style='color:#111;'> 11.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"fmi","children":[{"title":"fmi2TypesPlatform.h <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"fmi2Functions.h <span style='color:#111;'> 16.57KB </span>","children":null,"spread":false},{"title":"fmi2FunctionTypes.h <span style='color:#111;'> 11.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"pythonfmu","children":[{"title":"PySlaveInstance.hpp <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"PyState.hpp <span style='color:#111;'> 717B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build_unix.sh <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"cpp","children":[{"title":"PySlaveInstance.cpp <span style='color:#111;'> 18.59KB </span>","children":null,"spread":false},{"title":"fmi_functions.cpp <span style='color:#111;'> 16.89KB </span>","children":null,"spread":false},{"title":"cppfmu_cs.cpp <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"enums.py <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"builder.py <span style='color:#111;'> 8.69KB </span>","children":null,"spread":false},{"title":"logmsg.py <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"deploy.py <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"csvbuilder.py <span style='color:#111;'> 7.53KB </span>","children":null,"spread":false},{"title":"osutil.py <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"fmi2slave.py <span style='color:#111;'> 11.81KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_deploy.py <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"csvdemo.csv <span style='color:#111;'> 253B </span>","children":null,"spread":false},{"title":"hello.txt <span style='color:#111;'> 12B </span>","children":null,"spread":false}],"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_logger.py <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"slaves","children":[{"title":"PythonSlaveWithException.py <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"pythonslave.py <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"slavewithdep.py <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"pythonslave_read_file.py <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"localmodule.py <span style='color:#111;'> 79B </span>","children":null,"spread":false}],"spread":false},{"title":"test_fmi2slave.py <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"test_integration.py <span style='color:#111;'> 8.86KB </span>","children":null,"spread":false},{"title":"test_multiple_fmus.py <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"test_builder.py <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false},{"title":"test_variables.py <span style='color:#111;'> 6.86KB </span>","children":null,"spread":false},{"title":"test_csvslave.py <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"__main__.py <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"_version.py <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":"variables.py <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false},{"title":"default_experiment.py <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"setup.cfg <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"main.yml <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"publish.yml <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"examples","children":[{"title":"sympyslave.py <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"demoslave.py <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"demo.ipynb <span style='color:#111;'> 82.23KB </span>","children":null,"spread":false},{"title":"environment.yml <span style='color:#111;'> 55B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"environment.yml <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"binder","children":[{"title":"postBuild <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"environment.yml <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明