qtmodel 2.2.9__tar.gz → 2.3.3__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.2.9 → qtmodel-2.3.3}/PKG-INFO +207 -170
- {qtmodel-2.2.9 → qtmodel-2.3.3}/README.md +206 -169
- {qtmodel-2.2.9 → qtmodel-2.3.3}/pyproject.toml +1 -1
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/__init__.py +2 -1
- qtmodel-2.3.3/src/qtmodel/bridge.py +67 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/cdb/cdb_steel_box_check.py +7 -229
- qtmodel-2.3.3/src/qtmodel/cdb/cdb_steel_truss_check.py +103 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/core/data_helper.py +66 -65
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/core/model_db.py +50 -13
- qtmodel-2.3.3/src/qtmodel/core/parameter_section_dict.py +122 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/core/qt_server.py +36 -3
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/core/result_db.py +1 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_project.py +1 -9
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_section.py +85 -11
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_structure.py +98 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_tendon.py +95 -2
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_boundary.py +9 -9
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_load.py +13 -13
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_material.py +3 -3
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_section.py +5 -5
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_stage.py +2 -2
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_model_structure.py +83 -26
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_result_data.py +36 -37
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel.egg-info/PKG-INFO +207 -170
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel.egg-info/SOURCES.txt +2 -0
- qtmodel-2.2.9/src/qtmodel/cdb/cdb_steel_truss_check.py +0 -42
- {qtmodel-2.2.9 → qtmodel-2.3.3}/setup.cfg +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/cdb/__init__.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/cdb/cdb_anti_overturn_check.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/cdb/cdb_concrete_check.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/core/__init__.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/__init__.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_analysis_setting.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_assistant.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_boundary.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_construction_stage.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_dynamic_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_live_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_property.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_sink_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_static_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/mdb/mdb_temperature_load.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/__init__.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_result_plot.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel/odb/odb_view.py +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/src/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-2.2.9 → qtmodel-2.3.3}/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.
|
|
3
|
+
Version: 2.3.3
|
|
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版本
|
|
9
|
+
> 最新qtmodel版本 2.3.3 - 2026-06-02
|
|
10
10
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
11
11
|
- 增加运行分析等待时间参数
|
|
12
12
|
# 建模操作
|
|
@@ -161,6 +161,26 @@ mdb.add_elements(ele_data=[
|
|
|
161
161
|
[4,4,1,1,0,1,2,3,4,0]])
|
|
162
162
|
#Returns: 无
|
|
163
163
|
```
|
|
164
|
+
### add_beam_between
|
|
165
|
+
根据起始节点和终止节点平均添加或按间距添加梁单元。
|
|
166
|
+
> 参数:
|
|
167
|
+
> start_id: 新建单元起始编号
|
|
168
|
+
> end_id: 新建单元终止编号
|
|
169
|
+
> node_start: 起始节点号
|
|
170
|
+
> node_end: 终止节点号
|
|
171
|
+
> beta_angle: beta角,默认0
|
|
172
|
+
> mat_id: 材料号,默认1
|
|
173
|
+
> sec_id: 截面号,默认1
|
|
174
|
+
> gap: 间距列表;数量等于 end_id - start_id + 1 时按间距创建,否则C#侧按等分创建
|
|
175
|
+
> using_exist_node: 是否优先使用已有重合节点,默认True
|
|
176
|
+
```Python
|
|
177
|
+
# 示例代码
|
|
178
|
+
from qtmodel import *
|
|
179
|
+
mdb.add_beam_between(start_id=1001,end_id=1010,
|
|
180
|
+
node_start=1,node_end=20,beta_angle=0,mat_id=1,
|
|
181
|
+
sec_id=1,gap=[2.0] * 10,using_exist_node=True)
|
|
182
|
+
#Returns: 无
|
|
183
|
+
```
|
|
164
184
|
### revert_local_orientation
|
|
165
185
|
反转杆系单元局部方向
|
|
166
186
|
> 参数:
|
|
@@ -201,6 +221,20 @@ from qtmodel import *
|
|
|
201
221
|
mdb.update_element(old_id=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
202
222
|
#Returns: 无
|
|
203
223
|
```
|
|
224
|
+
### update_frame_type
|
|
225
|
+
修改杆系单元类型
|
|
226
|
+
> 参数:
|
|
227
|
+
> element_ids: 需要修改的单元编号列表
|
|
228
|
+
> element_type: 单元类型 1-梁 2-杆 3-索
|
|
229
|
+
> initial_type: 索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
230
|
+
> initial_value: 索单元初始参数值
|
|
231
|
+
```Python
|
|
232
|
+
# 示例代码
|
|
233
|
+
from qtmodel import *
|
|
234
|
+
mdb.update_frame_type(element_ids=[1, 2, 3], element_type=1)
|
|
235
|
+
mdb.update_frame_type(element_ids=[101, 102], element_type=3, initial_type=1, initial_value=100)
|
|
236
|
+
#Returns:
|
|
237
|
+
```
|
|
204
238
|
### update_element_material
|
|
205
239
|
更新指定单元的材料号
|
|
206
240
|
> 参数:
|
|
@@ -223,6 +257,17 @@ from qtmodel import *
|
|
|
223
257
|
mdb.update_element_beta(ids=1,beta=90)
|
|
224
258
|
#Returns: 无
|
|
225
259
|
```
|
|
260
|
+
### update_element_section
|
|
261
|
+
更新杆系单元截面或板单元板厚
|
|
262
|
+
> 参数:
|
|
263
|
+
> ids: 单元编号,支持整形、列表、XtoYbyZ形式字符串
|
|
264
|
+
> sec_id: 截面号或板厚号
|
|
265
|
+
```Python
|
|
266
|
+
# 示例代码
|
|
267
|
+
from qtmodel import *
|
|
268
|
+
mdb.update_element_section(ids=1,sec_id=2)
|
|
269
|
+
#Returns: 无
|
|
270
|
+
```
|
|
226
271
|
### update_frame_section
|
|
227
272
|
更新杆系单元截面
|
|
228
273
|
> 参数:
|
|
@@ -728,6 +773,48 @@ mdb.update_view_stage(stage_name="一次成桥")
|
|
|
728
773
|
#Returns: 无
|
|
729
774
|
```
|
|
730
775
|
## 截面
|
|
776
|
+
### add_parameter_section
|
|
777
|
+
添加参数化截面
|
|
778
|
+
> 参数:
|
|
779
|
+
> index: 截面编号,默认自动识别
|
|
780
|
+
> name:截面名称
|
|
781
|
+
> sec_type:参数截面类型名称
|
|
782
|
+
> sec_info:只填写截面参数
|
|
783
|
+
> sec_property:截面特性(参考UI界面共计29个参数),可选参数,指定截面特性时不进行截面计算
|
|
784
|
+
> bias_type:偏心类型 默认中心
|
|
785
|
+
> center_type:中心类型 默认质心
|
|
786
|
+
> shear_consider:考虑剪切 bool 默认考虑剪切变形
|
|
787
|
+
> bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于center_type偏移)
|
|
788
|
+
> bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于center_type偏移)
|
|
789
|
+
```Python
|
|
790
|
+
# 示例代码
|
|
791
|
+
from qtmodel import *
|
|
792
|
+
mdb.add_parameter_section(
|
|
793
|
+
index=271,
|
|
794
|
+
name="新建矩形截面271",
|
|
795
|
+
sec_type="矩形",
|
|
796
|
+
sec_info={"W": 2, "H": 2}
|
|
797
|
+
)
|
|
798
|
+
mdb.add_parameter_section(
|
|
799
|
+
index=271, name="新建混凝土箱梁271", sec_type="混凝土箱梁",
|
|
800
|
+
sec_info=dict(B=24, N=3, H=2, symmetry=True, H1=0.2, H2=0.4,
|
|
801
|
+
H2a=0.1, H2b=0.13, B1=3, B1a=1, B1b=2, B2=1, i1=0.02,
|
|
802
|
+
i2=0, B0=12, B3=5, B4=6, T1=0.28, T2=0.3, T3=0.5, T4=0.5,
|
|
803
|
+
R1=0.5, R2=0.2, C1="1*0.2,0.1*0.2", C2="0.5*0.15,0.3*0.2",
|
|
804
|
+
C3="0.4*0.2", C4="0.5*0.2")
|
|
805
|
+
)
|
|
806
|
+
mdb.add_parameter_section(
|
|
807
|
+
index=271,
|
|
808
|
+
name="新建带肋钢梁271",
|
|
809
|
+
sec_type="带肋钢梁",
|
|
810
|
+
sec_info={
|
|
811
|
+
"tb": 0.016,"H": 2.5,"Nh": 4,"Nv": 4,"hrt": 0.25,
|
|
812
|
+
"hrw": 0.2,"trt": 0.016,"trw": 0.016,"dh": 0.3,
|
|
813
|
+
"dv": 0.5,"tt": 0.016,"tw": 0.02,"W": 2
|
|
814
|
+
}
|
|
815
|
+
)
|
|
816
|
+
#Returns: 无
|
|
817
|
+
```
|
|
731
818
|
### add_section
|
|
732
819
|
添加单一截面信息,如果截面号存在则自动覆盖添加
|
|
733
820
|
> 参数:
|
|
@@ -1413,6 +1500,54 @@ from qtmodel import *
|
|
|
1413
1500
|
mdb.update_element_component_type(ids=[1,2,3,4],component_type=2)
|
|
1414
1501
|
#Returns: 无
|
|
1415
1502
|
```
|
|
1503
|
+
### update_tendon
|
|
1504
|
+
更新钢束信息,支持二维钢束和三维钢束
|
|
1505
|
+
> 参数:
|
|
1506
|
+
> name: 原钢束名称
|
|
1507
|
+
> new_name: 新钢束名称,为空时不修改名称
|
|
1508
|
+
> tendon_2d: 是否为二维钢束,True-二维钢束,False-三维钢束
|
|
1509
|
+
> property_name: 钢束特性名称
|
|
1510
|
+
> group_name: 钢束组名称
|
|
1511
|
+
> num: 根数
|
|
1512
|
+
> line_type: 线型,1-导线点,2-折线点
|
|
1513
|
+
> symmetry: 二维钢束对称点,0-左端点,1-右端点,2-不对称
|
|
1514
|
+
> control_points:
|
|
1515
|
+
> 二维钢束控制点: [(x1,z1,r1),(x2,z2,r2),...]
|
|
1516
|
+
> 三维钢束控制点: [(x1,y1,z1,r1),(x2,y2,z2,r2),...]
|
|
1517
|
+
> control_points_lateral: 二维钢束横弯控制点 [(x1,y1,r1),(x2,y2,r2),...],无横弯时不必输入
|
|
1518
|
+
> position_type: 定位方式,1-直线,2-轨迹线
|
|
1519
|
+
> point_insert:
|
|
1520
|
+
> 直线时为插入点坐标 [x,y,z]
|
|
1521
|
+
> 轨迹线时为 [插入端(1-I 2-J), 插入方向(1-ij 2-ji), 插入单元id]
|
|
1522
|
+
> tendon_direction: 直线钢束X方向向量,默认为x轴即 [1,0,0],轨迹线不用赋值
|
|
1523
|
+
> rotation_angle: 绕钢束旋转角度
|
|
1524
|
+
> rotate_bias: 绕钢束旋转偏心 X、Y
|
|
1525
|
+
> track_group: 轨迹线结构组名,直线时不用赋值
|
|
1526
|
+
> projection: 直线钢束是否投影
|
|
1527
|
+
```Python
|
|
1528
|
+
# 示例代码
|
|
1529
|
+
from qtmodel import *
|
|
1530
|
+
mdb.update_tendon(
|
|
1531
|
+
name="BB1",
|
|
1532
|
+
new_name="BB2",
|
|
1533
|
+
tendon_2d=True,
|
|
1534
|
+
property_name="22-15",
|
|
1535
|
+
num=2,
|
|
1536
|
+
position_type=1,
|
|
1537
|
+
control_points=[(0, -1, 0), (10, -1, 0)],
|
|
1538
|
+
point_insert=(0, 0, 0)
|
|
1539
|
+
)
|
|
1540
|
+
mdb.update_tendon(
|
|
1541
|
+
name="BB1",
|
|
1542
|
+
tendon_2d=False,
|
|
1543
|
+
property_name="22-15",
|
|
1544
|
+
num=2,
|
|
1545
|
+
position_type=1,
|
|
1546
|
+
control_points=[(0, 0, -1, 0), (10, 0, -1, 0)],
|
|
1547
|
+
point_insert=(0, 0, 0)
|
|
1548
|
+
)
|
|
1549
|
+
#Returns:
|
|
1550
|
+
```
|
|
1416
1551
|
### update_tendon_group
|
|
1417
1552
|
更新钢束组名
|
|
1418
1553
|
> 参数:
|
|
@@ -2965,7 +3100,7 @@ mdb.update_bulking_setting(do_analysis=True,mode_count=3,variable_cases=["工况
|
|
|
2965
3100
|
# 示例代码
|
|
2966
3101
|
from qtmodel import *
|
|
2967
3102
|
odb.get_material_data() # 获取所有材料信息
|
|
2968
|
-
#Returns:
|
|
3103
|
+
#Returns: list[dict]
|
|
2969
3104
|
```
|
|
2970
3105
|
### get_thickness_data
|
|
2971
3106
|
获取所有板厚信息
|
|
@@ -3020,7 +3155,7 @@ from qtmodel import *
|
|
|
3020
3155
|
odb.get_node_data() # 获取所有节点信息
|
|
3021
3156
|
odb.get_node_data(ids=1) # 获取单个节点信息
|
|
3022
3157
|
odb.get_node_data(ids=[1,2]) # 获取多个节点信息
|
|
3023
|
-
#Returns:
|
|
3158
|
+
#Returns: list[Node]
|
|
3024
3159
|
```
|
|
3025
3160
|
## 获取单元信息
|
|
3026
3161
|
### get_elements_by_point
|
|
@@ -3067,12 +3202,41 @@ odb.get_overlap_elements()
|
|
|
3067
3202
|
```
|
|
3068
3203
|
### get_structure_group_names
|
|
3069
3204
|
获取结构组名称
|
|
3205
|
+
```Python
|
|
3206
|
+
# 示例代码
|
|
3207
|
+
from qtmodel import *
|
|
3208
|
+
names = odb.get_structure_group_names()
|
|
3209
|
+
#Returns:
|
|
3210
|
+
```
|
|
3211
|
+
### get_structure_group
|
|
3212
|
+
获取结构组具体信息
|
|
3070
3213
|
> 参数:
|
|
3214
|
+
> group_name:结构组名称
|
|
3071
3215
|
```Python
|
|
3072
3216
|
# 示例代码
|
|
3073
3217
|
from qtmodel import *
|
|
3074
|
-
odb.
|
|
3075
|
-
#Returns:
|
|
3218
|
+
names = odb.get_structure_group()
|
|
3219
|
+
#Returns:
|
|
3220
|
+
```
|
|
3221
|
+
### get_structure_group_element_ids
|
|
3222
|
+
获取结构组单元号
|
|
3223
|
+
> 参数:
|
|
3224
|
+
> group_name:结构组名称
|
|
3225
|
+
```Python
|
|
3226
|
+
# 示例代码
|
|
3227
|
+
from qtmodel import *
|
|
3228
|
+
names = odb.get_structure_group_element_ids("结构组1")
|
|
3229
|
+
#Returns:
|
|
3230
|
+
```
|
|
3231
|
+
### get_structure_group_node_ids
|
|
3232
|
+
获取结构组节点号
|
|
3233
|
+
> 参数:
|
|
3234
|
+
> group_name:结构组名称
|
|
3235
|
+
```Python
|
|
3236
|
+
# 示例代码
|
|
3237
|
+
from qtmodel import *
|
|
3238
|
+
names = odb.get_structure_group_node_ids("结构组1")
|
|
3239
|
+
#Returns:
|
|
3076
3240
|
```
|
|
3077
3241
|
### get_element_data
|
|
3078
3242
|
获取单元信息
|
|
@@ -3081,8 +3245,17 @@ odb.get_structure_group_names()
|
|
|
3081
3245
|
```Python
|
|
3082
3246
|
# 示例代码
|
|
3083
3247
|
from qtmodel import *
|
|
3084
|
-
odb.get_element_data() #
|
|
3085
|
-
odb.get_element_data(ids=1) # 获取指定编号单元信息
|
|
3248
|
+
odb.get_element_data() # 获取所有单元信息
|
|
3249
|
+
odb.get_element_data(ids=[1,2,3,4]) # 获取指定编号单元信息
|
|
3250
|
+
#Returns: 包含信息为list[Element]
|
|
3251
|
+
```
|
|
3252
|
+
### get_all_element_ids
|
|
3253
|
+
获取所有单元节点号
|
|
3254
|
+
> 参数:
|
|
3255
|
+
```Python
|
|
3256
|
+
# 示例代码
|
|
3257
|
+
from qtmodel import *
|
|
3258
|
+
odb.get_all_element_ids() # 获取所有单元信息
|
|
3086
3259
|
#Returns: 包含信息为list[dict] or dict
|
|
3087
3260
|
```
|
|
3088
3261
|
### get_element_type
|
|
@@ -3113,7 +3286,7 @@ odb.get_group_elements(group_name="默认结构组")
|
|
|
3113
3286
|
# 示例代码
|
|
3114
3287
|
from qtmodel import *
|
|
3115
3288
|
odb.get_element_weight(ids=1)
|
|
3116
|
-
#Returns: dict<int,
|
|
3289
|
+
#Returns: dict<int,float>
|
|
3117
3290
|
```
|
|
3118
3291
|
## 跨度信息
|
|
3119
3292
|
### get_span_data
|
|
@@ -3165,7 +3338,7 @@ odb.get_section_shape(1)
|
|
|
3165
3338
|
# 示例代码
|
|
3166
3339
|
from qtmodel import *
|
|
3167
3340
|
odb.get_section_data(1)
|
|
3168
|
-
#Returns:
|
|
3341
|
+
#Returns: dict
|
|
3169
3342
|
```
|
|
3170
3343
|
### get_section_property
|
|
3171
3344
|
获取指定截面特性
|
|
@@ -3470,7 +3643,7 @@ odb.get_reaction(ids=1,stage_id=1)
|
|
|
3470
3643
|
odb.get_reaction(ids=[1,2,3],stage_id=1)
|
|
3471
3644
|
odb.get_reaction(ids="1to3",stage_id=1)
|
|
3472
3645
|
odb.get_reaction(ids=1,stage_id=-1,case_name="工况名")
|
|
3473
|
-
#Returns:
|
|
3646
|
+
#Returns: 内部为list[dict]
|
|
3474
3647
|
```
|
|
3475
3648
|
### get_deformation
|
|
3476
3649
|
获取节点变形结果,支持单个节点和节点列表
|
|
@@ -3490,7 +3663,7 @@ odb.get_deformation(ids=1,stage_id=1)
|
|
|
3490
3663
|
odb.get_deformation(ids=[1,2,3],stage_id=1)
|
|
3491
3664
|
odb.get_deformation(ids="1to3",stage_id=1)
|
|
3492
3665
|
odb.get_deformation(ids=1,stage_id=-1,case_name="工况名")
|
|
3493
|
-
#Returns:
|
|
3666
|
+
#Returns: list[dict]
|
|
3494
3667
|
```
|
|
3495
3668
|
### get_element_stress
|
|
3496
3669
|
获取单元应力,支持单个单元和单元列表
|
|
@@ -3507,7 +3680,7 @@ from qtmodel import *
|
|
|
3507
3680
|
odb.get_element_stress(ids=1,stage_id=1)
|
|
3508
3681
|
odb.get_element_stress(ids=[1,2,3],stage_id=1)
|
|
3509
3682
|
odb.get_element_stress(ids=1,stage_id=-1,case_name="工况名")
|
|
3510
|
-
#Returns:
|
|
3683
|
+
#Returns: 内部为list[dict]
|
|
3511
3684
|
```
|
|
3512
3685
|
### get_element_force
|
|
3513
3686
|
获取单元内力,支持单个单元和单元列表
|
|
@@ -3526,7 +3699,7 @@ from qtmodel import *
|
|
|
3526
3699
|
odb.get_element_force(ids=1,stage_id=1)
|
|
3527
3700
|
odb.get_element_force(ids=[1,2,3],stage_id=1)
|
|
3528
3701
|
odb.get_element_force(ids=1,stage_id=-1,case_name="工况名")
|
|
3529
|
-
#Returns:
|
|
3702
|
+
#Returns: list[dict]
|
|
3530
3703
|
```
|
|
3531
3704
|
### get_self_concurrent_reaction
|
|
3532
3705
|
获取自并发反力
|
|
@@ -3537,7 +3710,7 @@ odb.get_element_force(ids=1,stage_id=-1,case_name="工况名")
|
|
|
3537
3710
|
# 示例代码
|
|
3538
3711
|
from qtmodel import *
|
|
3539
3712
|
odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
3540
|
-
#Returns:
|
|
3713
|
+
#Returns: list[dict]
|
|
3541
3714
|
```
|
|
3542
3715
|
### get_all_concurrent_reaction
|
|
3543
3716
|
获取完全并发反力
|
|
@@ -3548,7 +3721,7 @@ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
|
3548
3721
|
# 示例代码
|
|
3549
3722
|
from qtmodel import *
|
|
3550
3723
|
odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
3551
|
-
#Returns:
|
|
3724
|
+
#Returns: list[dict]
|
|
3552
3725
|
```
|
|
3553
3726
|
### get_concurrent_force
|
|
3554
3727
|
获取单元并发内力
|
|
@@ -3560,7 +3733,7 @@ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
|
3560
3733
|
from qtmodel import *
|
|
3561
3734
|
odb.get_concurrent_force(ids=1,case_name="工况1_Fx最大")
|
|
3562
3735
|
odb.get_concurrent_force(ids="1to19",case_name="工况1_Fx最大")
|
|
3563
|
-
#Returns:
|
|
3736
|
+
#Returns: list[dict]
|
|
3564
3737
|
```
|
|
3565
3738
|
### get_elastic_link_force
|
|
3566
3739
|
获取弹性连接内力
|
|
@@ -3575,7 +3748,7 @@ odb.get_concurrent_force(ids="1to19",case_name="工况1_Fx最大")
|
|
|
3575
3748
|
# 示例代码
|
|
3576
3749
|
from qtmodel import *
|
|
3577
3750
|
odb.get_elastic_link_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
3578
|
-
#Returns:
|
|
3751
|
+
#Returns: list[dict]
|
|
3579
3752
|
```
|
|
3580
3753
|
### get_constrain_equation_force
|
|
3581
3754
|
查询约束方程内力
|
|
@@ -3590,7 +3763,7 @@ odb.get_elastic_link_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
|
3590
3763
|
# 示例代码
|
|
3591
3764
|
from qtmodel import *
|
|
3592
3765
|
odb.get_constrain_equation_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
3593
|
-
#Returns:
|
|
3766
|
+
#Returns: list[dict]
|
|
3594
3767
|
```
|
|
3595
3768
|
### get_cable_element_length
|
|
3596
3769
|
查询无应力索长
|
|
@@ -3602,7 +3775,7 @@ odb.get_constrain_equation_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
|
3602
3775
|
# 示例代码
|
|
3603
3776
|
from qtmodel import *
|
|
3604
3777
|
odb.get_cable_element_length(ids=[1,2,3], stage_id=1)
|
|
3605
|
-
#Returns:
|
|
3778
|
+
#Returns: list[dict]
|
|
3606
3779
|
```
|
|
3607
3780
|
### get_period_and_vibration_results
|
|
3608
3781
|
获取自振分析角频率和振型参与质量等结果
|
|
@@ -3611,7 +3784,7 @@ odb.get_cable_element_length(ids=[1,2,3], stage_id=1)
|
|
|
3611
3784
|
# 示例代码
|
|
3612
3785
|
from qtmodel import *
|
|
3613
3786
|
odb.get_period_and_vibration_results()
|
|
3614
|
-
#Returns:
|
|
3787
|
+
#Returns: list[dict]
|
|
3615
3788
|
```
|
|
3616
3789
|
### get_vibration_modal_results
|
|
3617
3790
|
获取自振分析振型向量
|
|
@@ -3621,7 +3794,7 @@ odb.get_period_and_vibration_results()
|
|
|
3621
3794
|
# 示例代码
|
|
3622
3795
|
from qtmodel import *
|
|
3623
3796
|
odb.get_vibration_modal_results(mode=1)
|
|
3624
|
-
#Returns:
|
|
3797
|
+
#Returns: list[dict]
|
|
3625
3798
|
```
|
|
3626
3799
|
### get_buckling_eigenvalue
|
|
3627
3800
|
获取屈曲分析特征值结果
|
|
@@ -3630,7 +3803,7 @@ odb.get_vibration_modal_results(mode=1)
|
|
|
3630
3803
|
# 示例代码
|
|
3631
3804
|
from qtmodel import *
|
|
3632
3805
|
odb.get_buckling_eigenvalue()
|
|
3633
|
-
#Returns:
|
|
3806
|
+
#Returns: list[dict]
|
|
3634
3807
|
```
|
|
3635
3808
|
### get_buckling_modal_results
|
|
3636
3809
|
获取屈曲模态向量
|
|
@@ -3640,7 +3813,7 @@ odb.get_buckling_eigenvalue()
|
|
|
3640
3813
|
# 示例代码
|
|
3641
3814
|
from qtmodel import *
|
|
3642
3815
|
odb.get_buckling_modal_results(mode=1)
|
|
3643
|
-
#Returns:
|
|
3816
|
+
#Returns: list[dict]
|
|
3644
3817
|
```
|
|
3645
3818
|
### get_tendon_loss_results
|
|
3646
3819
|
获取预应力钢束损失
|
|
@@ -3651,7 +3824,7 @@ odb.get_buckling_modal_results(mode=1)
|
|
|
3651
3824
|
# 示例代码
|
|
3652
3825
|
from qtmodel import *
|
|
3653
3826
|
odb.get_tendon_loss_results(name="T1", stage_id=2)
|
|
3654
|
-
#Returns:
|
|
3827
|
+
#Returns: list[dict]
|
|
3655
3828
|
```
|
|
3656
3829
|
### get_tendon_position_result
|
|
3657
3830
|
获取预应力钢束坐标
|
|
@@ -3661,7 +3834,7 @@ odb.get_tendon_loss_results(name="T1", stage_id=2)
|
|
|
3661
3834
|
# 示例代码
|
|
3662
3835
|
from qtmodel import *
|
|
3663
3836
|
odb.get_tendon_position_result(name="T1")
|
|
3664
|
-
#Returns:
|
|
3837
|
+
#Returns: list[dict]
|
|
3665
3838
|
```
|
|
3666
3839
|
### get_tendon_length_result
|
|
3667
3840
|
获取预应力伸长量
|
|
@@ -3670,7 +3843,7 @@ odb.get_tendon_position_result(name="T1")
|
|
|
3670
3843
|
# 示例代码
|
|
3671
3844
|
from qtmodel import *
|
|
3672
3845
|
odb.get_tendon_length_result()
|
|
3673
|
-
#Returns:
|
|
3846
|
+
#Returns: list[dict]
|
|
3674
3847
|
```
|
|
3675
3848
|
## 绘制模型结果
|
|
3676
3849
|
### plot_reaction_result
|
|
@@ -4335,17 +4508,6 @@ from qtmodel import *
|
|
|
4335
4508
|
cdb.add_steel_box_construct_check(sec_id=1, material_id=1)
|
|
4336
4509
|
#Returns:
|
|
4337
4510
|
```
|
|
4338
|
-
### add_steel_box_check
|
|
4339
|
-
add_steel_box_construct_check 的简短别名。
|
|
4340
|
-
> 参数:
|
|
4341
|
-
> sec_id: 钢箱梁截面 ID。
|
|
4342
|
-
> material_id: 钢板材料 ID。
|
|
4343
|
-
```Python
|
|
4344
|
-
# 示例代码
|
|
4345
|
-
from qtmodel import *
|
|
4346
|
-
cdb.add_steel_box_check(sec_id=1, material_id=1)
|
|
4347
|
-
#Returns:
|
|
4348
|
-
```
|
|
4349
4511
|
### add_steel_box_transverse_rib
|
|
4350
4512
|
添加全局横向加劲肋。
|
|
4351
4513
|
> 参数:
|
|
@@ -4419,16 +4581,6 @@ from qtmodel import *
|
|
|
4419
4581
|
cdb.update_steel_box_bot_check(sec_id=1)
|
|
4420
4582
|
#Returns:
|
|
4421
4583
|
```
|
|
4422
|
-
### update_steel_box_bottom_check
|
|
4423
|
-
update_steel_box_bot_check 的别名。
|
|
4424
|
-
> 参数:
|
|
4425
|
-
> **kwargs: 与 update_steel_box_bot_check 完全一致的参数。
|
|
4426
|
-
```Python
|
|
4427
|
-
# 示例代码
|
|
4428
|
-
from qtmodel import *
|
|
4429
|
-
cdb.update_steel_box_bottom_check(...)
|
|
4430
|
-
#Returns:
|
|
4431
|
-
```
|
|
4432
4584
|
### update_steel_box_web_check
|
|
4433
4585
|
更新腹板构造验算参数。
|
|
4434
4586
|
> 参数:
|
|
@@ -4518,16 +4670,6 @@ from qtmodel import *
|
|
|
4518
4670
|
cdb.get_steel_box_bot_check_result(sec_id=1)
|
|
4519
4671
|
#Returns:
|
|
4520
4672
|
```
|
|
4521
|
-
### get_steel_box_bottom_check_result
|
|
4522
|
-
get_steel_box_bot_check_result 的别名。
|
|
4523
|
-
> 参数:
|
|
4524
|
-
> sec_id: 钢箱梁截面 ID。
|
|
4525
|
-
```Python
|
|
4526
|
-
# 示例代码
|
|
4527
|
-
from qtmodel import *
|
|
4528
|
-
cdb.get_steel_box_bottom_check_result(sec_id=1)
|
|
4529
|
-
#Returns:
|
|
4530
|
-
```
|
|
4531
4673
|
### get_steel_box_web_check_result
|
|
4532
4674
|
获取腹板构造验算结果。
|
|
4533
4675
|
> 参数:
|
|
@@ -4596,16 +4738,6 @@ from qtmodel import *
|
|
|
4596
4738
|
cdb.get_steel_box_construct_check_schema()
|
|
4597
4739
|
#Returns:
|
|
4598
4740
|
```
|
|
4599
|
-
### get_steel_box_check_schema
|
|
4600
|
-
get_steel_box_construct_check_schema 的别名。
|
|
4601
|
-
> 参数:
|
|
4602
|
-
> 无。
|
|
4603
|
-
```Python
|
|
4604
|
-
# 示例代码
|
|
4605
|
-
from qtmodel import *
|
|
4606
|
-
cdb.get_steel_box_check_schema()
|
|
4607
|
-
#Returns:
|
|
4608
|
-
```
|
|
4609
4741
|
## steel box stress check
|
|
4610
4742
|
### add_steel_box_stress_check
|
|
4611
4743
|
添加钢箱梁应力验算工况。
|
|
@@ -4620,16 +4752,6 @@ from qtmodel import *
|
|
|
4620
4752
|
cdb.add_steel_box_stress_check(name="应力验算1", structure_group_name="钢箱梁组", material_id=1)
|
|
4621
4753
|
#Returns:
|
|
4622
4754
|
```
|
|
4623
|
-
### add_steel_box_stress_check_case
|
|
4624
|
-
add_steel_box_stress_check 的别名。
|
|
4625
|
-
> 参数:
|
|
4626
|
-
> **kwargs: 与 add_steel_box_stress_check 完全一致的参数。
|
|
4627
|
-
```Python
|
|
4628
|
-
# 示例代码
|
|
4629
|
-
from qtmodel import *
|
|
4630
|
-
cdb.add_steel_box_stress_check_case(...)
|
|
4631
|
-
#Returns:
|
|
4632
|
-
```
|
|
4633
4755
|
### remove_steel_box_stress_check
|
|
4634
4756
|
删除钢箱梁应力验算工况。
|
|
4635
4757
|
> 参数:
|
|
@@ -4640,16 +4762,6 @@ from qtmodel import *
|
|
|
4640
4762
|
cdb.remove_steel_box_stress_check(name="应力验算1")
|
|
4641
4763
|
#Returns:
|
|
4642
4764
|
```
|
|
4643
|
-
### remove_steel_box_stress_check_case
|
|
4644
|
-
remove_steel_box_stress_check 的别名。
|
|
4645
|
-
> 参数:
|
|
4646
|
-
> name: 要删除的应力验算工况名称。
|
|
4647
|
-
```Python
|
|
4648
|
-
# 示例代码
|
|
4649
|
-
from qtmodel import *
|
|
4650
|
-
cdb.remove_steel_box_stress_check_case(name="应力验算1")
|
|
4651
|
-
#Returns:
|
|
4652
|
-
```
|
|
4653
4765
|
### delete_steel_box_stress_check
|
|
4654
4766
|
删除钢箱梁应力验算工况。
|
|
4655
4767
|
> 参数:
|
|
@@ -4660,18 +4772,8 @@ from qtmodel import *
|
|
|
4660
4772
|
cdb.delete_steel_box_stress_check(name="应力验算1")
|
|
4661
4773
|
#Returns:
|
|
4662
4774
|
```
|
|
4663
|
-
### refresh_steel_box_stress_check_default_data
|
|
4664
|
-
从当前模型刷新应力验算默认数据。
|
|
4665
|
-
> 参数:
|
|
4666
|
-
> name: 应力验算工况名称。
|
|
4667
|
-
```Python
|
|
4668
|
-
# 示例代码
|
|
4669
|
-
from qtmodel import *
|
|
4670
|
-
cdb.refresh_steel_box_stress_check_default_data(name="应力验算1")
|
|
4671
|
-
#Returns:
|
|
4672
|
-
```
|
|
4673
4775
|
### import_steel_box_stress_check_default_data
|
|
4674
|
-
|
|
4776
|
+
从当前模型刷新应力验算默认数据。
|
|
4675
4777
|
> 参数:
|
|
4676
4778
|
> name: 应力验算工况名称。
|
|
4677
4779
|
```Python
|
|
@@ -4747,22 +4849,8 @@ from qtmodel import *
|
|
|
4747
4849
|
cdb.update_steel_box_stress_second_system_info(name="应力验算1")
|
|
4748
4850
|
#Returns:
|
|
4749
4851
|
```
|
|
4750
|
-
### update_steel_box_stress_support_infos
|
|
4751
|
-
更新局部支承承压验算输入数据。
|
|
4752
|
-
> 参数:
|
|
4753
|
-
> name: 应力验算工况名称。
|
|
4754
|
-
> support_data: 支承数据二维数组,每行格式为
|
|
4755
|
-
> [node_id, rv, rib_ns, rib_bs, rib_t, rib_b, tw, tf,
|
|
4756
|
-
> a, b, pad_t, as, beb, bev, gama, equality_press_factor, calc_by_user]。
|
|
4757
|
-
> length_unit: support_data 中长度、面积等几何参数的基础长度单位,默认 mm。
|
|
4758
|
-
```Python
|
|
4759
|
-
# 示例代码
|
|
4760
|
-
from qtmodel import *
|
|
4761
|
-
cdb.update_steel_box_stress_support_infos(name="应力验算1", support_data=[[...]])
|
|
4762
|
-
#Returns:
|
|
4763
|
-
```
|
|
4764
4852
|
### update_steel_box_stress_support_info
|
|
4765
|
-
|
|
4853
|
+
更新局部支承承压验算输入数据。
|
|
4766
4854
|
> 参数:
|
|
4767
4855
|
> name: 应力验算工况名称。
|
|
4768
4856
|
> support_data: 支承数据二维数组,格式同 update_steel_box_stress_support_infos。
|
|
@@ -4773,19 +4861,8 @@ from qtmodel import *
|
|
|
4773
4861
|
cdb.update_steel_box_stress_support_info(name="应力验算1", support_data=[[...]])
|
|
4774
4862
|
#Returns:
|
|
4775
4863
|
```
|
|
4776
|
-
### calculate_steel_box_stress_support_infos
|
|
4777
|
-
计算局部支承承压验算结果。
|
|
4778
|
-
> 参数:
|
|
4779
|
-
> name: 应力验算工况名称。
|
|
4780
|
-
> user_define: 是否使用用户自定义输入;0 使用程序默认或模型数据,1 使用用户输入。
|
|
4781
|
-
```Python
|
|
4782
|
-
# 示例代码
|
|
4783
|
-
from qtmodel import *
|
|
4784
|
-
cdb.calculate_steel_box_stress_support_infos(name="应力验算1")
|
|
4785
|
-
#Returns:
|
|
4786
|
-
```
|
|
4787
4864
|
### calc_steel_box_stress_support_infos
|
|
4788
|
-
|
|
4865
|
+
计算局部支承承压验算结果。
|
|
4789
4866
|
> 参数:
|
|
4790
4867
|
> name: 应力验算工况名称。
|
|
4791
4868
|
> user_define: 是否使用用户自定义输入;0 使用程序默认或模型数据,1 使用用户输入。
|
|
@@ -4861,48 +4938,8 @@ from qtmodel import *
|
|
|
4861
4938
|
cdb.import_steel_box_stress_fatigue_point_info(name="应力验算1")
|
|
4862
4939
|
#Returns:
|
|
4863
4940
|
```
|
|
4864
|
-
### calculate_steel_box_stress_normal_result
|
|
4865
|
-
计算正应力强度验算结果。
|
|
4866
|
-
> 参数:
|
|
4867
|
-
> name: 应力验算工况名称。
|
|
4868
|
-
```Python
|
|
4869
|
-
# 示例代码
|
|
4870
|
-
from qtmodel import *
|
|
4871
|
-
cdb.calculate_steel_box_stress_normal_result(name="应力验算1")
|
|
4872
|
-
#Returns:
|
|
4873
|
-
```
|
|
4874
|
-
### calculate_steel_box_stress_shear_result
|
|
4875
|
-
计算剪应力强度验算结果。
|
|
4876
|
-
> 参数:
|
|
4877
|
-
> name: 应力验算工况名称。
|
|
4878
|
-
```Python
|
|
4879
|
-
# 示例代码
|
|
4880
|
-
from qtmodel import *
|
|
4881
|
-
cdb.calculate_steel_box_stress_shear_result(name="应力验算1")
|
|
4882
|
-
#Returns:
|
|
4883
|
-
```
|
|
4884
|
-
### calculate_steel_box_stress_reduced_result
|
|
4885
|
-
计算折减应力验算结果。
|
|
4886
|
-
> 参数:
|
|
4887
|
-
> name: 应力验算工况名称。
|
|
4888
|
-
```Python
|
|
4889
|
-
# 示例代码
|
|
4890
|
-
from qtmodel import *
|
|
4891
|
-
cdb.calculate_steel_box_stress_reduced_result(name="应力验算1")
|
|
4892
|
-
#Returns:
|
|
4893
|
-
```
|
|
4894
|
-
### calculate_steel_box_stress_fatigue_result
|
|
4895
|
-
计算疲劳验算结果。
|
|
4896
|
-
> 参数:
|
|
4897
|
-
> name: 应力验算工况名称。
|
|
4898
|
-
```Python
|
|
4899
|
-
# 示例代码
|
|
4900
|
-
from qtmodel import *
|
|
4901
|
-
cdb.calculate_steel_box_stress_fatigue_result(name="应力验算1")
|
|
4902
|
-
#Returns:
|
|
4903
|
-
```
|
|
4904
4941
|
### calc_steel_box_stress_normal_result
|
|
4905
|
-
|
|
4942
|
+
计算正应力强度验算结果。
|
|
4906
4943
|
> 参数:
|
|
4907
4944
|
> name: 应力验算工况名称。
|
|
4908
4945
|
```Python
|
|
@@ -4912,7 +4949,7 @@ cdb.calc_steel_box_stress_normal_result(name="应力验算1")
|
|
|
4912
4949
|
#Returns:
|
|
4913
4950
|
```
|
|
4914
4951
|
### calc_steel_box_stress_shear_result
|
|
4915
|
-
|
|
4952
|
+
计算剪应力强度验算结果。
|
|
4916
4953
|
> 参数:
|
|
4917
4954
|
> name: 应力验算工况名称。
|
|
4918
4955
|
```Python
|
|
@@ -4922,7 +4959,7 @@ cdb.calc_steel_box_stress_shear_result(name="应力验算1")
|
|
|
4922
4959
|
#Returns:
|
|
4923
4960
|
```
|
|
4924
4961
|
### calc_steel_box_stress_reduced_result
|
|
4925
|
-
|
|
4962
|
+
计算折减应力验算结果。
|
|
4926
4963
|
> 参数:
|
|
4927
4964
|
> name: 应力验算工况名称。
|
|
4928
4965
|
```Python
|
|
@@ -4932,7 +4969,7 @@ cdb.calc_steel_box_stress_reduced_result(name="应力验算1")
|
|
|
4932
4969
|
#Returns:
|
|
4933
4970
|
```
|
|
4934
4971
|
### calc_steel_box_stress_fatigue_result
|
|
4935
|
-
|
|
4972
|
+
钢箱梁应力检算疲劳结果获取
|
|
4936
4973
|
> 参数:
|
|
4937
4974
|
> name: 应力验算工况名称。
|
|
4938
4975
|
```Python
|