qtmodel 0.9.5__tar.gz → 0.9.7__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.9.5
4
- Summary: python modeling for qt 2025-07-04
3
+ Version: 0.9.7
4
+ Summary: python modeling for qt 2025-07-14
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.9.5 - 2025-07-04
15
+ > 最新版本 V0.9.7 - 2025-07-14
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3071,6 +3071,8 @@ Returns: 无
3071
3071
  > _时间 0-开始 1-结束
3072
3072
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3073
3073
  > index:施工阶段插入位置,从0开始,默认添加到最后
3074
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3075
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3074
3076
  ```Python
3075
3077
  # 示例代码
3076
3078
  from qtmodel import *
@@ -3096,6 +3098,8 @@ Returns: 无
3096
3098
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3097
3099
  > _时间 0-开始 1-结束
3098
3100
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3101
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3102
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3099
3103
  ```Python
3100
3104
  # 示例代码
3101
3105
  from qtmodel import *
@@ -3200,6 +3204,23 @@ from qtmodel import *
3200
3204
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3201
3205
  ```
3202
3206
  Returns:无
3207
+ ### merge_all_stages
3208
+ 合并当前所有施工阶段
3209
+ > 参数:
3210
+ > name: 阶段名称
3211
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3212
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3213
+ > age: 加载龄期,默认为5
3214
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3215
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3216
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3217
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3218
+ ```Python
3219
+ # 示例代码
3220
+ from qtmodel import *
3221
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3222
+ ```
3223
+ Returns: 无
3203
3224
  ## 荷载组合操作
3204
3225
  ### add_load_combine
3205
3226
  添加荷载组合
@@ -3232,11 +3253,11 @@ Returns: 无
3232
3253
  ### display_info
3233
3254
  显示字典并打印
3234
3255
  > 参数:
3235
- > dict_info:是否打开节点号显示
3256
+ > dict_info:需要传输的数据
3236
3257
  ```Python
3237
3258
  # 示例代码
3238
3259
  from qtmodel import *
3239
- odb.display_info(Node(1,1,2,3))
3260
+ odb.display_info(Node(1,1,2,3).__str__())
3240
3261
  ```
3241
3262
  Returns: 无
3242
3263
  ## 视图控制
@@ -3548,7 +3569,7 @@ Returns:list[dict]包含该模态下屈曲模态向量列表
3548
3569
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3549
3570
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3550
3571
  > show_increment: 是否显示增量结果
3551
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3572
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3552
3573
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Fxyz 5-Mx 6-My 7-Mz 8-Mxyz
3553
3574
  > show_number: 数值选项卡开启
3554
3575
  > show_legend: 图例选项卡开启
@@ -3573,7 +3594,7 @@ Returns: 无
3573
3594
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3574
3595
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3575
3596
  > show_increment: 是否显示增量结果
3576
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3597
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3577
3598
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3578
3599
  > show_deformed: 变形选项卡开启
3579
3600
  > deformed_scale:变形比例
@@ -3602,7 +3623,7 @@ Returns: 无
3602
3623
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3603
3624
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3604
3625
  > show_increment: 是否显示增量结果
3605
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3626
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3606
3627
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3607
3628
  > show_line_chart: 折线图选项卡开启
3608
3629
  > line_scale:折线图比例
@@ -3634,7 +3655,7 @@ Returns: 无
3634
3655
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3635
3656
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3636
3657
  > show_increment: 是否显示增量结果
3637
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3658
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3638
3659
  > component: 分量编号 0-N 1-Fx 2-Fy 3-Fz
3639
3660
  > show_line_chart: 折线图选项卡开启
3640
3661
  > line_scale:折线图比例
@@ -3667,7 +3688,7 @@ Returns: 无
3667
3688
  > force_kind: 内力选项 1-单元 2-节点平均
3668
3689
  > case_name: 详细荷载工况名
3669
3690
  > stage_id: 阶段编号
3670
- > envelope_type: 包络类型
3691
+ > envelop_type: 包络类型
3671
3692
  > show_number: 是否显示数值
3672
3693
  > show_deformed: 是否显示变形形状
3673
3694
  > show_undeformed: 是否显示未变形形状
@@ -3695,7 +3716,7 @@ Returns: 无
3695
3716
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3696
3717
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3697
3718
  > show_increment: 是否显示增量结果
3698
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3719
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3699
3720
  > mat_type: 材料类型 1-主材 2-辅材 3-主材+辅材
3700
3721
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Mx 5-My 6-Mz
3701
3722
  > show_line_chart: 折线图选项卡开启
@@ -3725,7 +3746,7 @@ Returns: 无
3725
3746
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3726
3747
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3727
3748
  > show_increment: 是否显示增量结果
3728
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3749
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3729
3750
  > component: 分量编号 1-轴力 2-Mzx 3-My 4-组合包络 5-左上 6-右上 7-右下 8-左下
3730
3751
  > show_line_chart: 折线图选项卡开启
3731
3752
  > line_scale:折线图比例
@@ -3754,7 +3775,7 @@ Returns: 无
3754
3775
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3755
3776
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3756
3777
  > show_increment: 是否显示增量结果
3757
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3778
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3758
3779
  > show_line_chart: 折线图选项卡开启
3759
3780
  > line_scale:折线图比例
3760
3781
  > flip_plot:反向绘制
@@ -3782,7 +3803,7 @@ Returns: 无
3782
3803
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3783
3804
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3784
3805
  > show_increment: 是否显示增量结果
3785
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3806
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3786
3807
  > mat_type: 材料类型 1-主材 2-辅材
3787
3808
  > component: 分量编号 1-轴力分量 2-Mz分量 3-My分量 4-包络 5-左上 6-右上 7-左下 8-右下
3788
3809
  > show_line_chart: 折线图选项卡开启
@@ -3813,7 +3834,7 @@ Returns: 无
3813
3834
  > stress_kind: 力类型 1-单元 2-节点平均
3814
3835
  > case_name: 详细荷载工况名
3815
3836
  > stage_id: 阶段编号
3816
- > envelope_type: 包络类型
3837
+ > envelop_type: 包络类型
3817
3838
  > show_number: 是否显示数值
3818
3839
  > show_deformed: 是否显示变形形状
3819
3840
  > show_undeformed: 是否显示未变形形状
@@ -1,4 +1,4 @@
1
- > 最新版本 V0.9.5 - 2025-07-04
1
+ > 最新版本 V0.9.7 - 2025-07-14
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 新增更新结构组接口
4
4
  # 建模操作
@@ -3057,6 +3057,8 @@ Returns: 无
3057
3057
  > _时间 0-开始 1-结束
3058
3058
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3059
3059
  > index:施工阶段插入位置,从0开始,默认添加到最后
3060
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3061
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3060
3062
  ```Python
3061
3063
  # 示例代码
3062
3064
  from qtmodel import *
@@ -3082,6 +3084,8 @@ Returns: 无
3082
3084
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3083
3085
  > _时间 0-开始 1-结束
3084
3086
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3087
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3088
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3085
3089
  ```Python
3086
3090
  # 示例代码
3087
3091
  from qtmodel import *
@@ -3186,6 +3190,23 @@ from qtmodel import *
3186
3190
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3187
3191
  ```
3188
3192
  Returns:无
3193
+ ### merge_all_stages
3194
+ 合并当前所有施工阶段
3195
+ > 参数:
3196
+ > name: 阶段名称
3197
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3198
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3199
+ > age: 加载龄期,默认为5
3200
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3201
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3202
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3203
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3204
+ ```Python
3205
+ # 示例代码
3206
+ from qtmodel import *
3207
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3208
+ ```
3209
+ Returns: 无
3189
3210
  ## 荷载组合操作
3190
3211
  ### add_load_combine
3191
3212
  添加荷载组合
@@ -3218,11 +3239,11 @@ Returns: 无
3218
3239
  ### display_info
3219
3240
  显示字典并打印
3220
3241
  > 参数:
3221
- > dict_info:是否打开节点号显示
3242
+ > dict_info:需要传输的数据
3222
3243
  ```Python
3223
3244
  # 示例代码
3224
3245
  from qtmodel import *
3225
- odb.display_info(Node(1,1,2,3))
3246
+ odb.display_info(Node(1,1,2,3).__str__())
3226
3247
  ```
3227
3248
  Returns: 无
3228
3249
  ## 视图控制
@@ -3534,7 +3555,7 @@ Returns:list[dict]包含该模态下屈曲模态向量列表
3534
3555
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3535
3556
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3536
3557
  > show_increment: 是否显示增量结果
3537
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3558
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3538
3559
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Fxyz 5-Mx 6-My 7-Mz 8-Mxyz
3539
3560
  > show_number: 数值选项卡开启
3540
3561
  > show_legend: 图例选项卡开启
@@ -3559,7 +3580,7 @@ Returns: 无
3559
3580
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3560
3581
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3561
3582
  > show_increment: 是否显示增量结果
3562
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3583
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3563
3584
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3564
3585
  > show_deformed: 变形选项卡开启
3565
3586
  > deformed_scale:变形比例
@@ -3588,7 +3609,7 @@ Returns: 无
3588
3609
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3589
3610
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3590
3611
  > show_increment: 是否显示增量结果
3591
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3612
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3592
3613
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3593
3614
  > show_line_chart: 折线图选项卡开启
3594
3615
  > line_scale:折线图比例
@@ -3620,7 +3641,7 @@ Returns: 无
3620
3641
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3621
3642
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3622
3643
  > show_increment: 是否显示增量结果
3623
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3644
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3624
3645
  > component: 分量编号 0-N 1-Fx 2-Fy 3-Fz
3625
3646
  > show_line_chart: 折线图选项卡开启
3626
3647
  > line_scale:折线图比例
@@ -3653,7 +3674,7 @@ Returns: 无
3653
3674
  > force_kind: 内力选项 1-单元 2-节点平均
3654
3675
  > case_name: 详细荷载工况名
3655
3676
  > stage_id: 阶段编号
3656
- > envelope_type: 包络类型
3677
+ > envelop_type: 包络类型
3657
3678
  > show_number: 是否显示数值
3658
3679
  > show_deformed: 是否显示变形形状
3659
3680
  > show_undeformed: 是否显示未变形形状
@@ -3681,7 +3702,7 @@ Returns: 无
3681
3702
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3682
3703
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3683
3704
  > show_increment: 是否显示增量结果
3684
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3705
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3685
3706
  > mat_type: 材料类型 1-主材 2-辅材 3-主材+辅材
3686
3707
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Mx 5-My 6-Mz
3687
3708
  > show_line_chart: 折线图选项卡开启
@@ -3711,7 +3732,7 @@ Returns: 无
3711
3732
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3712
3733
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3713
3734
  > show_increment: 是否显示增量结果
3714
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3735
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3715
3736
  > component: 分量编号 1-轴力 2-Mzx 3-My 4-组合包络 5-左上 6-右上 7-右下 8-左下
3716
3737
  > show_line_chart: 折线图选项卡开启
3717
3738
  > line_scale:折线图比例
@@ -3740,7 +3761,7 @@ Returns: 无
3740
3761
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3741
3762
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3742
3763
  > show_increment: 是否显示增量结果
3743
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3764
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3744
3765
  > show_line_chart: 折线图选项卡开启
3745
3766
  > line_scale:折线图比例
3746
3767
  > flip_plot:反向绘制
@@ -3768,7 +3789,7 @@ Returns: 无
3768
3789
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3769
3790
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3770
3791
  > show_increment: 是否显示增量结果
3771
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3792
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3772
3793
  > mat_type: 材料类型 1-主材 2-辅材
3773
3794
  > component: 分量编号 1-轴力分量 2-Mz分量 3-My分量 4-包络 5-左上 6-右上 7-左下 8-右下
3774
3795
  > show_line_chart: 折线图选项卡开启
@@ -3799,7 +3820,7 @@ Returns: 无
3799
3820
  > stress_kind: 力类型 1-单元 2-节点平均
3800
3821
  > case_name: 详细荷载工况名
3801
3822
  > stage_id: 阶段编号
3802
- > envelope_type: 包络类型
3823
+ > envelop_type: 包络类型
3803
3824
  > show_number: 是否显示数值
3804
3825
  > show_deformed: 是否显示变形形状
3805
3826
  > show_undeformed: 是否显示未变形形状
@@ -242,7 +242,7 @@ class Mdb:
242
242
  """
243
243
  try:
244
244
  qt_model.UpdateProjectSetting(project=project, company=company, designer=designer, reviewer=reviewer,
245
- dateTime=date_time, gravity=gravity, temperature=temperature, description=description)
245
+ dateTime=date_time, gravity=gravity, temperature=temperature, description=description)
246
246
  except Exception as ex:
247
247
  raise Exception(ex)
248
248
 
@@ -4864,7 +4864,9 @@ class Mdb:
4864
4864
  delete_boundaries: list[str] = None,
4865
4865
  active_loads: list[tuple[str, int]] = None,
4866
4866
  delete_loads: list[tuple[str, int]] = None,
4867
- temp_loads: list[str] = None, index=-1):
4867
+ temp_loads: list[str] = None, index=-1,
4868
+ tendon_cancel_loss: float = 0,
4869
+ constraint_cancel_type: int = 2):
4868
4870
  """
4869
4871
  添加施工阶段信息
4870
4872
  Args:
@@ -4883,6 +4885,8 @@ class Mdb:
4883
4885
  _时间 0-开始 1-结束
4884
4886
  temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
4885
4887
  index:施工阶段插入位置,从0开始,默认添加到最后
4888
+ tendon_cancel_loss:钝化预应力单元后预应力损失
4889
+ constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
4886
4890
  Example:
4887
4891
  mdb.add_construction_stage(name="施工阶段1",duration=5,active_structures=[("结构组1",5,1,1),("结构组2",5,1,1)],
4888
4892
  active_boundaries=[("默认边界组",1)],active_loads=[("默认荷载组1",0)])
@@ -4891,7 +4895,8 @@ class Mdb:
4891
4895
  try:
4892
4896
  qt_model.AddConstructionStage(name=name, duration=duration, activeStructures=active_structures, inActiveStructures=delete_structures,
4893
4897
  activeBoundaries=active_boundaries, inActiveBoundaries=delete_boundaries, activeLoads=active_loads,
4894
- inActiveLoads=delete_loads, tempLoads=temp_loads, id=index)
4898
+ inActiveLoads=delete_loads, tempLoads=temp_loads, id=index,
4899
+ tendonCancelLoss=tendon_cancel_loss, constrainCancelType=constraint_cancel_type)
4895
4900
  except Exception as ex:
4896
4901
  raise Exception(f"添加施工阶段:{name}错误,{ex}")
4897
4902
 
@@ -4903,7 +4908,9 @@ class Mdb:
4903
4908
  delete_boundaries: list[str] = None,
4904
4909
  active_loads: list[tuple[str, int]] = None,
4905
4910
  delete_loads: list[tuple[str, int]] = None,
4906
- temp_loads: list[str] = None):
4911
+ temp_loads: list[str] = None,
4912
+ tendon_cancel_loss: float = 0,
4913
+ constraint_cancel_type: int = 2):
4907
4914
  """
4908
4915
  添加施工阶段信息
4909
4916
  Args:
@@ -4922,6 +4929,8 @@ class Mdb:
4922
4929
  delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
4923
4930
  _时间 0-开始 1-结束
4924
4931
  temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
4932
+ tendon_cancel_loss:钝化预应力单元后预应力损失
4933
+ constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
4925
4934
  Example:
4926
4935
  mdb.update_construction_stage(name="施工阶段1",duration=5,active_structures=[("结构组1",5,1,1),("结构组2",5,1,1)],
4927
4936
  active_boundaries=[("默认边界组",1)],active_loads=[("默认荷载组1",0)])
@@ -4931,7 +4940,8 @@ class Mdb:
4931
4940
  qt_model.UpdateConstructionStage(name=name, newName=new_name, duration=duration, activeStructures=active_structures,
4932
4941
  inActiveStructures=delete_structures,
4933
4942
  activeBoundaries=active_boundaries, inActiveBoundaries=delete_boundaries, activeLoads=active_loads,
4934
- inActiveLoads=delete_loads, tempLoads=temp_loads)
4943
+ inActiveLoads=delete_loads, tempLoads=temp_loads,
4944
+ tendonCancelLoss=tendon_cancel_loss, constrainCancelType=constraint_cancel_type)
4935
4945
  except Exception as ex:
4936
4946
  raise Exception(f"更新施工阶段:{name}错误,{ex}")
4937
4947
 
@@ -5078,6 +5088,39 @@ class Mdb:
5078
5088
  except Exception as ex:
5079
5089
  raise Exception(f"添加单元到施工阶段联合截面失败:{name}错误,{ex}")
5080
5090
 
5091
+ @staticmethod
5092
+ def merge_all_stages(name: str = "一次成桥", setting_type: int = 1, weight_type: int = 1, age: float = 5,
5093
+ boundary_type: int = 0, load_type: int = 0, tendon_cancel_loss: float = 0,
5094
+ constraint_cancel_type: int = 1) -> None:
5095
+ """
5096
+ 合并当前所有施工阶段
5097
+ Args:
5098
+ name: 阶段名称
5099
+ setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
5100
+ weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
5101
+ age: 加载龄期,默认为5
5102
+ boundary_type: 边界类型 0-变形前 1-变形后,默认为0
5103
+ load_type: 荷载类型 0-开始 1-结束,默认为0
5104
+ tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
5105
+ constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
5106
+ Example:
5107
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
5108
+ Returns: 无
5109
+ """
5110
+ try:
5111
+ qt_model.MergeAllStages(
5112
+ name=name,
5113
+ settingType=setting_type,
5114
+ weightType=weight_type,
5115
+ age=age,
5116
+ boundaryType=boundary_type,
5117
+ loadType=load_type,
5118
+ tendonCancelLoss=tendon_cancel_loss,
5119
+ constraintCancelType=constraint_cancel_type
5120
+ )
5121
+ except Exception as ex:
5122
+ raise Exception(ex)
5123
+
5081
5124
  # endregion
5082
5125
 
5083
5126
  # region 荷载组合操作
@@ -14,9 +14,9 @@ class Odb:
14
14
  """
15
15
  显示字典并打印
16
16
  Args:
17
- dict_info:是否打开节点号显示
17
+ dict_info:需要传输的数据
18
18
  Example:
19
- odb.display_info(Node(1,1,2,3))
19
+ odb.display_info(Node(1,1,2,3).__str__())
20
20
  Returns: 无
21
21
  """
22
22
  print(json.dumps(dict_info))
@@ -189,7 +189,7 @@ class Odb:
189
189
  # region 结果表格
190
190
  @staticmethod
191
191
  def get_reaction(ids, envelop_type=1, stage_id: int = 1, result_kind: int = 1,
192
- increment_type: int = 1, case_name="", is_time_history: bool = True):
192
+ increment_type: int = 1, case_name="", is_time_history: bool = False):
193
193
  """
194
194
  获取节点反力
195
195
  Args:
@@ -221,7 +221,7 @@ class Odb:
221
221
  @staticmethod
222
222
  def get_deformation(ids, envelop_type=1,
223
223
  stage_id: int = 1, result_kind: int = 1, increment_type: int = 1,
224
- case_name="", is_time_history: bool = True):
224
+ case_name="", is_time_history: bool = False):
225
225
  """
226
226
  获取节点变形结果,支持单个节点和节点列表
227
227
  Args:
@@ -331,7 +331,7 @@ class Odb:
331
331
  Returns: 包含信息为list[dict] or dict
332
332
  """
333
333
  try:
334
- bf_list = qt_model.GetElementForce(ids=ids, stageId=stage_id, envelopeType=envelop_type,
334
+ bf_list = qt_model.GetElementForce(ids=ids, stageId=stage_id, envelopType=envelop_type,
335
335
  resultKind=result_kind, increamentType=increment_type, caseName=case_name,
336
336
  isTimeHistory=is_time_history, isBoundaryElement=is_boundary_element)
337
337
  list_res = []
@@ -616,10 +616,10 @@ class Odb:
616
616
  # region 绘制模型结果
617
617
  @staticmethod
618
618
  def plot_reaction_result(file_path: str, stage_id: int = 1, case_name: str = "", show_increment: bool = False,
619
- envelope_type: int = 1, component: int = 1,
619
+ envelop_type: int = 1, component: int = 1,
620
620
  show_number: bool = True, text_rotation=0, max_min_kind: int = -1,
621
621
  show_legend: bool = True, digital_count=3, text_exponential: bool = True, arrow_scale: float = 1,
622
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
622
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
623
623
  """
624
624
  保存结果图片到指定文件甲
625
625
  Args:
@@ -627,7 +627,7 @@ class Odb:
627
627
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
628
628
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
629
629
  show_increment: 是否显示增量结果
630
- envelope_type: 施工阶段包络类型 1-最大 2-最小
630
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
631
631
  component: 分量编号 1-Fx 2-Fy 3-Fz 4-Fxyz 5-Mx 6-My 7-Mz 8-Mxyz
632
632
  show_number: 数值选项卡开启
633
633
  show_legend: 图例选项卡开启
@@ -645,7 +645,7 @@ class Odb:
645
645
  """
646
646
  try:
647
647
  qt_model.PlotReactionResult(filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
648
- envelopeType=envelope_type, component=component,
648
+ envelopType=envelop_type, component=component,
649
649
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
650
650
  showLegend=show_legend, digitalCount=digital_count,
651
651
  textExponential=text_exponential, arrowScale=arrow_scale,
@@ -655,11 +655,11 @@ class Odb:
655
655
 
656
656
  @staticmethod
657
657
  def plot_displacement_result(file_path: str, stage_id: int = 1, case_name: str = "", show_increment: bool = False,
658
- envelope_type: int = 1, component: int = 1,
658
+ envelop_type: int = 1, component: int = 1,
659
659
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
660
660
  show_number: bool = True, text_rotation=0, max_min_kind: int = 1,
661
661
  show_legend: bool = True, digital_count=3, text_exponential: bool = True, show_undeformed: bool = True,
662
- is_time_history: bool = True, deform_kind: int = 1, time_kind: int = 1, time_tick: float = 1.0):
662
+ is_time_history: bool = False, deform_kind: int = 1, time_kind: int = 1, time_tick: float = 1.0):
663
663
  """
664
664
  保存结果图片到指定文件甲
665
665
  Args:
@@ -667,7 +667,7 @@ class Odb:
667
667
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
668
668
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
669
669
  show_increment: 是否显示增量结果
670
- envelope_type: 施工阶段包络类型 1-最大 2-最小
670
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
671
671
  component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
672
672
  show_deformed: 变形选项卡开启
673
673
  deformed_scale:变形比例
@@ -689,7 +689,7 @@ class Odb:
689
689
  """
690
690
  try:
691
691
  qt_model.PlotDisplacementResult(filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
692
- envelopeType=envelope_type, component=component,
692
+ envelopType=envelop_type, component=component,
693
693
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
694
694
  showNumber=show_number, textRotate=text_rotation, digitalCount=digital_count,
695
695
  textExponential=text_exponential, maxMinKind=max_min_kind,
@@ -700,13 +700,13 @@ class Odb:
700
700
 
701
701
  @staticmethod
702
702
  def plot_beam_element_force(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
703
- envelope_type: int = 1, component: int = 1,
703
+ envelop_type: int = 1, component: int = 1,
704
704
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
705
705
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
706
706
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
707
707
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
708
708
  show_undeformed: bool = False, position: int = 1,
709
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
709
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
710
710
  """
711
711
  绘制梁单元结果图并保存到指定文件
712
712
  Args:
@@ -714,7 +714,7 @@ class Odb:
714
714
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
715
715
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
716
716
  show_increment: 是否显示增量结果
717
- envelope_type: 施工阶段包络类型 1-最大 2-最小
717
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
718
718
  component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
719
719
  show_line_chart: 折线图选项卡开启
720
720
  line_scale:折线图比例
@@ -740,7 +740,7 @@ class Odb:
740
740
  try:
741
741
  qt_model.PlotBeamElementForce(
742
742
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
743
- envelopeType=envelope_type, component=component,
743
+ envelopType=envelop_type, component=component,
744
744
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
745
745
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
746
746
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -752,13 +752,13 @@ class Odb:
752
752
 
753
753
  @staticmethod
754
754
  def plot_truss_element_force(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
755
- envelope_type: int = 1, component: int = 1,
755
+ envelop_type: int = 1, component: int = 1,
756
756
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
757
757
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
758
758
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
759
759
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
760
760
  show_undeformed: bool = False, position: int = 1,
761
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
761
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
762
762
  """
763
763
  绘制杆单元结果图并保存到指定文件
764
764
  Args:
@@ -766,7 +766,7 @@ class Odb:
766
766
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
767
767
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
768
768
  show_increment: 是否显示增量结果
769
- envelope_type: 施工阶段包络类型 1-最大 2-最小
769
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
770
770
  component: 分量编号 0-N 1-Fx 2-Fy 3-Fz
771
771
  show_line_chart: 折线图选项卡开启
772
772
  line_scale:折线图比例
@@ -792,7 +792,7 @@ class Odb:
792
792
  try:
793
793
  qt_model.PlotTrussElementForce(
794
794
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
795
- envelopeType=envelope_type, component=component,
795
+ envelopType=envelop_type, component=component,
796
796
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
797
797
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
798
798
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -804,11 +804,11 @@ class Odb:
804
804
 
805
805
  @staticmethod
806
806
  def plot_plate_element_force(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
807
- envelope_type: int = 1, force_kind: int = 1, component: int = 1,
807
+ envelop_type: int = 1, force_kind: int = 1, component: int = 1,
808
808
  show_number: bool = False, text_rotate: int = 0, max_min_kind: int = 1,
809
809
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
810
810
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
811
- show_undeformed: bool = False, is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
811
+ show_undeformed: bool = False, is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
812
812
  """
813
813
  绘制板单元结果图并保存到指定文件
814
814
  Args:
@@ -817,7 +817,7 @@ class Odb:
817
817
  force_kind: 内力选项 1-单元 2-节点平均
818
818
  case_name: 详细荷载工况名
819
819
  stage_id: 阶段编号
820
- envelope_type: 包络类型
820
+ envelop_type: 包络类型
821
821
  show_number: 是否显示数值
822
822
  show_deformed: 是否显示变形形状
823
823
  show_undeformed: 是否显示未变形形状
@@ -839,7 +839,7 @@ class Odb:
839
839
  try:
840
840
  qt_model.PlotPlateElementForce(
841
841
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
842
- envelopeType=envelope_type, forceKind=force_kind, component=component,
842
+ envelopType=envelop_type, forceKind=force_kind, component=component,
843
843
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
844
844
  showNumber=show_number, textRotate=text_rotate, maxMinKind=max_min_kind,
845
845
  showLegend=show_legend, digitalCount=digital_count, textExponential=text_exponential,
@@ -849,7 +849,7 @@ class Odb:
849
849
 
850
850
  @staticmethod
851
851
  def plot_composite_beam_force(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
852
- envelope_type: int = 1, mat_type: int = 1, component: int = 1,
852
+ envelop_type: int = 1, mat_type: int = 1, component: int = 1,
853
853
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
854
854
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
855
855
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
@@ -862,7 +862,7 @@ class Odb:
862
862
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
863
863
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
864
864
  show_increment: 是否显示增量结果
865
- envelope_type: 施工阶段包络类型 1-最大 2-最小
865
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
866
866
  mat_type: 材料类型 1-主材 2-辅材 3-主材+辅材
867
867
  component: 分量编号 1-Fx 2-Fy 3-Fz 4-Mx 5-My 6-Mz
868
868
  show_line_chart: 折线图选项卡开启
@@ -886,7 +886,7 @@ class Odb:
886
886
  try:
887
887
  qt_model.PlotCompositeBeamForce(
888
888
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
889
- envelopeType=envelope_type, matType=mat_type, component=component,
889
+ envelopType=envelop_type, matType=mat_type, component=component,
890
890
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
891
891
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
892
892
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -897,7 +897,7 @@ class Odb:
897
897
 
898
898
  @staticmethod
899
899
  def plot_beam_element_stress(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
900
- envelope_type: int = 1, component: int = 1,
900
+ envelop_type: int = 1, component: int = 1,
901
901
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
902
902
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
903
903
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
@@ -910,7 +910,7 @@ class Odb:
910
910
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
911
911
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
912
912
  show_increment: 是否显示增量结果
913
- envelope_type: 施工阶段包络类型 1-最大 2-最小
913
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
914
914
  component: 分量编号 1-轴力 2-Mzx 3-My 4-组合包络 5-左上 6-右上 7-右下 8-左下
915
915
  show_line_chart: 折线图选项卡开启
916
916
  line_scale:折线图比例
@@ -933,7 +933,7 @@ class Odb:
933
933
  try:
934
934
  qt_model.PlotBeamElementStress(
935
935
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
936
- envelopeType=envelope_type, component=component,
936
+ envelopType=envelop_type, component=component,
937
937
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
938
938
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
939
939
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -943,7 +943,7 @@ class Odb:
943
943
  raise Exception(ex)
944
944
 
945
945
  @staticmethod
946
- def plot_truss_element_stress(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False, envelope_type: int = 1,
946
+ def plot_truss_element_stress(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False, envelop_type: int = 1,
947
947
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
948
948
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
949
949
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
@@ -956,7 +956,7 @@ class Odb:
956
956
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
957
957
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
958
958
  show_increment: 是否显示增量结果
959
- envelope_type: 施工阶段包络类型 1-最大 2-最小
959
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
960
960
  show_line_chart: 折线图选项卡开启
961
961
  line_scale:折线图比例
962
962
  flip_plot:反向绘制
@@ -977,7 +977,7 @@ class Odb:
977
977
  """
978
978
  try:
979
979
  qt_model.PlotTrussElementStress(
980
- filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment, envelopeType=envelope_type,
980
+ filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment, envelopType=envelop_type,
981
981
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
982
982
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
983
983
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -988,7 +988,7 @@ class Odb:
988
988
 
989
989
  @staticmethod
990
990
  def plot_composite_beam_stress(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
991
- envelope_type: int = 1, mat_type: int = 0, component: int = 1,
991
+ envelop_type: int = 1, mat_type: int = 0, component: int = 1,
992
992
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
993
993
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
994
994
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
@@ -1001,7 +1001,7 @@ class Odb:
1001
1001
  stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
1002
1002
  case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
1003
1003
  show_increment: 是否显示增量结果
1004
- envelope_type: 施工阶段包络类型 1-最大 2-最小
1004
+ envelop_type: 施工阶段包络类型 1-最大 2-最小
1005
1005
  mat_type: 材料类型 1-主材 2-辅材
1006
1006
  component: 分量编号 1-轴力分量 2-Mz分量 3-My分量 4-包络 5-左上 6-右上 7-左下 8-右下
1007
1007
  show_line_chart: 折线图选项卡开启
@@ -1025,7 +1025,7 @@ class Odb:
1025
1025
  try:
1026
1026
  qt_model.PlotCompositeBeamStress(
1027
1027
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
1028
- envelopeType=envelope_type, matType=mat_type, component=component,
1028
+ envelopType=envelop_type, matType=mat_type, component=component,
1029
1029
  showLineChart=show_line_chart, lineScale=line_scale, flipPlot=flip_plot,
1030
1030
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
1031
1031
  showNumber=show_number, textRotate=text_rotation, maxMinKind=max_min_kind,
@@ -1036,7 +1036,7 @@ class Odb:
1036
1036
 
1037
1037
  @staticmethod
1038
1038
  def plot_plate_element_stress(file_path: str, stage_id: int = 1, case_name: str = "合计", show_increment: bool = False,
1039
- envelope_type: int = 1, stress_kind: int = 0, component: int = 1,
1039
+ envelop_type: int = 1, stress_kind: int = 0, component: int = 1,
1040
1040
  show_number: bool = False, text_rotate: int = 0, max_min_kind: int = 1,
1041
1041
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
1042
1042
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
@@ -1049,7 +1049,7 @@ class Odb:
1049
1049
  stress_kind: 力类型 1-单元 2-节点平均
1050
1050
  case_name: 详细荷载工况名
1051
1051
  stage_id: 阶段编号
1052
- envelope_type: 包络类型
1052
+ envelop_type: 包络类型
1053
1053
  show_number: 是否显示数值
1054
1054
  show_deformed: 是否显示变形形状
1055
1055
  show_undeformed: 是否显示未变形形状
@@ -1069,7 +1069,7 @@ class Odb:
1069
1069
  try:
1070
1070
  qt_model.PlotPlateElementStress(
1071
1071
  filePath=file_path, stageId=stage_id, caseName=case_name, showIncrement=show_increment,
1072
- envelopeType=envelope_type, stressKind=stress_kind, component=component,
1072
+ envelopType=envelop_type, stressKind=stress_kind, component=component,
1073
1073
  showDeformed=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
1074
1074
  showNumber=show_number, textRotate=text_rotate, maxMinKind=max_min_kind,
1075
1075
  showLegend=show_legend, digitalCount=digital_count, textExponential=text_exponential,
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.9.5
4
- Summary: python modeling for qt 2025-07-04
3
+ Version: 0.9.7
4
+ Summary: python modeling for qt 2025-07-14
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.9.5 - 2025-07-04
15
+ > 最新版本 V0.9.7 - 2025-07-14
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3071,6 +3071,8 @@ Returns: 无
3071
3071
  > _时间 0-开始 1-结束
3072
3072
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3073
3073
  > index:施工阶段插入位置,从0开始,默认添加到最后
3074
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3075
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3074
3076
  ```Python
3075
3077
  # 示例代码
3076
3078
  from qtmodel import *
@@ -3096,6 +3098,8 @@ Returns: 无
3096
3098
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3097
3099
  > _时间 0-开始 1-结束
3098
3100
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3101
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3102
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3099
3103
  ```Python
3100
3104
  # 示例代码
3101
3105
  from qtmodel import *
@@ -3200,6 +3204,23 @@ from qtmodel import *
3200
3204
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3201
3205
  ```
3202
3206
  Returns:无
3207
+ ### merge_all_stages
3208
+ 合并当前所有施工阶段
3209
+ > 参数:
3210
+ > name: 阶段名称
3211
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3212
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3213
+ > age: 加载龄期,默认为5
3214
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3215
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3216
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3217
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3218
+ ```Python
3219
+ # 示例代码
3220
+ from qtmodel import *
3221
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3222
+ ```
3223
+ Returns: 无
3203
3224
  ## 荷载组合操作
3204
3225
  ### add_load_combine
3205
3226
  添加荷载组合
@@ -3232,11 +3253,11 @@ Returns: 无
3232
3253
  ### display_info
3233
3254
  显示字典并打印
3234
3255
  > 参数:
3235
- > dict_info:是否打开节点号显示
3256
+ > dict_info:需要传输的数据
3236
3257
  ```Python
3237
3258
  # 示例代码
3238
3259
  from qtmodel import *
3239
- odb.display_info(Node(1,1,2,3))
3260
+ odb.display_info(Node(1,1,2,3).__str__())
3240
3261
  ```
3241
3262
  Returns: 无
3242
3263
  ## 视图控制
@@ -3548,7 +3569,7 @@ Returns:list[dict]包含该模态下屈曲模态向量列表
3548
3569
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3549
3570
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3550
3571
  > show_increment: 是否显示增量结果
3551
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3572
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3552
3573
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Fxyz 5-Mx 6-My 7-Mz 8-Mxyz
3553
3574
  > show_number: 数值选项卡开启
3554
3575
  > show_legend: 图例选项卡开启
@@ -3573,7 +3594,7 @@ Returns: 无
3573
3594
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3574
3595
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3575
3596
  > show_increment: 是否显示增量结果
3576
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3597
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3577
3598
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3578
3599
  > show_deformed: 变形选项卡开启
3579
3600
  > deformed_scale:变形比例
@@ -3602,7 +3623,7 @@ Returns: 无
3602
3623
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3603
3624
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3604
3625
  > show_increment: 是否显示增量结果
3605
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3626
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3606
3627
  > component: 分量编号 1-Dx 2-Dy 3-Dz 4-Rx 5-Ry 6-Rz 7-Dxy 8-Dyz 9-Dxz 10-Dxyz
3607
3628
  > show_line_chart: 折线图选项卡开启
3608
3629
  > line_scale:折线图比例
@@ -3634,7 +3655,7 @@ Returns: 无
3634
3655
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3635
3656
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3636
3657
  > show_increment: 是否显示增量结果
3637
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3658
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3638
3659
  > component: 分量编号 0-N 1-Fx 2-Fy 3-Fz
3639
3660
  > show_line_chart: 折线图选项卡开启
3640
3661
  > line_scale:折线图比例
@@ -3667,7 +3688,7 @@ Returns: 无
3667
3688
  > force_kind: 内力选项 1-单元 2-节点平均
3668
3689
  > case_name: 详细荷载工况名
3669
3690
  > stage_id: 阶段编号
3670
- > envelope_type: 包络类型
3691
+ > envelop_type: 包络类型
3671
3692
  > show_number: 是否显示数值
3672
3693
  > show_deformed: 是否显示变形形状
3673
3694
  > show_undeformed: 是否显示未变形形状
@@ -3695,7 +3716,7 @@ Returns: 无
3695
3716
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3696
3717
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3697
3718
  > show_increment: 是否显示增量结果
3698
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3719
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3699
3720
  > mat_type: 材料类型 1-主材 2-辅材 3-主材+辅材
3700
3721
  > component: 分量编号 1-Fx 2-Fy 3-Fz 4-Mx 5-My 6-Mz
3701
3722
  > show_line_chart: 折线图选项卡开启
@@ -3725,7 +3746,7 @@ Returns: 无
3725
3746
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3726
3747
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3727
3748
  > show_increment: 是否显示增量结果
3728
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3749
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3729
3750
  > component: 分量编号 1-轴力 2-Mzx 3-My 4-组合包络 5-左上 6-右上 7-右下 8-左下
3730
3751
  > show_line_chart: 折线图选项卡开启
3731
3752
  > line_scale:折线图比例
@@ -3754,7 +3775,7 @@ Returns: 无
3754
3775
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3755
3776
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3756
3777
  > show_increment: 是否显示增量结果
3757
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3778
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3758
3779
  > show_line_chart: 折线图选项卡开启
3759
3780
  > line_scale:折线图比例
3760
3781
  > flip_plot:反向绘制
@@ -3782,7 +3803,7 @@ Returns: 无
3782
3803
  > stage_id: -1-运营阶段 0-施工阶段包络 n-施工阶段号
3783
3804
  > case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
3784
3805
  > show_increment: 是否显示增量结果
3785
- > envelope_type: 施工阶段包络类型 1-最大 2-最小
3806
+ > envelop_type: 施工阶段包络类型 1-最大 2-最小
3786
3807
  > mat_type: 材料类型 1-主材 2-辅材
3787
3808
  > component: 分量编号 1-轴力分量 2-Mz分量 3-My分量 4-包络 5-左上 6-右上 7-左下 8-右下
3788
3809
  > show_line_chart: 折线图选项卡开启
@@ -3813,7 +3834,7 @@ Returns: 无
3813
3834
  > stress_kind: 力类型 1-单元 2-节点平均
3814
3835
  > case_name: 详细荷载工况名
3815
3836
  > stage_id: 阶段编号
3816
- > envelope_type: 包络类型
3837
+ > envelop_type: 包络类型
3817
3838
  > show_number: 是否显示数值
3818
3839
  > show_deformed: 是否显示变形形状
3819
3840
  > show_undeformed: 是否显示未变形形状
@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
11
11
 
12
12
  setup(
13
13
  name="qtmodel",
14
- version=f"V0.9.5",
14
+ version=f"V0.9.7",
15
15
  author="dqy-zhj",
16
16
  author_email="1105417715@qq.com",
17
17
  description=f"python modeling for qt {datetime.now().date()} ",
File without changes
File without changes
File without changes