qtmodel 0.6.3__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.3
4
- Summary: python modeling for qt 2025-01-17
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,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.3 - 2025-01-17
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
20
  ### undo_model
@@ -2889,6 +2889,17 @@ from qtmodel import *
2889
2889
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
2890
  ```
2891
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
2892
2903
  ## 绘制模型结果
2893
2904
  ### plot_reaction_result
2894
2905
  保存结果图片到指定文件甲
@@ -3012,7 +3023,7 @@ Returns: 无
3012
3023
  > show_legend: 是否显示图例
3013
3024
  > text_rotation_angle: 数值选项卡内文字旋转角度
3014
3025
  > digital_count: 小数点位数
3015
- > show_as_exponential: 是否以指数形式显示
3026
+ > show_exponential: 是否以指数形式显示
3016
3027
  > max_min_kind: 最大最小值显示类型
3017
3028
  > show_increment: 是否显示增量结果
3018
3029
  ```Python
@@ -3155,7 +3166,7 @@ Returns: 无
3155
3166
  > show_legend: 是否显示图例
3156
3167
  > text_rotation_angle: 数值选项卡内文字旋转角度
3157
3168
  > digital_count: 小数点位数
3158
- > show_as_exponential: 是否以指数形式显示
3169
+ > show_exponential: 是否以指数形式显示
3159
3170
  > max_min_kind: 最大最小值显示类型
3160
3171
  > show_increment: 是否显示增量结果
3161
3172
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3165,6 +3176,24 @@ from qtmodel import *
3165
3176
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3166
3177
  ```
3167
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: 无
3168
3197
  ## 获取模型信息
3169
3198
  ### get_element_by_point
3170
3199
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3207,7 +3236,7 @@ Returns: json字符串,包含信息为list[list[int]]
3207
3236
  from qtmodel import *
3208
3237
  odb.get_overlap_elements()
3209
3238
  ```
3210
- Returns: json字符串,包含信息为list[list[int]]
3239
+ Returns: json字符串,包含信息为list[list[int]]
3211
3240
  ### get_structure_group_names
3212
3241
  获取结构组名称
3213
3242
  > 参数:
@@ -3225,7 +3254,7 @@ Returns: json字符串,包含信息为list[str]
3225
3254
  from qtmodel import *
3226
3255
  odb.get_thickness_data(1)
3227
3256
  ```
3228
- Returns: json字符串,包含信息为dict
3257
+ Returns:
3229
3258
  ### get_all_thickness_data
3230
3259
  获取所有板厚信息
3231
3260
  > 参数:
@@ -3253,7 +3282,7 @@ Returns: json字符串,包含信息为list[dict]
3253
3282
  from qtmodel import *
3254
3283
  odb.get_section_shape(1)
3255
3284
  ```
3256
- Returns: json字符串,包含信息为dict
3285
+ Returns:
3257
3286
  ### get_all_section_data
3258
3287
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3259
3288
  > 参数:
@@ -1,6 +1,6 @@
1
- > 最新版本 V0.6.3 - 2025-01-17
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
6
  ### undo_model
@@ -2875,6 +2875,17 @@ from qtmodel import *
2875
2875
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2876
2876
  ```
2877
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
2878
2889
  ## 绘制模型结果
2879
2890
  ### plot_reaction_result
2880
2891
  保存结果图片到指定文件甲
@@ -2998,7 +3009,7 @@ Returns: 无
2998
3009
  > show_legend: 是否显示图例
2999
3010
  > text_rotation_angle: 数值选项卡内文字旋转角度
3000
3011
  > digital_count: 小数点位数
3001
- > show_as_exponential: 是否以指数形式显示
3012
+ > show_exponential: 是否以指数形式显示
3002
3013
  > max_min_kind: 最大最小值显示类型
3003
3014
  > show_increment: 是否显示增量结果
3004
3015
  ```Python
@@ -3141,7 +3152,7 @@ Returns: 无
3141
3152
  > show_legend: 是否显示图例
3142
3153
  > text_rotation_angle: 数值选项卡内文字旋转角度
3143
3154
  > digital_count: 小数点位数
3144
- > show_as_exponential: 是否以指数形式显示
3155
+ > show_exponential: 是否以指数形式显示
3145
3156
  > max_min_kind: 最大最小值显示类型
3146
3157
  > show_increment: 是否显示增量结果
3147
3158
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3151,6 +3162,24 @@ from qtmodel import *
3151
3162
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3152
3163
  ```
3153
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: 无
3154
3183
  ## 获取模型信息
3155
3184
  ### get_element_by_point
3156
3185
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3193,7 +3222,7 @@ Returns: json字符串,包含信息为list[list[int]]
3193
3222
  from qtmodel import *
3194
3223
  odb.get_overlap_elements()
3195
3224
  ```
3196
- Returns: json字符串,包含信息为list[list[int]]
3225
+ Returns: json字符串,包含信息为list[list[int]]
3197
3226
  ### get_structure_group_names
3198
3227
  获取结构组名称
3199
3228
  > 参数:
@@ -3211,7 +3240,7 @@ Returns: json字符串,包含信息为list[str]
3211
3240
  from qtmodel import *
3212
3241
  odb.get_thickness_data(1)
3213
3242
  ```
3214
- Returns: json字符串,包含信息为dict
3243
+ Returns:
3215
3244
  ### get_all_thickness_data
3216
3245
  获取所有板厚信息
3217
3246
  > 参数:
@@ -3239,7 +3268,7 @@ Returns: json字符串,包含信息为list[dict]
3239
3268
  from qtmodel import *
3240
3269
  odb.get_section_shape(1)
3241
3270
  ```
3242
- Returns: json字符串,包含信息为dict
3271
+ Returns:
3243
3272
  ### get_all_section_data
3244
3273
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3245
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):
@@ -367,6 +367,24 @@ class Odb:
367
367
 
368
368
  # endregion
369
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
+
386
+ # endregion
387
+
370
388
  # region 绘制模型结果
371
389
  @staticmethod
372
390
  def plot_reaction_result(file_path: str, stage_id: int = 1, load_case_name: str = "", show_increment: bool = False,
@@ -540,7 +558,7 @@ class Odb:
540
558
  envelope_type: int = 1, force_kind: int = 0, component: int = 0,
541
559
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
542
560
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
543
- 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,
544
562
  show_pre_deformed: bool = False, ):
545
563
  """
546
564
  绘制板单元结果图并保存到指定文件
@@ -559,7 +577,7 @@ class Odb:
559
577
  show_legend: 是否显示图例
560
578
  text_rotation_angle: 数值选项卡内文字旋转角度
561
579
  digital_count: 小数点位数
562
- show_as_exponential: 是否以指数形式显示
580
+ show_exponential: 是否以指数形式显示
563
581
  max_min_kind: 最大最小值显示类型
564
582
  show_increment: 是否显示增量结果
565
583
  Example:
@@ -572,7 +590,7 @@ class Odb:
572
590
  envelopeType=envelope_type, forceKind=force_kind, component=component,
573
591
  showAsDeformedShape=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
574
592
  showNumber=show_number, textRotationAngle=text_rotation_angle, maxMinValueKind=max_min_kind,
575
- showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_as_exponential,
593
+ showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_exponential,
576
594
  showUndeformedShape=show_pre_deformed)
577
595
  except Exception as ex:
578
596
  raise Exception(ex)
@@ -769,7 +787,7 @@ class Odb:
769
787
  envelope_type: int = 1, stress_kind: int = 0, component: int = 0,
770
788
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
771
789
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
772
- 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,
773
791
  show_pre_deformed: bool = False, position: int = 0):
774
792
  """
775
793
  绘制板单元结果图并保存到指定文件
@@ -788,7 +806,7 @@ class Odb:
788
806
  show_legend: 是否显示图例
789
807
  text_rotation_angle: 数值选项卡内文字旋转角度
790
808
  digital_count: 小数点位数
791
- show_as_exponential: 是否以指数形式显示
809
+ show_exponential: 是否以指数形式显示
792
810
  max_min_kind: 最大最小值显示类型
793
811
  show_increment: 是否显示增量结果
794
812
  position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -802,11 +820,40 @@ class Odb:
802
820
  envelopeType=envelope_type, stressKind=stress_kind, component=component,
803
821
  showAsDeformedShape=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
804
822
  showNumber=show_number, textRotationAngle=text_rotation_angle, maxMinValueKind=max_min_kind,
805
- showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_as_exponential,
823
+ showLegend=show_legend, digitalCount=digital_count, showAsExponential=show_exponential,
806
824
  showUndeformedShape=show_pre_deformed, position=position)
807
825
  except Exception as ex:
808
826
  raise Exception(ex)
809
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
+
810
857
  # endregion
811
858
 
812
859
  # region 获取模型信息
@@ -873,7 +920,7 @@ class Odb:
873
920
  Args:无
874
921
  Example:
875
922
  odb.get_overlap_elements()
876
- Returns: json字符串,包含信息为list[list[int]]
923
+ Returns: json字符串,包含信息为list[list[int]]
877
924
  """
878
925
  try:
879
926
  result = []
@@ -906,7 +953,8 @@ class Odb:
906
953
  Args:
907
954
  Example:
908
955
  odb.get_thickness_data(1)
909
- Returns: json字符串,包含信息为dict
956
+ Returns:
957
+ json字符串,包含信息为dict
910
958
  """
911
959
  try:
912
960
  return qt_model.GetThicknessData(thick_id)
@@ -957,7 +1005,8 @@ class Odb:
957
1005
  sec_id: 目标截面编号
958
1006
  Example:
959
1007
  odb.get_section_shape(1)
960
- Returns: json字符串,包含信息为dict
1008
+ Returns:
1009
+ json字符串,包含信息为dict
961
1010
  """
962
1011
  try:
963
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.3
4
- Summary: python modeling for qt 2025-01-17
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,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- > 最新版本 V0.6.3 - 2025-01-17
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
20
  ### undo_model
@@ -2889,6 +2889,17 @@ from qtmodel import *
2889
2889
  odb.get_vibration_node_displacement(node_id=1,mode=1)
2890
2890
  ```
2891
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
2892
2903
  ## 绘制模型结果
2893
2904
  ### plot_reaction_result
2894
2905
  保存结果图片到指定文件甲
@@ -3012,7 +3023,7 @@ Returns: 无
3012
3023
  > show_legend: 是否显示图例
3013
3024
  > text_rotation_angle: 数值选项卡内文字旋转角度
3014
3025
  > digital_count: 小数点位数
3015
- > show_as_exponential: 是否以指数形式显示
3026
+ > show_exponential: 是否以指数形式显示
3016
3027
  > max_min_kind: 最大最小值显示类型
3017
3028
  > show_increment: 是否显示增量结果
3018
3029
  ```Python
@@ -3155,7 +3166,7 @@ Returns: 无
3155
3166
  > show_legend: 是否显示图例
3156
3167
  > text_rotation_angle: 数值选项卡内文字旋转角度
3157
3168
  > digital_count: 小数点位数
3158
- > show_as_exponential: 是否以指数形式显示
3169
+ > show_exponential: 是否以指数形式显示
3159
3170
  > max_min_kind: 最大最小值显示类型
3160
3171
  > show_increment: 是否显示增量结果
3161
3172
  > position: 位置 0-板顶 1-板底 2-绝对值最大
@@ -3165,6 +3176,24 @@ from qtmodel import *
3165
3176
  odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
3166
3177
  ```
3167
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: 无
3168
3197
  ## 获取模型信息
3169
3198
  ### get_element_by_point
3170
3199
  获取某一点指定范围内单元集合,单元中心点为节点平均值
@@ -3207,7 +3236,7 @@ Returns: json字符串,包含信息为list[list[int]]
3207
3236
  from qtmodel import *
3208
3237
  odb.get_overlap_elements()
3209
3238
  ```
3210
- Returns: json字符串,包含信息为list[list[int]]
3239
+ Returns: json字符串,包含信息为list[list[int]]
3211
3240
  ### get_structure_group_names
3212
3241
  获取结构组名称
3213
3242
  > 参数:
@@ -3225,7 +3254,7 @@ Returns: json字符串,包含信息为list[str]
3225
3254
  from qtmodel import *
3226
3255
  odb.get_thickness_data(1)
3227
3256
  ```
3228
- Returns: json字符串,包含信息为dict
3257
+ Returns:
3229
3258
  ### get_all_thickness_data
3230
3259
  获取所有板厚信息
3231
3260
  > 参数:
@@ -3253,7 +3282,7 @@ Returns: json字符串,包含信息为list[dict]
3253
3282
  from qtmodel import *
3254
3283
  odb.get_section_shape(1)
3255
3284
  ```
3256
- Returns: json字符串,包含信息为dict
3285
+ Returns:
3257
3286
  ### get_all_section_data
3258
3287
  获取所有截面详细信息,截面特性详见UI自定义特性截面
3259
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.3",
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