CloudPSS电磁暂态仿真平台程序交互接口
Project description
程序接口示例(以零序保护为例)
实现从DM数据库读取保护定值、运行CloudPSS仿真、获取仿真输出结果、输出结果写回数据库等功能.
基本信息
- 输入参数: 保护定值、软压板
- 输出结果:日志记录、模拟量
- 模型链接 http://cloudpss-calculate.ddns.cloudpss.net/model/w864273603/SiChuanProectionTestSystem#/design/diagram/canvas/canvas_0
- 示例:参见文件example.ipynb
- python版本:python 3.9.9 64位
- 依赖包配置:
pip install cloudpss、pip install plotly、pip install dmPython
CloudPSS模型
若模型链接无法打开,请配置 vpn,参加文件vpn客户端及配置2024,注意:要求用户具有内网账号。
若用户无内网账号,则可以本地导入测试系统、测试元件,已置于文件夹cloudpssmodel中。
数据库
- 本地初始化:相关数据库表初始化、数据导入sql脚本,参加文件目录数据库建表相关。
- 远程连接测试:可使用算例提供的数据库案例进行远程测试,Ip、用户名和密码见数据库建表相关\数据库信息。
Simulink封装示例
参见simulink模型文件 simulinkmodel目录中的SiChuanProtectionTest.slx。
Sfunction编译示例(https://latest.kb.cloudpss.net/documents/software/emtlab/emts/user-defined/s-function-control/)
simulinkmodel目录中的protection2.so为对应示例测试元件在linux64为系统下的编译产物。
示例测试元件
本示例的测试元件的代码实现部分由simulink封装示例中的测试元件生成sfunction代码后编译得到,接口实现部分在CloudPSS平台中设计完成,元件接口设计可通过导入保护仿真接口测试元件查看。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CloudPSSInterface-1.0.2.tar.gz.
File metadata
- Download URL: CloudPSSInterface-1.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ceebb4287ea5571b951e9444bb5c6d92f69b5577f57d6654fde3e4bd657913
|
|
| MD5 |
1604519ab8de571ffa18c1821711bebd
|
|
| BLAKE2b-256 |
8f6908857cc19a7f3f04fdb4dd2b2e2979b508c276c16e5b974beb931e67c032
|
File details
Details for the file CloudPSSInterface-1.0.2-py3-none-any.whl.
File metadata
- Download URL: CloudPSSInterface-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67618579f3aafd34eb37b2423726a8976f876ea21d53e0539d3fd7f1761eb10a
|
|
| MD5 |
eb07a99c9eeaf9fbb1b2d2a0e835ec98
|
|
| BLAKE2b-256 |
0fbbe2c8e6ca9b5540a6b12ac2225dbe7cc2aa5fb63e83af6f565739ac25f260
|