qtmodel 0.6.2__tar.gz → 0.6.4__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.2
4
- Summary: python modeling for qt 2025-01-13
3
+ Version: 0.6.4
4
+ Summary: python modeling for qt 2025-01-21
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # 最新版本 V0.6.2 - 2025-01-13
15
+ > 最新版本 V0.6.4 - 2025-01-21
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 修改部分接口
17
+ - 新增部分接口
18
+ # 建模操作
18
19
  ## 项目管理
19
20
  ### undo_model
20
21
  撤销模型上次操作
@@ -2700,6 +2701,7 @@ from qtmodel import *
2700
2701
  mdb.remove_load_combine(name="荷载组合1")
2701
2702
  ```
2702
2703
  Returns: 无
2704
+ # 视图与结果提取
2703
2705
  ## 视图控制
2704
2706
  ### display_node_id
2705
2707
  设置节点号显示
@@ -2876,6 +2878,28 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2876
2878
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2877
2879
  ```
2878
2880
  Returns: json字符串,包含信息为list[dict] or dict
2881
+ ### get_vibration_node_displacement
2882
+ 获取指定节点指定模态的振型向量
2883
+ > 参数:
2884
+ > node_id: 节点号
2885
+ > mode: 模态号
2886
+ ```Python
2887
+ # 示例代码
2888
+ from qtmodel import *
2889
+ odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
+ ```
2891
+ Returns: json字符串,包含信息为list[dict] or dict
2892
+ ## 动力结果查看
2893
+ ### get_period_and_frequency
2894
+ 获取周期和频率
2895
+ > 参数:
2896
+ > mode:模态号
2897
+ ```Python
2898
+ # 示例代码
2899
+ from qtmodel import *
2900
+ odb.get_period_and_frequency(mode=1)
2901
+ ```
2902
+ Returns: json字符串,包含信息为dict
2879
2903
  ## 绘制模型结果
2880
2904
  ### plot_reaction_result
2881
2905
  保存结果图片到指定文件甲
@@ -2999,7 +3023,7 @@ Returns: 无
2999
3023
  > show_legend: 是否显示图例
3000
3024
  > text_rotation_angle: 数值选项卡内文字旋转角度
3001
3025
  > digital_count: 小数点位数
3002
- > show_as_exponential: 是否以指数形式显示
3026
+ > show_exponential: 是否以指数形式显示
3003
3027
  > max_min_kind: 最大最小值显示类型
3004
3028
  > show_increment: 是否显示增量结果
3005
3029
  ```Python
@@ -3142,7 +3166,7 @@ Returns: 无
3142
3166
  > show_legend: 是否显示图例
3143
3167
  > text_rotation_angle: 数值选项卡内文字旋转角度
3144
3168
  > digital_count: 小数点位数
3145
- > show_as_exponential: 是否以指数形式显示
3169
+ > show_exponential: 是否以指数形式显示
3146
3170
  > max_min_kind: 最大最小值显示类型
3147
3171
  > show_increment: 是否显示增量结果
3148
3172
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3152,6 +3176,24 @@ from qtmodel import *
3152
3176
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3153
3177
  ```
3154
3178
  Returns: 无
3179
+ ### plot_vibration_mode
3180
+ 绘制板单元结果图并保存到指定文件
3181
+ > 参数:
3182
+ > file_path: 保存路径名
3183
+ > mode: 模态号
3184
+ > show_number: 是否显示数值
3185
+ > show_pre_deformed: 是否显示未变形形状
3186
+ > show_legend: 是否显示图例
3187
+ > text_rotation_angle: 数值选项卡内文字旋转角度
3188
+ > digital_count: 小数点位数
3189
+ > show_exponential: 是否以指数形式显示
3190
+ > max_min_kind: 最大最小值显示类型
3191
+ ```Python
3192
+ # 示例代码
3193
+ from qtmodel import *
3194
+ odb.plot_vibration_mode(file_path=r"D:\\图片\\自振模态.png",mode=1)
3195
+ ```
3196
+ Returns: 无
3155
3197
  ## 获取模型信息
3156
3198
  ### get_element_by_point
3157
3199
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3194,7 +3236,7 @@ Returns: json字符串,包含信息为list[list[int]]
3194
3236
  from qtmodel import *
3195
3237
  odb.get_overlap_elements()
3196
3238
  ```
3197
- Returns: json字符串,包含信息为list[list[int]]
3239
+ Returns: json字符串,包含信息为list[list[int]]
3198
3240
  ### get_structure_group_names
3199
3241
  获取结构组名称
3200
3242
  > 参数:
@@ -3212,7 +3254,7 @@ Returns: json字符串,包含信息为list[str]
3212
3254
  from qtmodel import *
3213
3255
  odb.get_thickness_data(1)
3214
3256
  ```
3215
- Returns: json字符串,包含信息为dict
3257
+ Returns:
3216
3258
  ### get_all_thickness_data
3217
3259
  获取所有板厚信息
3218
3260
  > 参数:
@@ -3240,7 +3282,7 @@ Returns: json字符串,包含信息为list[dict]
3240
3282
  from qtmodel import *
3241
3283
  odb.get_section_shape(1)
3242
3284
  ```
3243
- Returns: json字符串,包含信息为dict
3285
+ Returns:
3244
3286
  ### get_all_section_data
3245
3287
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3246
3288
  > 参数:
@@ -1,6 +1,7 @@
1
- # 最新版本 V0.6.2 - 2025-01-13
1
+ > 最新版本 V0.6.4 - 2025-01-21
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 修改部分接口
3
+ - 新增部分接口
4
+ # 建模操作
4
5
  ## 项目管理
5
6
  ### undo_model
6
7
  撤销模型上次操作
@@ -2686,6 +2687,7 @@ from qtmodel import *
2686
2687
  mdb.remove_load_combine(name="荷载组合1")
2687
2688
  ```
2688
2689
  Returns: 无
2690
+ # 视图与结果提取
2689
2691
  ## 视图控制
2690
2692
  ### display_node_id
2691
2693
  设置节点号显示
@@ -2862,6 +2864,28 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2862
2864
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2863
2865
  ```
2864
2866
  Returns: json字符串,包含信息为list[dict] or dict
2867
+ ### get_vibration_node_displacement
2868
+ 获取指定节点指定模态的振型向量
2869
+ > 参数:
2870
+ > node_id: 节点号
2871
+ > mode: 模态号
2872
+ ```Python
2873
+ # 示例代码
2874
+ from qtmodel import *
2875
+ odb.get_vibration_node_displacement(node_id=1,mode=1)
2876
+ ```
2877
+ Returns: json字符串,包含信息为list[dict] or dict
2878
+ ## 动力结果查看
2879
+ ### get_period_and_frequency
2880
+ 获取周期和频率
2881
+ > 参数:
2882
+ > mode:模态号
2883
+ ```Python
2884
+ # 示例代码
2885
+ from qtmodel import *
2886
+ odb.get_period_and_frequency(mode=1)
2887
+ ```
2888
+ Returns: json字符串,包含信息为dict
2865
2889
  ## 绘制模型结果
2866
2890
  ### plot_reaction_result
2867
2891
  保存结果图片到指定文件甲
@@ -2985,7 +3009,7 @@ Returns: 无
2985
3009
  > show_legend: 是否显示图例
2986
3010
  > text_rotation_angle: 数值选项卡内文字旋转角度
2987
3011
  > digital_count: 小数点位数
2988
- > show_as_exponential: 是否以指数形式显示
3012
+ > show_exponential: 是否以指数形式显示
2989
3013
  > max_min_kind: 最大最小值显示类型
2990
3014
  > show_increment: 是否显示增量结果
2991
3015
  ```Python
@@ -3128,7 +3152,7 @@ Returns: 无
3128
3152
  > show_legend: 是否显示图例
3129
3153
  > text_rotation_angle: 数值选项卡内文字旋转角度
3130
3154
  > digital_count: 小数点位数
3131
- > show_as_exponential: 是否以指数形式显示
3155
+ > show_exponential: 是否以指数形式显示
3132
3156
  > max_min_kind: 最大最小值显示类型
3133
3157
  > show_increment: 是否显示增量结果
3134
3158
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3138,6 +3162,24 @@ from qtmodel import *
3138
3162
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3139
3163
  ```
3140
3164
  Returns: 无
3165
+ ### plot_vibration_mode
3166
+ 绘制板单元结果图并保存到指定文件
3167
+ > 参数:
3168
+ > file_path: 保存路径名
3169
+ > mode: 模态号
3170
+ > show_number: 是否显示数值
3171
+ > show_pre_deformed: 是否显示未变形形状
3172
+ > show_legend: 是否显示图例
3173
+ > text_rotation_angle: 数值选项卡内文字旋转角度
3174
+ > digital_count: 小数点位数
3175
+ > show_exponential: 是否以指数形式显示
3176
+ > max_min_kind: 最大最小值显示类型
3177
+ ```Python
3178
+ # 示例代码
3179
+ from qtmodel import *
3180
+ odb.plot_vibration_mode(file_path=r"D:\\图片\\自振模态.png",mode=1)
3181
+ ```
3182
+ Returns: 无
3141
3183
  ## 获取模型信息
3142
3184
  ### get_element_by_point
3143
3185
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3180,7 +3222,7 @@ Returns: json字符串,包含信息为list[list[int]]
3180
3222
  from qtmodel import *
3181
3223
  odb.get_overlap_elements()
3182
3224
  ```
3183
- Returns: json字符串,包含信息为list[list[int]]
3225
+ Returns: json字符串,包含信息为list[list[int]]
3184
3226
  ### get_structure_group_names
3185
3227
  获取结构组名称
3186
3228
  > 参数:
@@ -3198,7 +3240,7 @@ Returns: json字符串,包含信息为list[str]
3198
3240
  from qtmodel import *
3199
3241
  odb.get_thickness_data(1)
3200
3242
  ```
3201
- Returns: json字符串,包含信息为dict
3243
+ Returns:
3202
3244
  ### get_all_thickness_data
3203
3245
  获取所有板厚信息
3204
3246
  > 参数:
@@ -3226,7 +3268,7 @@ Returns: json字符串,包含信息为list[dict]
3226
3268
  from qtmodel import *
3227
3269
  odb.get_section_shape(1)
3228
3270
  ```
3229
- Returns: json字符串,包含信息为dict
3271
+ Returns:
3230
3272
  ### get_all_section_data
3231
3273
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3232
3274
  > 参数:
@@ -214,7 +214,7 @@ class Mdb:
214
214
  raise Exception(ex)
215
215
 
216
216
  @staticmethod
217
- def update_construction_stage_setting(do_analysis: bool, to_end_stage: bool, other_stage_id: int = 1, analysis_type: int = 0,
217
+ def update_construction_stage_setting(do_analysis: bool = True, to_end_stage: bool = True, other_stage_id: int = 1, analysis_type: int = 0,
218
218
  do_creep_analysis: bool = True, cable_tension_position: int = 0, consider_completion_stage: bool = True,
219
219
  shrink_creep_type: int = 2, creep_load_type: int = 1,
220
220
  sub_step_info: tuple[bool, float, float, float, float, float] = None):
@@ -343,6 +343,46 @@ class Odb:
343
343
  except Exception as ex:
344
344
  raise Exception(ex)
345
345
 
346
+ @staticmethod
347
+ def get_vibration_node_displacement(node_id: (Union[int, List[int]]) = None, mode: int = 1):
348
+ """
349
+ 获取指定节点指定模态的振型向量
350
+ Args:
351
+ node_id: 节点号
352
+ mode: 模态号
353
+ Example:
354
+ odb.get_vibration_node_displacement(node_id=1,mode=1)
355
+ Returns: json字符串,包含信息为list[dict] or dict
356
+ """
357
+ try:
358
+ bf_list = qt_model.GetVibrationNodeDisplacement(nodeIds=node_id, mode=mode)
359
+ list_res = []
360
+ for item in bf_list:
361
+ displacements = [item.Displacement.Dx, item.Displacement.Dy, item.Displacement.Dz,
362
+ item.Displacement.Rx, item.Displacement.Ry, item.Displacement.Rz]
363
+ list_res.append(str(NodeDisplacement(item.NodeId, displacements)))
364
+ return json.dumps(list_res) if len(list_res) > 1 else list_res[0]
365
+ except Exception as ex:
366
+ raise Exception(ex)
367
+
368
+ # endregion
369
+
370
+ # region 动力结果查看
371
+ @staticmethod
372
+ def get_period_and_frequency(mode: int = 1):
373
+ """
374
+ 获取周期和频率
375
+ Args:
376
+ mode:模态号
377
+ Example:
378
+ odb.get_period_and_frequency(mode=1)
379
+ Returns: json字符串,包含信息为dict
380
+ """
381
+ try:
382
+ qt_model.GetPeriodAndFrequency(mode=mode)
383
+ except Exception as ex:
384
+ raise Exception(ex)
385
+
346
386
  # endregion
347
387
 
348
388
  # region 绘制模型结果
@@ -518,7 +558,7 @@ class Odb:
518
558
  envelope_type: int = 1, force_kind: int = 0, component: int = 0,
519
559
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
520
560
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
521
- show_legend: bool = True, digital_count: int = 3, show_as_exponential: bool = True,
561
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
522
562
  show_pre_deformed: bool = False, ):
523
563
  """
524
564
  绘制板单元结果图并保存到指定文件
@@ -537,7 +577,7 @@ class Odb:
537
577
  show_legend: 是否显示图例
538
578
  text_rotation_angle: 数值选项卡内文字旋转角度
539
579
  digital_count: 小数点位数
540
- show_as_exponential: 是否以指数形式显示
580
+ show_exponential: 是否以指数形式显示
541
581
  max_min_kind: 最大最小值显示类型
542
582
  show_increment: 是否显示增量结果
543
583
  Example:
@@ -550,7 +590,7 @@ class Odb:
550
590
  envelopeType=envelope_type, forceKind=force_kind, component=component,
551
591
  showAsDeformedShape=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
552
592
  showNumber=show_number, textRotationAngle=text_rotation_angle, maxMinValueKind=max_min_kind,
553
- showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_as_exponential,
593
+ showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_exponential,
554
594
  showUndeformedShape=show_pre_deformed)
555
595
  except Exception as ex:
556
596
  raise Exception(ex)
@@ -747,7 +787,7 @@ class Odb:
747
787
  envelope_type: int = 1, stress_kind: int = 0, component: int = 0,
748
788
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
749
789
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
750
- show_legend: bool = True, digital_count: int = 3, show_as_exponential: bool = True,
790
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
751
791
  show_pre_deformed: bool = False, position: int = 0):
752
792
  """
753
793
  绘制板单元结果图并保存到指定文件
@@ -766,7 +806,7 @@ class Odb:
766
806
  show_legend: 是否显示图例
767
807
  text_rotation_angle: 数值选项卡内文字旋转角度
768
808
  digital_count: 小数点位数
769
- show_as_exponential: 是否以指数形式显示
809
+ show_exponential: 是否以指数形式显示
770
810
  max_min_kind: 最大最小值显示类型
771
811
  show_increment: 是否显示增量结果
772
812
  position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -780,11 +820,40 @@ class Odb:
780
820
  envelopeType=envelope_type, stressKind=stress_kind, component=component,
781
821
  showAsDeformedShape=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
782
822
  showNumber=show_number, textRotationAngle=text_rotation_angle, maxMinValueKind=max_min_kind,
783
- showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_as_exponential,
823
+ showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_exponential,
784
824
  showUndeformedShape=show_pre_deformed, position=position)
785
825
  except Exception as ex:
786
826
  raise Exception(ex)
787
827
 
828
+ @staticmethod
829
+ def plot_vibration_mode(file_path: str = "", mode: int = 1, show_number: bool = True, text_rotation_angle: float = 0, max_min_kind: int = 0,
830
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
831
+ show_pre_deformed: bool = False):
832
+ """
833
+ 绘制板单元结果图并保存到指定文件
834
+ Args:
835
+ file_path: 保存路径名
836
+ mode: 模态号
837
+ show_number: 是否显示数值
838
+ show_pre_deformed: 是否显示未变形形状
839
+ show_legend: 是否显示图例
840
+ text_rotation_angle: 数值选项卡内文字旋转角度
841
+ digital_count: 小数点位数
842
+ show_exponential: 是否以指数形式显示
843
+ max_min_kind: 最大最小值显示类型
844
+ Example:
845
+ odb.plot_vibration_mode(file_path=r"D:\\图片\\自振模态.png",mode=1)
846
+ Returns: 无
847
+ """
848
+ try:
849
+ qt_model.PlotVibrationMode(
850
+ filePath=file_path, mode=mode,
851
+ showNumber=show_number, textRotationAngle=text_rotation_angle, maxMinValueKind=max_min_kind,
852
+ showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_exponential,
853
+ showUndeformedShape=show_pre_deformed)
854
+ except Exception as ex:
855
+ raise Exception(ex)
856
+
788
857
  # endregion
789
858
 
790
859
  # region 获取模型信息
@@ -851,7 +920,7 @@ class Odb:
851
920
  Args:无
852
921
  Example:
853
922
  odb.get_overlap_elements()
854
- Returns: json字符串,包含信息为list[list[int]]
923
+ Returns: json字符串,包含信息为list[list[int]]
855
924
  """
856
925
  try:
857
926
  result = []
@@ -884,7 +953,8 @@ class Odb:
884
953
  Args:
885
954
  Example:
886
955
  odb.get_thickness_data(1)
887
- Returns: json字符串,包含信息为dict
956
+ Returns:
957
+ json字符串,包含信息为dict
888
958
  """
889
959
  try:
890
960
  return qt_model.GetThicknessData(thick_id)
@@ -935,7 +1005,8 @@ class Odb:
935
1005
  sec_id: 目标截面编号
936
1006
  Example:
937
1007
  odb.get_section_shape(1)
938
- Returns: json字符串,包含信息为dict
1008
+ Returns:
1009
+ json字符串,包含信息为dict
939
1010
  """
940
1011
  try:
941
1012
  return qt_model.GetSectionShape(sec_id)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.6.2
4
- Summary: python modeling for qt 2025-01-13
3
+ Version: 0.6.4
4
+ Summary: python modeling for qt 2025-01-21
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
7
7
  Author-email: 1105417715@qq.com
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # 最新版本 V0.6.2 - 2025-01-13
15
+ > 最新版本 V0.6.4 - 2025-01-21
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 修改部分接口
17
+ - 新增部分接口
18
+ # 建模操作
18
19
  ## 项目管理
19
20
  ### undo_model
20
21
  撤销模型上次操作
@@ -2700,6 +2701,7 @@ from qtmodel import *
2700
2701
  mdb.remove_load_combine(name="荷载组合1")
2701
2702
  ```
2702
2703
  Returns: 无
2704
+ # 视图与结果提取
2703
2705
  ## 视图控制
2704
2706
  ### display_node_id
2705
2707
  设置节点号显示
@@ -2876,6 +2878,28 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
2876
2878
  odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
2877
2879
  ```
2878
2880
  Returns: json字符串,包含信息为list[dict] or dict
2881
+ ### get_vibration_node_displacement
2882
+ 获取指定节点指定模态的振型向量
2883
+ > 参数:
2884
+ > node_id: 节点号
2885
+ > mode: 模态号
2886
+ ```Python
2887
+ # 示例代码
2888
+ from qtmodel import *
2889
+ odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
+ ```
2891
+ Returns: json字符串,包含信息为list[dict] or dict
2892
+ ## 动力结果查看
2893
+ ### get_period_and_frequency
2894
+ 获取周期和频率
2895
+ > 参数:
2896
+ > mode:模态号
2897
+ ```Python
2898
+ # 示例代码
2899
+ from qtmodel import *
2900
+ odb.get_period_and_frequency(mode=1)
2901
+ ```
2902
+ Returns: json字符串,包含信息为dict
2879
2903
  ## 绘制模型结果
2880
2904
  ### plot_reaction_result
2881
2905
  保存结果图片到指定文件甲
@@ -2999,7 +3023,7 @@ Returns: 无
2999
3023
  > show_legend: 是否显示图例
3000
3024
  > text_rotation_angle: 数值选项卡内文字旋转角度
3001
3025
  > digital_count: 小数点位数
3002
- > show_as_exponential: 是否以指数形式显示
3026
+ > show_exponential: 是否以指数形式显示
3003
3027
  > max_min_kind: 最大最小值显示类型
3004
3028
  > show_increment: 是否显示增量结果
3005
3029
  ```Python
@@ -3142,7 +3166,7 @@ Returns: 无
3142
3166
  > show_legend: 是否显示图例
3143
3167
  > text_rotation_angle: 数值选项卡内文字旋转角度
3144
3168
  > digital_count: 小数点位数
3145
- > show_as_exponential: 是否以指数形式显示
3169
+ > show_exponential: 是否以指数形式显示
3146
3170
  > max_min_kind: 最大最小值显示类型
3147
3171
  > show_increment: 是否显示增量结果
3148
3172
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3152,6 +3176,24 @@ from qtmodel import *
3152
3176
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3153
3177
  ```
3154
3178
  Returns: 无
3179
+ ### plot_vibration_mode
3180
+ 绘制板单元结果图并保存到指定文件
3181
+ > 参数:
3182
+ > file_path: 保存路径名
3183
+ > mode: 模态号
3184
+ > show_number: 是否显示数值
3185
+ > show_pre_deformed: 是否显示未变形形状
3186
+ > show_legend: 是否显示图例
3187
+ > text_rotation_angle: 数值选项卡内文字旋转角度
3188
+ > digital_count: 小数点位数
3189
+ > show_exponential: 是否以指数形式显示
3190
+ > max_min_kind: 最大最小值显示类型
3191
+ ```Python
3192
+ # 示例代码
3193
+ from qtmodel import *
3194
+ odb.plot_vibration_mode(file_path=r"D:\\图片\\自振模态.png",mode=1)
3195
+ ```
3196
+ Returns: 无
3155
3197
  ## 获取模型信息
3156
3198
  ### get_element_by_point
3157
3199
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3194,7 +3236,7 @@ Returns: json字符串,包含信息为list[list[int]]
3194
3236
  from qtmodel import *
3195
3237
  odb.get_overlap_elements()
3196
3238
  ```
3197
- Returns: json字符串,包含信息为list[list[int]]
3239
+ Returns: json字符串,包含信息为list[list[int]]
3198
3240
  ### get_structure_group_names
3199
3241
  获取结构组名称
3200
3242
  > 参数:
@@ -3212,7 +3254,7 @@ Returns: json字符串,包含信息为list[str]
3212
3254
  from qtmodel import *
3213
3255
  odb.get_thickness_data(1)
3214
3256
  ```
3215
- Returns: json字符串,包含信息为dict
3257
+ Returns:
3216
3258
  ### get_all_thickness_data
3217
3259
  获取所有板厚信息
3218
3260
  > 参数:
@@ -3240,7 +3282,7 @@ Returns: json字符串,包含信息为list[dict]
3240
3282
  from qtmodel import *
3241
3283
  odb.get_section_shape(1)
3242
3284
  ```
3243
- Returns: json字符串,包含信息为dict
3285
+ Returns:
3244
3286
  ### get_all_section_data
3245
3287
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3246
3288
  > 参数:
@@ -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.2",
12
+ version=f"V0.6.4",
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