qtmodel 2.4.1__tar.gz → 2.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qtmodel-2.4.1 → qtmodel-2.4.2}/PKG-INFO +11 -14
- {qtmodel-2.4.1 → qtmodel-2.4.2}/README.md +10 -13
- {qtmodel-2.4.1 → qtmodel-2.4.2}/pyproject.toml +2 -2
- qtmodel-2.4.2/src/qtmodel/__init__.py +24 -0
- qtmodel-2.4.2/src/qtmodel/core/__init__.py +16 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/core/qt_server.py +1 -1
- qtmodel-2.4.2/src/qtmodel/core/section_db.py +736 -0
- qtmodel-2.4.2/src/qtmodel/core/section_geometry.py +1005 -0
- qtmodel-2.4.2/src/qtmodel/core/section_shape.py +301 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_section.py +179 -22
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_section.py +28 -16
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel.egg-info/PKG-INFO +11 -14
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel.egg-info/SOURCES.txt +7 -2
- qtmodel-2.4.2/tests/test_section_db.py +129 -0
- qtmodel-2.4.2/tests/test_section_geometry.py +124 -0
- qtmodel-2.4.2/tests/test_section_shape.py +88 -0
- qtmodel-2.4.1/src/qtmodel/__init__.py +0 -7
- qtmodel-2.4.1/src/qtmodel/core/__init__.py +0 -1
- qtmodel-2.4.1/src/qtmodel/core/parameter_section_dict.py +0 -122
- {qtmodel-2.4.1 → qtmodel-2.4.2}/setup.cfg +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/bridge.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/cdb/__init__.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/cdb/cdb_anti_overturn_check.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/cdb/cdb_concrete_check.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/cdb/cdb_steel_box_check.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/cdb/cdb_steel_truss_check.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/core/concrete_check_db.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/core/data_helper.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/core/model_db.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/core/result_db.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/__init__.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_analysis_setting.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_assistant.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_boundary.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_construction_stage.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_dynamic_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_live_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_project.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_property.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_sink_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_static_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_structure.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_temperature_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/mdb/mdb_tendon.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/__init__.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_boundary.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_load.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_material.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_stage.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_model_structure.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_result_data.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_result_plot.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel/odb/odb_view.py +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-2.4.1 → qtmodel-2.4.2}/src/qtmodel.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: qtmodel package
|
|
5
5
|
Author: Your Name
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
|
|
9
|
-
> 最新qtmodel版本 2.4.
|
|
9
|
+
> 最新qtmodel版本 2.4.2 - 2026-07-17
|
|
10
10
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
11
11
|
- 增加检算荷载API
|
|
12
12
|
# 建模操作
|
|
@@ -825,13 +825,17 @@ mdb.update_view_stage(stage_name="一次成桥")
|
|
|
825
825
|
#Returns: 无
|
|
826
826
|
```
|
|
827
827
|
## 截面
|
|
828
|
+
### get_parameter_section_schema
|
|
829
|
+
### get_parameter_section_shape
|
|
830
|
+
### get_section_shape
|
|
828
831
|
### add_parameter_section
|
|
829
832
|
添加参数化截面
|
|
830
833
|
> 参数:
|
|
831
834
|
> index: 截面编号,默认自动识别
|
|
832
835
|
> name:截面名称
|
|
833
836
|
> sec_type:参数截面类型名称
|
|
834
|
-
> sec_info
|
|
837
|
+
> sec_info:有含义的截面参数字典。可先调用 get_parameter_section_schema 查询
|
|
838
|
+
> mat_combine:组合截面材料参数,可选。顺序为[弹性模量比、密度比、钢材泊松比、混凝土泊松比、热膨胀系数比]
|
|
835
839
|
> sec_property:截面特性(参考UI界面共计29个参数),可选参数,指定截面特性时不进行截面计算
|
|
836
840
|
> bias_type:偏心类型 默认中心
|
|
837
841
|
> center_type:中心类型 默认质心
|
|
@@ -873,7 +877,7 @@ sec_info={
|
|
|
873
877
|
> index: 截面编号,默认自动识别
|
|
874
878
|
> name:截面名称
|
|
875
879
|
> sec_type:参数截面类型名称(详见UI界面)
|
|
876
|
-
> sec_info
|
|
880
|
+
> sec_info:截面信息。兼容旧版有序列表,也可传有含义的参数字典;Agent 优先使用字典
|
|
877
881
|
> symmetry:混凝土截面是否对称 (仅混凝土箱梁截面需要)
|
|
878
882
|
> chamfer_info:混凝土截面倒角信息 (仅混凝土箱梁截面需要)
|
|
879
883
|
> sec_right:混凝土截面右半信息 (对称时可忽略,仅混凝土箱梁截面需要)
|
|
@@ -3399,8 +3403,9 @@ odb.get_section_data(1)
|
|
|
3399
3403
|
```Python
|
|
3400
3404
|
# 示例代码
|
|
3401
3405
|
from qtmodel import *
|
|
3402
|
-
odb.get_section_property(1)
|
|
3403
|
-
|
|
3406
|
+
property = odb.get_section_property(1)
|
|
3407
|
+
print(property.Ax, property.Iy)
|
|
3408
|
+
#Returns:
|
|
3404
3409
|
```
|
|
3405
3410
|
### get_section_names
|
|
3406
3411
|
获取模型所有截面号
|
|
@@ -4469,14 +4474,6 @@ modal=True,
|
|
|
4469
4474
|
auto_close=True,
|
|
4470
4475
|
read_timeout=1800
|
|
4471
4476
|
)
|
|
4472
|
-
# 启动后台混凝土检算,不显示分析窗口
|
|
4473
|
-
cdb.solve_concrete_check()
|
|
4474
|
-
# 启动后轮询等待完成
|
|
4475
|
-
cdb.solve_concrete_check(wait=True, max_wait=1800)
|
|
4476
|
-
# 显示分析窗口并执行混凝土检算
|
|
4477
|
-
cdb.solve_concrete_check(show_view=True)
|
|
4478
|
-
# 显示模态分析窗口,计算完成自动关闭,等待 1800 秒
|
|
4479
|
-
cdb.solve_concrete_check(
|
|
4480
4477
|
#Returns:
|
|
4481
4478
|
```
|
|
4482
4479
|
### get_concrete_check_solve_status
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> 最新qtmodel版本 2.4.
|
|
1
|
+
> 最新qtmodel版本 2.4.2 - 2026-07-17
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 增加检算荷载API
|
|
4
4
|
# 建模操作
|
|
@@ -817,13 +817,17 @@ mdb.update_view_stage(stage_name="一次成桥")
|
|
|
817
817
|
#Returns: 无
|
|
818
818
|
```
|
|
819
819
|
## 截面
|
|
820
|
+
### get_parameter_section_schema
|
|
821
|
+
### get_parameter_section_shape
|
|
822
|
+
### get_section_shape
|
|
820
823
|
### add_parameter_section
|
|
821
824
|
添加参数化截面
|
|
822
825
|
> 参数:
|
|
823
826
|
> index: 截面编号,默认自动识别
|
|
824
827
|
> name:截面名称
|
|
825
828
|
> sec_type:参数截面类型名称
|
|
826
|
-
> sec_info
|
|
829
|
+
> sec_info:有含义的截面参数字典。可先调用 get_parameter_section_schema 查询
|
|
830
|
+
> mat_combine:组合截面材料参数,可选。顺序为[弹性模量比、密度比、钢材泊松比、混凝土泊松比、热膨胀系数比]
|
|
827
831
|
> sec_property:截面特性(参考UI界面共计29个参数),可选参数,指定截面特性时不进行截面计算
|
|
828
832
|
> bias_type:偏心类型 默认中心
|
|
829
833
|
> center_type:中心类型 默认质心
|
|
@@ -865,7 +869,7 @@ sec_info={
|
|
|
865
869
|
> index: 截面编号,默认自动识别
|
|
866
870
|
> name:截面名称
|
|
867
871
|
> sec_type:参数截面类型名称(详见UI界面)
|
|
868
|
-
> sec_info
|
|
872
|
+
> sec_info:截面信息。兼容旧版有序列表,也可传有含义的参数字典;Agent 优先使用字典
|
|
869
873
|
> symmetry:混凝土截面是否对称 (仅混凝土箱梁截面需要)
|
|
870
874
|
> chamfer_info:混凝土截面倒角信息 (仅混凝土箱梁截面需要)
|
|
871
875
|
> sec_right:混凝土截面右半信息 (对称时可忽略,仅混凝土箱梁截面需要)
|
|
@@ -3391,8 +3395,9 @@ odb.get_section_data(1)
|
|
|
3391
3395
|
```Python
|
|
3392
3396
|
# 示例代码
|
|
3393
3397
|
from qtmodel import *
|
|
3394
|
-
odb.get_section_property(1)
|
|
3395
|
-
|
|
3398
|
+
property = odb.get_section_property(1)
|
|
3399
|
+
print(property.Ax, property.Iy)
|
|
3400
|
+
#Returns:
|
|
3396
3401
|
```
|
|
3397
3402
|
### get_section_names
|
|
3398
3403
|
获取模型所有截面号
|
|
@@ -4461,14 +4466,6 @@ modal=True,
|
|
|
4461
4466
|
auto_close=True,
|
|
4462
4467
|
read_timeout=1800
|
|
4463
4468
|
)
|
|
4464
|
-
# 启动后台混凝土检算,不显示分析窗口
|
|
4465
|
-
cdb.solve_concrete_check()
|
|
4466
|
-
# 启动后轮询等待完成
|
|
4467
|
-
cdb.solve_concrete_check(wait=True, max_wait=1800)
|
|
4468
|
-
# 显示分析窗口并执行混凝土检算
|
|
4469
|
-
cdb.solve_concrete_check(show_view=True)
|
|
4470
|
-
# 显示模态分析窗口,计算完成自动关闭,等待 1800 秒
|
|
4471
|
-
cdb.solve_concrete_check(
|
|
4472
4469
|
#Returns:
|
|
4473
4470
|
```
|
|
4474
4471
|
### get_concrete_check_solve_status
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qtmodel"
|
|
7
|
-
version = "2.4.
|
|
7
|
+
version = "2.4.2"
|
|
8
8
|
description = "qtmodel package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -22,4 +22,4 @@ where = ["src"]
|
|
|
22
22
|
# py -m pip install -U pip build twine
|
|
23
23
|
# py -m build
|
|
24
24
|
# py -m twine check dist/*
|
|
25
|
-
# py -m twine upload -r pypi --non-interactive --verbose dist/*
|
|
25
|
+
# py -m twine upload -r pypi --non-interactive --verbose dist/*
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from .bridge import bridge, Bridge
|
|
2
|
+
from .cdb import cdb, Cdb
|
|
3
|
+
from .core.qt_server import QtServer
|
|
4
|
+
from .core.section_db import SectionDB, SectionParameter, SectionProperty, SectionSchema
|
|
5
|
+
from .core.section_geometry import SectionGeometryDB
|
|
6
|
+
from .core.section_shape import (
|
|
7
|
+
SectionLine,
|
|
8
|
+
SectionLoopSegment,
|
|
9
|
+
SectionPoint,
|
|
10
|
+
SectionShape,
|
|
11
|
+
SectionShapePart,
|
|
12
|
+
)
|
|
13
|
+
from .mdb import mdb, Mdb
|
|
14
|
+
from .odb import odb, Odb
|
|
15
|
+
|
|
16
|
+
__version__ = QtServer.QT_VERSION
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"Bridge", "bridge", "Cdb", "cdb", "Mdb", "mdb", "Odb", "odb",
|
|
20
|
+
"SectionDB", "SectionParameter", "SectionProperty", "SectionSchema",
|
|
21
|
+
"SectionGeometryDB",
|
|
22
|
+
"SectionPoint", "SectionLoopSegment", "SectionLine", "SectionShapePart",
|
|
23
|
+
"SectionShape",
|
|
24
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from .section_db import SectionDB, SectionParameter, SectionProperty, SectionSchema
|
|
2
|
+
from .section_geometry import SectionGeometryDB
|
|
3
|
+
from .section_shape import (
|
|
4
|
+
SectionLine,
|
|
5
|
+
SectionLoopSegment,
|
|
6
|
+
SectionPoint,
|
|
7
|
+
SectionShape,
|
|
8
|
+
SectionShapePart,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"SectionDB", "SectionParameter", "SectionProperty", "SectionSchema",
|
|
13
|
+
"SectionGeometryDB",
|
|
14
|
+
"SectionPoint", "SectionLoopSegment", "SectionLine", "SectionShapePart",
|
|
15
|
+
"SectionShape",
|
|
16
|
+
]
|