simpcbf
简体中文 | English
将一跨多层、V/倒 V 交替支撑的钢框架,等效为分层铁木辛柯梁,返回楼层集中质量 m、抗弯刚度 EI 和有效剪切刚度 GA。
安装与调用
安装:
pip install simpcbf
调用:
from simpcbf import simplify_frame
result = simplify_frame(
span=6000,
heights=[3000] * 6,
beams=["W24x68"] * 6,
columns=["W14x90"] * 6,
braces=["W8x35"] * 6,
base="fixed",
connection="rigid",
show_model=False,
validate=False,
)
print(result.m) # tonne,即 N·s²/mm
print(result.EI) # N·mm²
print(result.GA) # N
base="pinned" 表示无首层柱的摇摆框架,columns 列表此时从第二层开始填写,只需 层数 - 1 个截面。connection="pinned" 表示全楼梁端铰接,参照模型中的柱仍保持连续。理论忽略连续柱弯曲及刚接框架的附加抗侧作用,因此 connection 用于示意图与完整框架验证,不改变理论 EI、GA。
单位统一为 mm、N、s。截面名称必须能通过 wsection 查询。理论刚度只使用截面面积,强轴惯性矩用于完整框架的独立验证。质量仅包含本榀钢构件,每层构件的全部质量归本层层顶。
等效计算使用闭式理论公式,不标定有限元响应。OpenSees 只在 validate=True 时由独立子进程载入,返回静力对比、前三阶可用侧移模态和 MAC。支持 Windows x64、普通 CPython 3.11–3.14。
详细接口、理论假设、完整推导、验证定义及两个实际算例见 使用与理论文档。对应的完整脚本为 固接算例 和 摇摆算例,可在安装本库的 Python 环境中直接运行。本地开发使用 uv sync --group dev,测试使用 uv run --group dev python -m pytest。
注:本程序由 OpenAI GPT-6.1 辅助开发。
Metadata
Release files for simpcbf 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simpcbf-1.0.0.tar.gz | 44.2 MB | Without provenance | Details for simpcbf-1.0.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| simpcbf-1.0.0-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details for simpcbf-1.0.0-cp314-cp314-win_amd64.whl |
| simpcbf-1.0.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for simpcbf-1.0.0-cp313-cp313-win_amd64.whl |
| simpcbf-1.0.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for simpcbf-1.0.0-cp312-cp312-win_amd64.whl |
| simpcbf-1.0.0-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details for simpcbf-1.0.0-cp311-cp311-win_amd64.whl |
Total release size: 90.6 MB
Release files / simpcbf-1.0.0.tar.gz
| Download URL | simpcbf-1.0.0.tar.gz |
|---|---|
| Size | 44.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b34dad7c0fde1c4011df9b657f507c2ec1dee80f2fd6c3e600fbe55fcdcf423
|
|
BLAKE2b-256 checksum How to use checksums |
415359b877c0324a3812accf348520aeb16d136e2b1eb35e35cef1ea60f6405d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / simpcbf-1.0.0-cp314-cp314-win_amd64.whl
| Download URL | simpcbf-1.0.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 11.8 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
36eab3aa956ae95b0f82bf9d6fdac837fe48f117edda8e14ae96dd7e63a6168a
|
|
BLAKE2b-256 checksum How to use checksums |
c39e347daebfac898dc8bd2ad0fba09a58e4a7b8ef1f8c1d6faa97791f2dbcbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / simpcbf-1.0.0-cp313-cp313-win_amd64.whl
| Download URL | simpcbf-1.0.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 11.5 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a200c486e344d4bb79540ab89f8520626e37809190ea913ee5042d563b87168f
|
|
BLAKE2b-256 checksum How to use checksums |
91db572c35bcc15f05d24d08ff291bdaf88f3a4a3274c7431cf7911b519fd727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / simpcbf-1.0.0-cp312-cp312-win_amd64.whl
| Download URL | simpcbf-1.0.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 11.5 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7a11d1f0655fff63ee307c6dc9da60009a3a5f5962abcb8fae1075ed4e27aec7
|
|
BLAKE2b-256 checksum How to use checksums |
73708fe0d500364cdd1eca42eb69da6eaa1d069f551ec445858fed3338722c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / simpcbf-1.0.0-cp311-cp311-win_amd64.whl
| Download URL | simpcbf-1.0.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 11.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4b7bbffdb15f76e6a795949caf712208548c0582e3ad10edcf62237120cb727f
|
|
BLAKE2b-256 checksum How to use checksums |
d75e1391adcf1e4d34ec4a65c6eaa0c88686544b2bad29284820f7aa6a3a8c1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for simpcbf 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.