qtmodel 0.6.4__tar.gz → 0.6.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.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.6.4
4
- Summary: python modeling for qt 2025-01-21
3
+ Version: 0.6.6
4
+ Summary: python modeling for qt 2025-02-10
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,8 +12,8 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.4 - 2025-01-21
16
- > pip install --upgrade qtmodel -i https://pypi.org/simple
15
+ > 最新版本 V0.6.6 - 2025-02-10
16
+ > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增部分接口
18
18
  # 建模操作
19
19
  ## 项目管理
@@ -2125,7 +2125,6 @@ from qtmodel import *
2125
2125
  mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
2126
2126
  ```
2127
2127
  Returns: 无
2128
- ## 静力荷载操作
2129
2128
  ### remove_custom_temperature
2130
2129
  删除梁单元自定义温度
2131
2130
  > 参数:
@@ -2659,6 +2658,58 @@ from qtmodel import *
2659
2658
  mdb.remove_construction_stage(name="施工阶段1")
2660
2659
  ```
2661
2660
  Returns: 无
2661
+ ### add_section_connection_stage
2662
+ 添加施工阶段联合截面
2663
+ > 参数:
2664
+ > name:名称
2665
+ > sec_id:截面号
2666
+ > ele_id:单元号,支持整型和整型列表
2667
+ > stage_name:结合阶段名
2668
+ > age:材龄
2669
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2670
+ ```Python
2671
+ # 示例代码
2672
+ from qtmodel import *
2673
+ mdb.add_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2674
+ ```
2675
+ Returns:无
2676
+ ### update_section_connection_stage
2677
+ 更新施工阶段联合截面
2678
+ > 参数:
2679
+ > name:名称
2680
+ > new_name:新名称
2681
+ > sec_id:截面号
2682
+ > ele_id:单元号,支持整型和整型列表
2683
+ > stage_name:结合阶段名
2684
+ > age:材龄
2685
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2686
+ ```Python
2687
+ # 示例代码
2688
+ from qtmodel import *
2689
+ mdb.update_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2690
+ ```
2691
+ Returns:无
2692
+ ### remove_section_connection_stage
2693
+ 删除施工阶段联合截面
2694
+ > 参数:
2695
+ > name:名称
2696
+ ```Python
2697
+ # 示例代码
2698
+ from qtmodel import *
2699
+ mdb.remove_section_connection_stage(name="联合阶段")
2700
+ ```
2701
+ Returns:无
2702
+ ### add_element_to_connection_stage
2703
+ 添加单元到施工阶段联合截面
2704
+ > 参数:
2705
+ > ele_id:单元号
2706
+ > name:联合阶段名
2707
+ ```Python
2708
+ # 示例代码
2709
+ from qtmodel import *
2710
+ mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
2711
+ ```
2712
+ Returns:无
2662
2713
  ## 荷载组合操作
2663
2714
  ### add_load_combine
2664
2715
  添加荷载组合
@@ -2878,6 +2929,51 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2878
2929
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2879
2930
  ```
2880
2931
  Returns: json字符串,包含信息为list[dict] or dict
2932
+ ### get_self_concurrent_reaction
2933
+ 获取自并发反力
2934
+ > 参数:
2935
+ > node_id:节点号
2936
+ > case_name:工况号
2937
+ ```Python
2938
+ # 示例代码
2939
+ from qtmodel import *
2940
+ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2941
+ ```
2942
+ Returns: json字符串,包含信息为dict
2943
+ ### get_all_concurrent_reaction
2944
+ 获取完全并发反力
2945
+ > 参数:
2946
+ > node_id:节点号
2947
+ > case_name:工况号
2948
+ ```Python
2949
+ # 示例代码
2950
+ from qtmodel import *
2951
+ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2952
+ ```
2953
+ Returns: json字符串,包含信息为dict
2954
+ ### get_beam_concurrent_force
2955
+ 获取梁单元并发内力
2956
+ > 参数:
2957
+ > ele_id:单元号
2958
+ > case_name:工况号
2959
+ ```Python
2960
+ # 示例代码
2961
+ from qtmodel import *
2962
+ odb.get_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2963
+ ```
2964
+ Returns: json字符串,包含信息为dict
2965
+ ### get_composite_beam_concurrent_force
2966
+ 获取组合梁单元并发内力
2967
+ > 参数:
2968
+ > ele_id:单元号
2969
+ > case_name:工况号
2970
+ ```Python
2971
+ # 示例代码
2972
+ from qtmodel import *
2973
+ odb.get_composite_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2974
+ ```
2975
+ Returns: json字符串,包含信息为dict
2976
+ ## 动力结果查看
2881
2977
  ### get_vibration_node_displacement
2882
2978
  获取指定节点指定模态的振型向量
2883
2979
  > 参数:
@@ -2889,7 +2985,6 @@ from qtmodel import *
2889
2985
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
2986
  ```
2891
2987
  Returns: json字符串,包含信息为list[dict] or dict
2892
- ## 动力结果查看
2893
2988
  ### get_period_and_frequency
2894
2989
  获取周期和频率
2895
2990
  > 参数:
@@ -2900,6 +2995,26 @@ from qtmodel import *
2900
2995
  odb.get_period_and_frequency(mode=1)
2901
2996
  ```
2902
2997
  Returns: json字符串,包含信息为dict
2998
+ ### get_participation_mass
2999
+ 获取振型参与质量百分比
3000
+ > 参数:
3001
+ > mode:模态号
3002
+ ```Python
3003
+ # 示例代码
3004
+ from qtmodel import *
3005
+ odb.get_participation_mass(mode=1)
3006
+ ```
3007
+ Returns: json字符串,包含信息为dict
3008
+ ### get_participation_factor
3009
+ 获取振型参与质量系数
3010
+ > 参数:
3011
+ > mode:模态号
3012
+ ```Python
3013
+ # 示例代码
3014
+ from qtmodel import *
3015
+ odb.get_participation_factor(mode=1)
3016
+ ```
3017
+ Returns: json字符串,包含信息为dict
2903
3018
  ## 绘制模型结果
2904
3019
  ### plot_reaction_result
2905
3020
  保存结果图片到指定文件甲
@@ -1,5 +1,5 @@
1
- > 最新版本 V0.6.4 - 2025-01-21
2
- > pip install --upgrade qtmodel -i https://pypi.org/simple
1
+ > 最新版本 V0.6.6 - 2025-02-10
2
+ > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 新增部分接口
4
4
  # 建模操作
5
5
  ## 项目管理
@@ -2111,7 +2111,6 @@ from qtmodel import *
2111
2111
  mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
2112
2112
  ```
2113
2113
  Returns: 无
2114
- ## 静力荷载操作
2115
2114
  ### remove_custom_temperature
2116
2115
  删除梁单元自定义温度
2117
2116
  > 参数:
@@ -2645,6 +2644,58 @@ from qtmodel import *
2645
2644
  mdb.remove_construction_stage(name="施工阶段1")
2646
2645
  ```
2647
2646
  Returns: 无
2647
+ ### add_section_connection_stage
2648
+ 添加施工阶段联合截面
2649
+ > 参数:
2650
+ > name:名称
2651
+ > sec_id:截面号
2652
+ > ele_id:单元号,支持整型和整型列表
2653
+ > stage_name:结合阶段名
2654
+ > age:材龄
2655
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2656
+ ```Python
2657
+ # 示例代码
2658
+ from qtmodel import *
2659
+ mdb.add_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2660
+ ```
2661
+ Returns:无
2662
+ ### update_section_connection_stage
2663
+ 更新施工阶段联合截面
2664
+ > 参数:
2665
+ > name:名称
2666
+ > new_name:新名称
2667
+ > sec_id:截面号
2668
+ > ele_id:单元号,支持整型和整型列表
2669
+ > stage_name:结合阶段名
2670
+ > age:材龄
2671
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2672
+ ```Python
2673
+ # 示例代码
2674
+ from qtmodel import *
2675
+ mdb.update_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2676
+ ```
2677
+ Returns:无
2678
+ ### remove_section_connection_stage
2679
+ 删除施工阶段联合截面
2680
+ > 参数:
2681
+ > name:名称
2682
+ ```Python
2683
+ # 示例代码
2684
+ from qtmodel import *
2685
+ mdb.remove_section_connection_stage(name="联合阶段")
2686
+ ```
2687
+ Returns:无
2688
+ ### add_element_to_connection_stage
2689
+ 添加单元到施工阶段联合截面
2690
+ > 参数:
2691
+ > ele_id:单元号
2692
+ > name:联合阶段名
2693
+ ```Python
2694
+ # 示例代码
2695
+ from qtmodel import *
2696
+ mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
2697
+ ```
2698
+ Returns:无
2648
2699
  ## 荷载组合操作
2649
2700
  ### add_load_combine
2650
2701
  添加荷载组合
@@ -2864,6 +2915,51 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2864
2915
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2865
2916
  ```
2866
2917
  Returns: json字符串,包含信息为list[dict] or dict
2918
+ ### get_self_concurrent_reaction
2919
+ 获取自并发反力
2920
+ > 参数:
2921
+ > node_id:节点号
2922
+ > case_name:工况号
2923
+ ```Python
2924
+ # 示例代码
2925
+ from qtmodel import *
2926
+ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2927
+ ```
2928
+ Returns: json字符串,包含信息为dict
2929
+ ### get_all_concurrent_reaction
2930
+ 获取完全并发反力
2931
+ > 参数:
2932
+ > node_id:节点号
2933
+ > case_name:工况号
2934
+ ```Python
2935
+ # 示例代码
2936
+ from qtmodel import *
2937
+ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2938
+ ```
2939
+ Returns: json字符串,包含信息为dict
2940
+ ### get_beam_concurrent_force
2941
+ 获取梁单元并发内力
2942
+ > 参数:
2943
+ > ele_id:单元号
2944
+ > case_name:工况号
2945
+ ```Python
2946
+ # 示例代码
2947
+ from qtmodel import *
2948
+ odb.get_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2949
+ ```
2950
+ Returns: json字符串,包含信息为dict
2951
+ ### get_composite_beam_concurrent_force
2952
+ 获取组合梁单元并发内力
2953
+ > 参数:
2954
+ > ele_id:单元号
2955
+ > case_name:工况号
2956
+ ```Python
2957
+ # 示例代码
2958
+ from qtmodel import *
2959
+ odb.get_composite_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2960
+ ```
2961
+ Returns: json字符串,包含信息为dict
2962
+ ## 动力结果查看
2867
2963
  ### get_vibration_node_displacement
2868
2964
  获取指定节点指定模态的振型向量
2869
2965
  > 参数:
@@ -2875,7 +2971,6 @@ from qtmodel import *
2875
2971
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2876
2972
  ```
2877
2973
  Returns: json字符串,包含信息为list[dict] or dict
2878
- ## 动力结果查看
2879
2974
  ### get_period_and_frequency
2880
2975
  获取周期和频率
2881
2976
  > 参数:
@@ -2886,6 +2981,26 @@ from qtmodel import *
2886
2981
  odb.get_period_and_frequency(mode=1)
2887
2982
  ```
2888
2983
  Returns: json字符串,包含信息为dict
2984
+ ### get_participation_mass
2985
+ 获取振型参与质量百分比
2986
+ > 参数:
2987
+ > mode:模态号
2988
+ ```Python
2989
+ # 示例代码
2990
+ from qtmodel import *
2991
+ odb.get_participation_mass(mode=1)
2992
+ ```
2993
+ Returns: json字符串,包含信息为dict
2994
+ ### get_participation_factor
2995
+ 获取振型参与质量系数
2996
+ > 参数:
2997
+ > mode:模态号
2998
+ ```Python
2999
+ # 示例代码
3000
+ from qtmodel import *
3001
+ odb.get_participation_factor(mode=1)
3002
+ ```
3003
+ Returns: json字符串,包含信息为dict
2889
3004
  ## 绘制模型结果
2890
3005
  ### plot_reaction_result
2891
3006
  保存结果图片到指定文件甲
@@ -2275,8 +2275,8 @@ class Mdb:
2275
2275
 
2276
2276
  @staticmethod
2277
2277
  def add_train_relative_factor(name: str, code_index: int = 1, cross_factors: list[float] = None, calc_fatigue: bool = False,
2278
- line_count: int = 0, longitude_factor: int = -1, impact_factor: int = -1,
2279
- fatigue_factor: int = -1, bridge_kind: int = 0, fill_thick: float = 0.5,
2278
+ line_count: int = 0, longitude_factor: float = -1, impact_factor: float = -1,
2279
+ fatigue_factor: float = -1, bridge_kind: int = 0, fill_thick: float = 0.5,
2280
2280
  rise: float = 1.5, calc_length: float = 50):
2281
2281
  """
2282
2282
  添加移动荷载工况汽车折减
@@ -2305,7 +2305,7 @@ class Mdb:
2305
2305
  raise Exception(ex)
2306
2306
 
2307
2307
  @staticmethod
2308
- def add_metro_relative_factor(name: str, cross_factors: list[float] = None, longitude_factor: int = -1, impact_factor: int = -1):
2308
+ def add_metro_relative_factor(name: str, cross_factors: list[float] = None, longitude_factor: float = -1, impact_factor: float = -1):
2309
2309
  """
2310
2310
  添加移动荷载工况汽车折减
2311
2311
  Args:
@@ -3390,7 +3390,6 @@ class Mdb:
3390
3390
  # endregion
3391
3391
 
3392
3392
  # region 静力荷载操作
3393
-
3394
3393
  @staticmethod
3395
3394
  def add_nodal_force(node_id: (Union[int, List[int]]) = 1, case_name: str = "", load_info: list[float] = None,
3396
3395
  group_name: str = "默认荷载组"):
@@ -4195,6 +4194,81 @@ class Mdb:
4195
4194
  except Exception as ex:
4196
4195
  raise Exception(f"删除施工阶段自重:{name}错误,{ex}")
4197
4196
 
4197
+ @staticmethod
4198
+ def add_section_connection_stage(name: str, sec_id: int, ele_id: (Union[int, List[int]]) = None, stage_name="", age: float = 0,
4199
+ weight_type: int = 0):
4200
+ """
4201
+ 添加施工阶段联合截面
4202
+ Args:
4203
+ name:名称
4204
+ sec_id:截面号
4205
+ ele_id:单元号,支持整型和整型列表
4206
+ stage_name:结合阶段名
4207
+ age:材龄
4208
+ weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
4209
+ Example:
4210
+ mdb.add_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
4211
+ Returns:无
4212
+ """
4213
+ try:
4214
+ qt_model.AddSectionConnectionStage(name=name, secId=sec_id, elementIds=ele_id, stageName=stage_name, age=age, weightType=weight_type)
4215
+ except Exception as ex:
4216
+ raise Exception(f"添加施工阶段联合截面失败:{name}错误,{ex}")
4217
+
4218
+ @staticmethod
4219
+ def update_section_connection_stage(name: str, new_name="", sec_id: int = 1, ele_id: (Union[int, List[int]]) = None,
4220
+ stage_name="", age: float = 0, weight_type: int = 0):
4221
+ """
4222
+ 更新施工阶段联合截面
4223
+ Args:
4224
+ name:名称
4225
+ new_name:新名称
4226
+ sec_id:截面号
4227
+ ele_id:单元号,支持整型和整型列表
4228
+ stage_name:结合阶段名
4229
+ age:材龄
4230
+ weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
4231
+ Example:
4232
+ mdb.update_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
4233
+ Returns:无
4234
+ """
4235
+ try:
4236
+ qt_model.UpdateSectionConnectionStage(name=name, newName=new_name, secId=sec_id, elementIds=ele_id,
4237
+ stageName=stage_name, age=age, weightType=weight_type)
4238
+ except Exception as ex:
4239
+ raise Exception(f"更新施工阶段联合截面失败:{name}错误,{ex}")
4240
+
4241
+ @staticmethod
4242
+ def remove_section_connection_stage(name: str):
4243
+ """
4244
+ 删除施工阶段联合截面
4245
+ Args:
4246
+ name:名称
4247
+ Example:
4248
+ mdb.remove_section_connection_stage(name="联合阶段")
4249
+ Returns:无
4250
+ """
4251
+ try:
4252
+ qt_model.RemoveSectionConnectionStage(name=name)
4253
+ except Exception as ex:
4254
+ raise Exception(f"删除施工阶段联合截面失败:{name}错误,{ex}")
4255
+
4256
+ @staticmethod
4257
+ def add_element_to_connection_stage(ele_id: (Union[int, List[int]]), name: str):
4258
+ """
4259
+ 添加单元到施工阶段联合截面
4260
+ Args:
4261
+ ele_id:单元号
4262
+ name:联合阶段名
4263
+ Example:
4264
+ mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
4265
+ Returns:无
4266
+ """
4267
+ try:
4268
+ qt_model.AddElementToConnectionStage(elementIds=ele_id, name=name)
4269
+ except Exception as ex:
4270
+ raise Exception(f"添加单元到施工阶段联合截面失败:{name}错误,{ex}")
4271
+
4198
4272
  # endregion
4199
4273
 
4200
4274
  # region 荷载组合操作
@@ -343,6 +343,73 @@ class Odb:
343
343
  except Exception as ex:
344
344
  raise Exception(ex)
345
345
 
346
+ @staticmethod
347
+ def get_self_concurrent_reaction(node_id: int, case_name: str):
348
+ """
349
+ 获取自并发反力
350
+ Args:
351
+ node_id:节点号
352
+ case_name:工况号
353
+ Example:
354
+ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
355
+ Returns: json字符串,包含信息为dict
356
+ """
357
+ try:
358
+ qt_model.GetSelfConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
359
+ except Exception as ex:
360
+ raise Exception(ex)
361
+
362
+ @staticmethod
363
+ def get_all_concurrent_reaction(node_id: int, case_name: str):
364
+ """
365
+ 获取完全并发反力
366
+ Args:
367
+ node_id:节点号
368
+ case_name:工况号
369
+ Example:
370
+ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
371
+ Returns: json字符串,包含信息为dict
372
+ """
373
+ try:
374
+ qt_model.GetAllConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
375
+ except Exception as ex:
376
+ raise Exception(ex)
377
+
378
+ @staticmethod
379
+ def get_beam_concurrent_force(ele_id: (Union[int, List[int]]) = None, case_name: str = ""):
380
+ """
381
+ 获取梁单元并发内力
382
+ Args:
383
+ ele_id:单元号
384
+ case_name:工况号
385
+ Example:
386
+ odb.get_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
387
+ Returns: json字符串,包含信息为dict
388
+ """
389
+ try:
390
+ qt_model.GetBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
391
+ except Exception as ex:
392
+ raise Exception(ex)
393
+
394
+ @staticmethod
395
+ def get_composite_beam_concurrent_force(ele_id: (Union[int, List[int]]) = None, case_name: str = ""):
396
+ """
397
+ 获取组合梁单元并发内力
398
+ Args:
399
+ ele_id:单元号
400
+ case_name:工况号
401
+ Example:
402
+ odb.get_composite_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
403
+ Returns: json字符串,包含信息为dict
404
+ """
405
+ try:
406
+ qt_model.GetCompositeBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
407
+ except Exception as ex:
408
+ raise Exception(ex)
409
+
410
+ # endregion
411
+
412
+ # region 动力结果查看
346
413
  @staticmethod
347
414
  def get_vibration_node_displacement(node_id: (Union[int, List[int]]) = None, mode: int = 1):
348
415
  """
@@ -365,9 +432,6 @@ class Odb:
365
432
  except Exception as ex:
366
433
  raise Exception(ex)
367
434
 
368
- # endregion
369
-
370
- # region 动力结果查看
371
435
  @staticmethod
372
436
  def get_period_and_frequency(mode: int = 1):
373
437
  """
@@ -383,6 +447,36 @@ class Odb:
383
447
  except Exception as ex:
384
448
  raise Exception(ex)
385
449
 
450
+ @staticmethod
451
+ def get_participation_mass(mode: int = 1):
452
+ """
453
+ 获取振型参与质量百分比
454
+ Args:
455
+ mode:模态号
456
+ Example:
457
+ odb.get_participation_mass(mode=1)
458
+ Returns: json字符串,包含信息为dict
459
+ """
460
+ try:
461
+ qt_model.GetParticipationMass(mode=mode)
462
+ except Exception as ex:
463
+ raise Exception(ex)
464
+
465
+ @staticmethod
466
+ def get_participation_factor(mode: int = 1):
467
+ """
468
+ 获取振型参与质量系数
469
+ Args:
470
+ mode:模态号
471
+ Example:
472
+ odb.get_participation_factor(mode=1)
473
+ Returns: json字符串,包含信息为dict
474
+ """
475
+ try:
476
+ qt_model.GetParticipationFactor(mode=mode)
477
+ except Exception as ex:
478
+ raise Exception(ex)
479
+
386
480
  # endregion
387
481
 
388
482
  # region 绘制模型结果
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.6.4
4
- Summary: python modeling for qt 2025-01-21
3
+ Version: 0.6.6
4
+ Summary: python modeling for qt 2025-02-10
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,8 +12,8 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.4 - 2025-01-21
16
- > pip install --upgrade qtmodel -i https://pypi.org/simple
15
+ > 最新版本 V0.6.6 - 2025-02-10
16
+ > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增部分接口
18
18
  # 建模操作
19
19
  ## 项目管理
@@ -2125,7 +2125,6 @@ from qtmodel import *
2125
2125
  mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
2126
2126
  ```
2127
2127
  Returns: 无
2128
- ## 静力荷载操作
2129
2128
  ### remove_custom_temperature
2130
2129
  删除梁单元自定义温度
2131
2130
  > 参数:
@@ -2659,6 +2658,58 @@ from qtmodel import *
2659
2658
  mdb.remove_construction_stage(name="施工阶段1")
2660
2659
  ```
2661
2660
  Returns: 无
2661
+ ### add_section_connection_stage
2662
+ 添加施工阶段联合截面
2663
+ > 参数:
2664
+ > name:名称
2665
+ > sec_id:截面号
2666
+ > ele_id:单元号,支持整型和整型列表
2667
+ > stage_name:结合阶段名
2668
+ > age:材龄
2669
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2670
+ ```Python
2671
+ # 示例代码
2672
+ from qtmodel import *
2673
+ mdb.add_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2674
+ ```
2675
+ Returns:无
2676
+ ### update_section_connection_stage
2677
+ 更新施工阶段联合截面
2678
+ > 参数:
2679
+ > name:名称
2680
+ > new_name:新名称
2681
+ > sec_id:截面号
2682
+ > ele_id:单元号,支持整型和整型列表
2683
+ > stage_name:结合阶段名
2684
+ > age:材龄
2685
+ > weight_type:辅材计自重方式 0-由主材承担 1-由整体承担 2-不计辅材自重
2686
+ ```Python
2687
+ # 示例代码
2688
+ from qtmodel import *
2689
+ mdb.update_section_connection_stage(name="联合阶段",sec_id=1,ele_id=[2,3,4,5],stage_name="施工阶段1")
2690
+ ```
2691
+ Returns:无
2692
+ ### remove_section_connection_stage
2693
+ 删除施工阶段联合截面
2694
+ > 参数:
2695
+ > name:名称
2696
+ ```Python
2697
+ # 示例代码
2698
+ from qtmodel import *
2699
+ mdb.remove_section_connection_stage(name="联合阶段")
2700
+ ```
2701
+ Returns:无
2702
+ ### add_element_to_connection_stage
2703
+ 添加单元到施工阶段联合截面
2704
+ > 参数:
2705
+ > ele_id:单元号
2706
+ > name:联合阶段名
2707
+ ```Python
2708
+ # 示例代码
2709
+ from qtmodel import *
2710
+ mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
2711
+ ```
2712
+ Returns:无
2662
2713
  ## 荷载组合操作
2663
2714
  ### add_load_combine
2664
2715
  添加荷载组合
@@ -2878,6 +2929,51 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2878
2929
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2879
2930
  ```
2880
2931
  Returns: json字符串,包含信息为list[dict] or dict
2932
+ ### get_self_concurrent_reaction
2933
+ 获取自并发反力
2934
+ > 参数:
2935
+ > node_id:节点号
2936
+ > case_name:工况号
2937
+ ```Python
2938
+ # 示例代码
2939
+ from qtmodel import *
2940
+ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2941
+ ```
2942
+ Returns: json字符串,包含信息为dict
2943
+ ### get_all_concurrent_reaction
2944
+ 获取完全并发反力
2945
+ > 参数:
2946
+ > node_id:节点号
2947
+ > case_name:工况号
2948
+ ```Python
2949
+ # 示例代码
2950
+ from qtmodel import *
2951
+ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
2952
+ ```
2953
+ Returns: json字符串,包含信息为dict
2954
+ ### get_beam_concurrent_force
2955
+ 获取梁单元并发内力
2956
+ > 参数:
2957
+ > ele_id:单元号
2958
+ > case_name:工况号
2959
+ ```Python
2960
+ # 示例代码
2961
+ from qtmodel import *
2962
+ odb.get_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2963
+ ```
2964
+ Returns: json字符串,包含信息为dict
2965
+ ### get_composite_beam_concurrent_force
2966
+ 获取组合梁单元并发内力
2967
+ > 参数:
2968
+ > ele_id:单元号
2969
+ > case_name:工况号
2970
+ ```Python
2971
+ # 示例代码
2972
+ from qtmodel import *
2973
+ odb.get_composite_beam_concurrent_force(ele_id=1,case_name="工况1_Fx最大")
2974
+ ```
2975
+ Returns: json字符串,包含信息为dict
2976
+ ## 动力结果查看
2881
2977
  ### get_vibration_node_displacement
2882
2978
  获取指定节点指定模态的振型向量
2883
2979
  > 参数:
@@ -2889,7 +2985,6 @@ from qtmodel import *
2889
2985
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
2986
  ```
2891
2987
  Returns: json字符串,包含信息为list[dict] or dict
2892
- ## 动力结果查看
2893
2988
  ### get_period_and_frequency
2894
2989
  获取周期和频率
2895
2990
  > 参数:
@@ -2900,6 +2995,26 @@ from qtmodel import *
2900
2995
  odb.get_period_and_frequency(mode=1)
2901
2996
  ```
2902
2997
  Returns: json字符串,包含信息为dict
2998
+ ### get_participation_mass
2999
+ 获取振型参与质量百分比
3000
+ > 参数:
3001
+ > mode:模态号
3002
+ ```Python
3003
+ # 示例代码
3004
+ from qtmodel import *
3005
+ odb.get_participation_mass(mode=1)
3006
+ ```
3007
+ Returns: json字符串,包含信息为dict
3008
+ ### get_participation_factor
3009
+ 获取振型参与质量系数
3010
+ > 参数:
3011
+ > mode:模态号
3012
+ ```Python
3013
+ # 示例代码
3014
+ from qtmodel import *
3015
+ odb.get_participation_factor(mode=1)
3016
+ ```
3017
+ Returns: json字符串,包含信息为dict
2903
3018
  ## 绘制模型结果
2904
3019
  ### plot_reaction_result
2905
3020
  保存结果图片到指定文件甲
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
9
9
 
10
10
  setup(
11
11
  name="qtmodel",
12
- version=f"V0.6.4",
12
+ version=f"V0.6.6",
13
13
  author="dqy-zhj",
14
14
  author_email="1105417715@qq.com",
15
15
  description=f"python modeling for qt {datetime.now().date()} ",
File without changes
File without changes
File without changes