qtmodel 1.1.5__tar.gz → 1.1.6__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.

Potentially problematic release.


This version of qtmodel might be problematic. Click here for more details.

Files changed (38) hide show
  1. {qtmodel-1.1.5 → qtmodel-1.1.6}/PKG-INFO +39 -43
  2. {qtmodel-1.1.5 → qtmodel-1.1.6}/README.md +37 -41
  3. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/core/qt_server.py +3 -2
  4. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_section.py +31 -34
  5. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_result.py +31 -29
  6. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_result_plot.py +44 -44
  7. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel.egg-info/PKG-INFO +39 -43
  8. {qtmodel-1.1.5 → qtmodel-1.1.6}/setup.py +1 -1
  9. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/__init__.py +0 -0
  10. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/core/__init__.py +0 -0
  11. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/core/data_helper.py +0 -0
  12. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/core/model_db.py +0 -0
  13. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/core/result_db.py +0 -0
  14. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/__init__.py +0 -0
  15. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_analysis_setting.py +0 -0
  16. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_assistant.py +0 -0
  17. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_boundary.py +0 -0
  18. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_construction_stage.py +0 -0
  19. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_dynamic_load.py +0 -0
  20. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_live_load.py +0 -0
  21. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_load.py +0 -0
  22. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_project.py +0 -0
  23. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_property.py +0 -0
  24. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_sink_load.py +0 -0
  25. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_static_load.py +0 -0
  26. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_structure.py +0 -0
  27. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_temperature_load.py +0 -0
  28. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/mdb/mdb_tendon.py +0 -0
  29. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/__init__.py +0 -0
  30. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_model.py +0 -0
  31. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_model_boundary.py +0 -0
  32. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_model_load.py +0 -0
  33. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_model_section.py +0 -0
  34. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel/odb/odb_view.py +0 -0
  35. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel.egg-info/SOURCES.txt +0 -0
  36. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel.egg-info/dependency_links.txt +0 -0
  37. {qtmodel-1.1.5 → qtmodel-1.1.6}/qtmodel.egg-info/top_level.txt +0 -0
  38. {qtmodel-1.1.5 → qtmodel-1.1.6}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtmodel
3
- Version: 1.1.5
4
- Summary: python modeling for qt 2025-09-27
3
+ Version: 1.1.6
4
+ Summary: python modeling for qt 2025-09-28
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -17,7 +17,7 @@ Dynamic: description-content-type
17
17
  Dynamic: home-page
18
18
  Dynamic: summary
19
19
 
20
- > 最新版本 V1.1.5 - 2025-09-27
20
+ > 最新版本 V1.1.6 - 2025-09-28
21
21
  > pip install --upgrade qtmodel -i https://pypi.org/simple
22
22
  - 新增更新结构组接口
23
23
  # 建模操作
@@ -681,10 +681,10 @@ mdb.add_tapper_section_by_id(name="变截面1",begin_id=1,end_id=2)
681
681
  #Returns: 无
682
682
  ```
683
683
  ### update_single_section
684
- 以字典形式添加单一截面
684
+ todo 以字典形式添加单一截面
685
685
  > 参数:
686
686
  > index:截面编号
687
- > new_id:新截面编号,默认不修改截面编号
687
+ > new_id:新截面编号,默认为-1时不修改截面编号
688
688
  > name:截面名称
689
689
  > sec_type:截面类型
690
690
  > sec_data:截面信息字典,键值参考添加add_section方法参数
@@ -696,7 +696,7 @@ sec_data={"sec_info":[1,2],"bias_type":"中心"})
696
696
  #Returns: 无
697
697
  ```
698
698
  ### update_tapper_section
699
- 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
699
+ todo 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
700
700
  > 参数:
701
701
  > index:截面编号
702
702
  > new_id:新截面编号,默认不修改截面编号
@@ -715,7 +715,7 @@ sec_end={"sec_info":[2,2],"bias_type":"中心"})
715
715
  #Returns: 无
716
716
  ```
717
717
  ### update_section_bias
718
- 更新截面偏心
718
+ todo 更新截面偏心
719
719
  > 参数:
720
720
  > index:截面编号
721
721
  > bias_type:偏心类型
@@ -731,7 +731,7 @@ mdb.update_section_bias(index=1,bias_type="自定义",bias_point=[0.1,0.2])
731
731
  #Returns: 无
732
732
  ```
733
733
  ### update_section_property
734
- 更新截面特性
734
+ todo 更新截面特性
735
735
  > 参数:
736
736
  > index:截面号
737
737
  > sec_property:截面特性值参考UI共计26个数值
@@ -743,7 +743,7 @@ mdb.update_section_property(index=1,sec_property=[i for i in range(1,27)])
743
743
  #Returns: 无
744
744
  ```
745
745
  ### update_section_id
746
- 更新截面编号
746
+ todo 更新截面编号
747
747
  > 参数:
748
748
  > index: 原编号
749
749
  > new_id: 新编号
@@ -753,30 +753,10 @@ from qtmodel import *
753
753
  mdb.update_section_id(index=1,new_id=2)
754
754
  #Returns:无
755
755
  ```
756
- ### remove_tapper_section_group
757
- 删除变截面组,默认删除所有变截面组
758
- > 参数:
759
- > name:变截面组名称
760
- ```Python
761
- # 示例代码
762
- from qtmodel import *
763
- mdb.remove_tapper_section_group()
764
- mdb.remove_tapper_section_group("变截面组1")
765
- #Returns:无
766
- ```
767
- ### remove_all_section
768
- 删除全部截面信息
769
- > 参数:
770
- ```Python
771
- # 示例代码
772
- from qtmodel import *
773
- mdb.remove_all_section()
774
- #Returns: 无
775
- ```
776
756
  ### remove_section
777
- 删除截面信息
757
+ 删除截面信息,默认则删除所有截面
778
758
  > 参数:
779
- > index: 截面编号
759
+ > ids: 截面编号
780
760
  ```Python
781
761
  # 示例代码
782
762
  from qtmodel import *
@@ -842,6 +822,10 @@ mdb.add_tapper_section_from_group("变截面组1")
842
822
  > ref_h: 高度方向参考点 0-i 1-j
843
823
  > dis_w: 宽度方向距离
844
824
  > dis_h: 高度方向距离
825
+ > parameter_info:参数化变截面组信息,键为参数名(参考UI)值为如下三种类型
826
+ > 1(非线性),指数,参考点(I/J),距离
827
+ > 2(自定义),变化长1,终点值1,变化长2,终点值2...
828
+ > 3(圆弧),半径,参考点(I/J)
845
829
  ```Python
846
830
  # 示例代码
847
831
  from qtmodel import *
@@ -849,6 +833,17 @@ mdb.update_tapper_section_group(name="变截面组1",ids=[1,2,3,4])
849
833
  mdb.update_tapper_section_group(name="变截面组2",ids="1t0100")
850
834
  #Returns: 无
851
835
  ```
836
+ ### remove_tapper_section_group
837
+ 删除变截面组,默认删除所有变截面组
838
+ > 参数:
839
+ > name:变截面组名称
840
+ ```Python
841
+ # 示例代码
842
+ from qtmodel import *
843
+ mdb.remove_tapper_section_group()
844
+ mdb.remove_tapper_section_group("变截面组1")
845
+ #Returns:无
846
+ ```
852
847
  ## 边界操作
853
848
  ### add_effective_width
854
849
  添加有效宽度系数
@@ -3418,7 +3413,7 @@ odb.get_section_ids()
3418
3413
  ```
3419
3414
  ## 结果表格
3420
3415
  ### get_reaction
3421
- 获取节点反力
3416
+ 获取制作反力
3422
3417
  > 参数:
3423
3418
  > ids: 节点编号,支持整数或整数型列表支持XtoYbyN形式字符串
3424
3419
  > envelop_type: 施工阶段包络类型 1-最大 2-最小
@@ -3446,6 +3441,7 @@ odb.get_reaction(ids=1,stage_id=-1,case_name="工况名")
3446
3441
  > increment_type: 1-全量 2-增量
3447
3442
  > case_name: 运营阶段所需荷载工况名
3448
3443
  > is_time_history: 是否为时程分析
3444
+ > is_local: 是否为输出局部坐标系
3449
3445
  ```Python
3450
3446
  # 示例代码
3451
3447
  from qtmodel import *
@@ -3629,7 +3625,7 @@ odb.get_buckling_modal_results(mode=1)
3629
3625
  # 示例代码
3630
3626
  from qtmodel import *
3631
3627
  odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3632
- #Returns:
3628
+ #Returns: Base64字符串
3633
3629
  ```
3634
3630
  ### plot_displacement_result
3635
3631
  保存结果图片到指定文件甲
@@ -3658,7 +3654,7 @@ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case
3658
3654
  # 示例代码
3659
3655
  from qtmodel import *
3660
3656
  odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3661
- #Returns:
3657
+ #Returns: Base64字符串
3662
3658
  ```
3663
3659
  ### plot_beam_element_force
3664
3660
  绘制梁单元结果图并保存到指定文件
@@ -3690,7 +3686,7 @@ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,
3690
3686
  # 示例代码
3691
3687
  from qtmodel import *
3692
3688
  odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3693
- #Returns:
3689
+ #Returns: Base64字符串
3694
3690
  ```
3695
3691
  ### plot_truss_element_force
3696
3692
  绘制杆单元结果图并保存到指定文件
@@ -3722,7 +3718,7 @@ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,c
3722
3718
  # 示例代码
3723
3719
  from qtmodel import *
3724
3720
  odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="CQ:成桥(合计)",stage_id=-1)
3725
- #Returns:
3721
+ #Returns: Base64字符串
3726
3722
  ```
3727
3723
  ### plot_plate_element_force
3728
3724
  绘制板单元结果图并保存到指定文件
@@ -3751,7 +3747,7 @@ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="C
3751
3747
  # 示例代码
3752
3748
  from qtmodel import *
3753
3749
  odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3754
- #Returns:
3750
+ #Returns: Base64字符串
3755
3751
  ```
3756
3752
  ### plot_composite_beam_force
3757
3753
  绘制组合梁单元结果图并保存到指定文件
@@ -3781,7 +3777,7 @@ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,
3781
3777
  # 示例代码
3782
3778
  from qtmodel import *
3783
3779
  odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3784
- #Returns:
3780
+ #Returns: Base64字符串
3785
3781
  ```
3786
3782
  ### plot_beam_element_stress
3787
3783
  绘制梁单元应力结果图并保存到指定文件
@@ -3810,7 +3806,7 @@ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_t
3810
3806
  # 示例代码
3811
3807
  from qtmodel import *
3812
3808
  odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3813
- #Returns:
3809
+ #Returns: Base64字符串
3814
3810
  ```
3815
3811
  ### plot_truss_element_stress
3816
3812
  绘制杆单元结果图并保存到指定文件
@@ -3838,7 +3834,7 @@ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_ch
3838
3834
  # 示例代码
3839
3835
  from qtmodel import *
3840
3836
  odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="CQ:成桥(合计)",stage_id=-1)
3841
- #Returns:
3837
+ #Returns: Base64字符串
3842
3838
  ```
3843
3839
  ### plot_composite_beam_stress
3844
3840
  绘制组合梁单元结果图并保存到指定文件
@@ -3868,7 +3864,7 @@ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="
3868
3864
  # 示例代码
3869
3865
  from qtmodel import *
3870
3866
  odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3871
- #Returns:
3867
+ #Returns: Base64字符串
3872
3868
  ```
3873
3869
  ### plot_plate_element_stress
3874
3870
  绘制板单元结果图并保存到指定文件
@@ -3895,7 +3891,7 @@ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",comp
3895
3891
  # 示例代码
3896
3892
  from qtmodel import *
3897
3893
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3898
- #Returns:
3894
+ #Returns: Base64字符串
3899
3895
  ```
3900
3896
  ### plot_modal_result
3901
3897
  绘制模态结果,可选择自振模态和屈曲模态结果
@@ -3915,7 +3911,7 @@ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1
3915
3911
  from qtmodel import *
3916
3912
  odb.plot_modal_result(file_path=r"D:\\图片\\自振模态.png",mode=1)
3917
3913
  odb.plot_modal_result(file_path=r"D:\\图片\\屈曲模态.png",mode=1,mode_kind=2)
3918
- #Returns:
3914
+ #Returns: Base64字符串
3919
3915
  ```
3920
3916
  ### get_current_png
3921
3917
  获取当前窗口Base64格式(图形)字符串
@@ -1,4 +1,4 @@
1
- > 最新版本 V1.1.5 - 2025-09-27
1
+ > 最新版本 V1.1.6 - 2025-09-28
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 新增更新结构组接口
4
4
  # 建模操作
@@ -662,10 +662,10 @@ mdb.add_tapper_section_by_id(name="变截面1",begin_id=1,end_id=2)
662
662
  #Returns: 无
663
663
  ```
664
664
  ### update_single_section
665
- 以字典形式添加单一截面
665
+ todo 以字典形式添加单一截面
666
666
  > 参数:
667
667
  > index:截面编号
668
- > new_id:新截面编号,默认不修改截面编号
668
+ > new_id:新截面编号,默认为-1时不修改截面编号
669
669
  > name:截面名称
670
670
  > sec_type:截面类型
671
671
  > sec_data:截面信息字典,键值参考添加add_section方法参数
@@ -677,7 +677,7 @@ sec_data={"sec_info":[1,2],"bias_type":"中心"})
677
677
  #Returns: 无
678
678
  ```
679
679
  ### update_tapper_section
680
- 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
680
+ todo 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
681
681
  > 参数:
682
682
  > index:截面编号
683
683
  > new_id:新截面编号,默认不修改截面编号
@@ -696,7 +696,7 @@ sec_end={"sec_info":[2,2],"bias_type":"中心"})
696
696
  #Returns: 无
697
697
  ```
698
698
  ### update_section_bias
699
- 更新截面偏心
699
+ todo 更新截面偏心
700
700
  > 参数:
701
701
  > index:截面编号
702
702
  > bias_type:偏心类型
@@ -712,7 +712,7 @@ mdb.update_section_bias(index=1,bias_type="自定义",bias_point=[0.1,0.2])
712
712
  #Returns: 无
713
713
  ```
714
714
  ### update_section_property
715
- 更新截面特性
715
+ todo 更新截面特性
716
716
  > 参数:
717
717
  > index:截面号
718
718
  > sec_property:截面特性值参考UI共计26个数值
@@ -724,7 +724,7 @@ mdb.update_section_property(index=1,sec_property=[i for i in range(1,27)])
724
724
  #Returns: 无
725
725
  ```
726
726
  ### update_section_id
727
- 更新截面编号
727
+ todo 更新截面编号
728
728
  > 参数:
729
729
  > index: 原编号
730
730
  > new_id: 新编号
@@ -734,30 +734,10 @@ from qtmodel import *
734
734
  mdb.update_section_id(index=1,new_id=2)
735
735
  #Returns:无
736
736
  ```
737
- ### remove_tapper_section_group
738
- 删除变截面组,默认删除所有变截面组
739
- > 参数:
740
- > name:变截面组名称
741
- ```Python
742
- # 示例代码
743
- from qtmodel import *
744
- mdb.remove_tapper_section_group()
745
- mdb.remove_tapper_section_group("变截面组1")
746
- #Returns:无
747
- ```
748
- ### remove_all_section
749
- 删除全部截面信息
750
- > 参数:
751
- ```Python
752
- # 示例代码
753
- from qtmodel import *
754
- mdb.remove_all_section()
755
- #Returns: 无
756
- ```
757
737
  ### remove_section
758
- 删除截面信息
738
+ 删除截面信息,默认则删除所有截面
759
739
  > 参数:
760
- > index: 截面编号
740
+ > ids: 截面编号
761
741
  ```Python
762
742
  # 示例代码
763
743
  from qtmodel import *
@@ -823,6 +803,10 @@ mdb.add_tapper_section_from_group("变截面组1")
823
803
  > ref_h: 高度方向参考点 0-i 1-j
824
804
  > dis_w: 宽度方向距离
825
805
  > dis_h: 高度方向距离
806
+ > parameter_info:参数化变截面组信息,键为参数名(参考UI)值为如下三种类型
807
+ > 1(非线性),指数,参考点(I/J),距离
808
+ > 2(自定义),变化长1,终点值1,变化长2,终点值2...
809
+ > 3(圆弧),半径,参考点(I/J)
826
810
  ```Python
827
811
  # 示例代码
828
812
  from qtmodel import *
@@ -830,6 +814,17 @@ mdb.update_tapper_section_group(name="变截面组1",ids=[1,2,3,4])
830
814
  mdb.update_tapper_section_group(name="变截面组2",ids="1t0100")
831
815
  #Returns: 无
832
816
  ```
817
+ ### remove_tapper_section_group
818
+ 删除变截面组,默认删除所有变截面组
819
+ > 参数:
820
+ > name:变截面组名称
821
+ ```Python
822
+ # 示例代码
823
+ from qtmodel import *
824
+ mdb.remove_tapper_section_group()
825
+ mdb.remove_tapper_section_group("变截面组1")
826
+ #Returns:无
827
+ ```
833
828
  ## 边界操作
834
829
  ### add_effective_width
835
830
  添加有效宽度系数
@@ -3399,7 +3394,7 @@ odb.get_section_ids()
3399
3394
  ```
3400
3395
  ## 结果表格
3401
3396
  ### get_reaction
3402
- 获取节点反力
3397
+ 获取制作反力
3403
3398
  > 参数:
3404
3399
  > ids: 节点编号,支持整数或整数型列表支持XtoYbyN形式字符串
3405
3400
  > envelop_type: 施工阶段包络类型 1-最大 2-最小
@@ -3427,6 +3422,7 @@ odb.get_reaction(ids=1,stage_id=-1,case_name="工况名")
3427
3422
  > increment_type: 1-全量 2-增量
3428
3423
  > case_name: 运营阶段所需荷载工况名
3429
3424
  > is_time_history: 是否为时程分析
3425
+ > is_local: 是否为输出局部坐标系
3430
3426
  ```Python
3431
3427
  # 示例代码
3432
3428
  from qtmodel import *
@@ -3610,7 +3606,7 @@ odb.get_buckling_modal_results(mode=1)
3610
3606
  # 示例代码
3611
3607
  from qtmodel import *
3612
3608
  odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3613
- #Returns:
3609
+ #Returns: Base64字符串
3614
3610
  ```
3615
3611
  ### plot_displacement_result
3616
3612
  保存结果图片到指定文件甲
@@ -3639,7 +3635,7 @@ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case
3639
3635
  # 示例代码
3640
3636
  from qtmodel import *
3641
3637
  odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3642
- #Returns:
3638
+ #Returns: Base64字符串
3643
3639
  ```
3644
3640
  ### plot_beam_element_force
3645
3641
  绘制梁单元结果图并保存到指定文件
@@ -3671,7 +3667,7 @@ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,
3671
3667
  # 示例代码
3672
3668
  from qtmodel import *
3673
3669
  odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3674
- #Returns:
3670
+ #Returns: Base64字符串
3675
3671
  ```
3676
3672
  ### plot_truss_element_force
3677
3673
  绘制杆单元结果图并保存到指定文件
@@ -3703,7 +3699,7 @@ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,c
3703
3699
  # 示例代码
3704
3700
  from qtmodel import *
3705
3701
  odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="CQ:成桥(合计)",stage_id=-1)
3706
- #Returns:
3702
+ #Returns: Base64字符串
3707
3703
  ```
3708
3704
  ### plot_plate_element_force
3709
3705
  绘制板单元结果图并保存到指定文件
@@ -3732,7 +3728,7 @@ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="C
3732
3728
  # 示例代码
3733
3729
  from qtmodel import *
3734
3730
  odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3735
- #Returns:
3731
+ #Returns: Base64字符串
3736
3732
  ```
3737
3733
  ### plot_composite_beam_force
3738
3734
  绘制组合梁单元结果图并保存到指定文件
@@ -3762,7 +3758,7 @@ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,
3762
3758
  # 示例代码
3763
3759
  from qtmodel import *
3764
3760
  odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3765
- #Returns:
3761
+ #Returns: Base64字符串
3766
3762
  ```
3767
3763
  ### plot_beam_element_stress
3768
3764
  绘制梁单元应力结果图并保存到指定文件
@@ -3791,7 +3787,7 @@ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_t
3791
3787
  # 示例代码
3792
3788
  from qtmodel import *
3793
3789
  odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3794
- #Returns:
3790
+ #Returns: Base64字符串
3795
3791
  ```
3796
3792
  ### plot_truss_element_stress
3797
3793
  绘制杆单元结果图并保存到指定文件
@@ -3819,7 +3815,7 @@ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_ch
3819
3815
  # 示例代码
3820
3816
  from qtmodel import *
3821
3817
  odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="CQ:成桥(合计)",stage_id=-1)
3822
- #Returns:
3818
+ #Returns: Base64字符串
3823
3819
  ```
3824
3820
  ### plot_composite_beam_stress
3825
3821
  绘制组合梁单元结果图并保存到指定文件
@@ -3849,7 +3845,7 @@ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="
3849
3845
  # 示例代码
3850
3846
  from qtmodel import *
3851
3847
  odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3852
- #Returns:
3848
+ #Returns: Base64字符串
3853
3849
  ```
3854
3850
  ### plot_plate_element_stress
3855
3851
  绘制板单元结果图并保存到指定文件
@@ -3876,7 +3872,7 @@ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",comp
3876
3872
  # 示例代码
3877
3873
  from qtmodel import *
3878
3874
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
3879
- #Returns:
3875
+ #Returns: Base64字符串
3880
3876
  ```
3881
3877
  ### plot_modal_result
3882
3878
  绘制模态结果,可选择自振模态和屈曲模态结果
@@ -3896,7 +3892,7 @@ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1
3896
3892
  from qtmodel import *
3897
3893
  odb.plot_modal_result(file_path=r"D:\\图片\\自振模态.png",mode=1)
3898
3894
  odb.plot_modal_result(file_path=r"D:\\图片\\屈曲模态.png",mode=1,mode_kind=2)
3899
- #Returns:
3895
+ #Returns: Base64字符串
3900
3896
  ```
3901
3897
  ### get_current_png
3902
3898
  获取当前窗口Base64格式(图形)字符串
@@ -1,4 +1,5 @@
1
1
  import json
2
+ from typing import Optional
2
3
 
3
4
  import requests
4
5
 
@@ -54,7 +55,7 @@ class QtServer:
54
55
  raise Exception("连接错误,请重新尝试")
55
56
 
56
57
  @staticmethod
57
- def send_post(header: str, payload: dict | None):
58
+ def send_post(header: str, payload: Optional[dict] = None):
58
59
  """
59
60
  统一发送:有参数 -> JSON;无参数 -> 不带 command 的 post
60
61
  """
@@ -69,7 +70,7 @@ class QtServer:
69
70
  raise Exception(ex)
70
71
 
71
72
  @staticmethod
72
- def send_get(header: str, payload: dict | None):
73
+ def send_get(header: str, payload: Optional[dict] = None):
73
74
  """
74
75
  统一发送:有参数 -> JSON;无参数 -> 不带 command 的 post
75
76
  """
@@ -273,10 +273,10 @@ class MdbSection:
273
273
  @staticmethod
274
274
  def update_single_section(index: int, new_id: int = -1, name: str = "", sec_type: str = "矩形", sec_data: dict = None):
275
275
  """
276
- 以字典形式添加单一截面
276
+ todo 以字典形式添加单一截面
277
277
  Args:
278
278
  index:截面编号
279
- new_id:新截面编号,默认不修改截面编号
279
+ new_id:新截面编号,默认为-1时不修改截面编号
280
280
  name:截面名称
281
281
  sec_type:截面类型
282
282
  sec_data:截面信息字典,键值参考添加add_section方法参数
@@ -298,7 +298,7 @@ class MdbSection:
298
298
  def update_tapper_section(index: int, new_id: int = -1, name: str = "", sec_type: str = "矩形", sec_begin: dict = None, sec_end: dict = None,
299
299
  shear_consider: bool = True, sec_normalize: bool = False):
300
300
  """
301
- 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
301
+ todo 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
302
302
  Args:
303
303
  index:截面编号
304
304
  new_id:新截面编号,默认不修改截面编号
@@ -330,7 +330,7 @@ class MdbSection:
330
330
  def update_section_bias(index: int = 1, bias_type: str = "中心", center_type: str = "质心", shear_consider: bool = True,
331
331
  bias_point: list[float] = None, side_i: bool = True):
332
332
  """
333
- 更新截面偏心
333
+ todo 更新截面偏心
334
334
  Args:
335
335
  index:截面编号
336
336
  bias_type:偏心类型
@@ -356,7 +356,7 @@ class MdbSection:
356
356
  @staticmethod
357
357
  def update_section_property(index: int, sec_property: list[float], side_i: bool = True):
358
358
  """
359
- 更新截面特性
359
+ todo 更新截面特性
360
360
  Args:
361
361
  index:截面号
362
362
  sec_property:截面特性值参考UI共计26个数值
@@ -375,7 +375,7 @@ class MdbSection:
375
375
  @staticmethod
376
376
  def update_section_id(index: int, new_id: int):
377
377
  """
378
- 更新截面编号
378
+ todo 更新截面编号
379
379
  Args:
380
380
  index: 原编号
381
381
  new_id: 新编号
@@ -389,43 +389,20 @@ class MdbSection:
389
389
  }
390
390
  return QtServer.send_post("UPDATE-SEC-ID", payload)
391
391
 
392
- @staticmethod
393
- def remove_tapper_section_group(name: str = ""):
394
- """
395
- 删除变截面组,默认删除所有变截面组
396
- Args:
397
- name:变截面组名称
398
- Example:
399
- mdb.remove_tapper_section_group()
400
- mdb.remove_tapper_section_group("变截面组1")
401
- Returns:无
402
- """
403
- payload = {"name": name}
404
- return QtServer.send_post("REMOVE-TAPPER-SEC-GROUP", payload)
405
392
 
406
- @staticmethod
407
- def remove_all_section():
408
- """
409
- 删除全部截面信息
410
- Args: 无
411
- Example:
412
- mdb.remove_all_section()
413
- Returns: 无
414
- """
415
- return QtServer.send_post("REMOVE-ALL-SEC", None)
416
393
 
417
394
  @staticmethod
418
- def remove_section(index=None):
395
+ def remove_section(ids=None):
419
396
  """
420
- 删除截面信息
397
+ 删除截面信息,默认则删除所有截面
421
398
  Args:
422
- index: 截面编号
399
+ ids: 截面编号
423
400
  Example:
424
401
  mdb.remove_section(1)
425
402
  mdb.remove_section("1to100")
426
403
  Returns: 无
427
404
  """
428
- payload = {"index": index}
405
+ payload = {"index": QtDataHelper.parse_ids_to_array(ids),}
429
406
  return QtServer.send_post("REMOVE-SEC", payload)
430
407
 
431
408
  # endregion
@@ -508,7 +485,8 @@ class MdbSection:
508
485
 
509
486
  @staticmethod
510
487
  def update_tapper_section_group(name: str, new_name="", ids=None, factor_w: float = 1.0, factor_h: float = 1.0,
511
- ref_w: int = 0, ref_h: int = 0, dis_w: float = 0, dis_h: float = 0):
488
+ ref_w: int = 0, ref_h: int = 0, dis_w: float = 0, dis_h: float = 0,
489
+ parameter_info: dict[str, str] = None):
512
490
  """
513
491
  添加变截面组
514
492
  Args:
@@ -521,6 +499,10 @@ class MdbSection:
521
499
  ref_h: 高度方向参考点 0-i 1-j
522
500
  dis_w: 宽度方向距离
523
501
  dis_h: 高度方向距离
502
+ parameter_info:参数化变截面组信息,键为参数名(参考UI)值为如下三种类型
503
+ 1(非线性),指数,参考点(I/J),距离
504
+ 2(自定义),变化长1,终点值1,变化长2,终点值2...
505
+ 3(圆弧),半径,参考点(I/J)
524
506
  Example:
525
507
  mdb.update_tapper_section_group(name="变截面组1",ids=[1,2,3,4])
526
508
  mdb.update_tapper_section_group(name="变截面组2",ids="1t0100")
@@ -536,6 +518,21 @@ class MdbSection:
536
518
  "ref_h": ref_h,
537
519
  "dis_w": dis_w,
538
520
  "dis_h": dis_h,
521
+ "parameter_info": parameter_info,
539
522
  }
540
523
  return QtServer.send_post("UPDATE-TAPPER-SEC-GROUP", payload)
524
+
525
+ @staticmethod
526
+ def remove_tapper_section_group(name: str = ""):
527
+ """
528
+ 删除变截面组,默认删除所有变截面组
529
+ Args:
530
+ name:变截面组名称
531
+ Example:
532
+ mdb.remove_tapper_section_group()
533
+ mdb.remove_tapper_section_group("变截面组1")
534
+ Returns:无
535
+ """
536
+ payload = {"name": name}
537
+ return QtServer.send_post("REMOVE-TAPPER-SEC-GROUP", payload)
541
538
  # endregion