qtmodel 0.5.32__tar.gz → 0.5.33__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.32
3
+ Version: 0.5.33
4
4
  Summary: python modeling for qt 24/10/31
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -12,8 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
16
- # 最新版本 V0.5.32 - 2024.10.30
15
+ # 最新版本 V0.5.33 - 2024.10.31
17
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
18
17
  - 修改帮助文档
19
18
  ## 项目管理
@@ -168,13 +167,13 @@ Returns: 无
168
167
  > non_linear_method: 非线性方法 0-修正牛顿法 1-牛顿法
169
168
  > max_loading_steps: 最大加载步数
170
169
  > max_iteration_times: 最大迭代次数
171
- > relative_accuracy_of_displacement: 位移相对精度
172
- > relative_accuracy_of_force: 内力相对精度
170
+ > accuracy_of_displacement: 位移相对精度
171
+ > accuracy_of_force: 内力相对精度
173
172
  ```Python
174
173
  # 示例代码
175
174
  from qtmodel import *
176
175
  mdb.update_non_linear_setting(non_linear_type=-1, non_linear_method=1, max_loading_steps=-1, max_iteration_times=30,
177
- relative_accuracy_of_displacement=0.0001, relative_accuracy_of_force=0.0001)
176
+ accuracy_of_displacement=0.0001, accuracy_of_force=0.0001)
178
177
  ```
179
178
  Returns: 无
180
179
  ### update_operation_stage_setting
@@ -204,6 +203,19 @@ from qtmodel import *
204
203
  mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
205
204
  ```
206
205
  Returns: 无
206
+ ### update_response_spectrum_setting
207
+ 更新反应谱设置
208
+ > 参数:
209
+ > do_analysis:是否进行反应谱分析
210
+ > kind:组合方式 1-SRSS 2-CQC
211
+ > by_mode: 是否按照振型输入阻尼比
212
+ > damping_ratio:常数阻尼比或振型阻尼比列表
213
+ ```Python
214
+ # 示例代码
215
+ from qtmodel import *
216
+ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
217
+ ```
218
+ Returns: 无
207
219
  ## 节点操作
208
220
  ### add_node
209
221
  根据坐标信息和节点编号添加节点,默认自动识别编号
@@ -1019,6 +1031,77 @@ from qtmodel import *
1019
1031
  mdb.remove_live_load_case(name="活载工况1")
1020
1032
  ```
1021
1033
  Returns: 无
1034
+ ## 动力荷载操作
1035
+ ### add_load_to_mass
1036
+ 添加荷载转为质量
1037
+ > 参数:
1038
+ > name: 荷载工况名称
1039
+ > factor: 系数
1040
+ ```Python
1041
+ # 示例代码
1042
+ from qtmodel import *
1043
+ mdb.add_load_to_mass(name="荷载工况",factor=1)
1044
+ ```
1045
+ Returns: 无
1046
+ ### add_nodal_mass
1047
+ 添加节点质量
1048
+ > 参数:
1049
+ > node_id:节点编号,支持单个编号和编号列表
1050
+ > mass_info:[m,rmX,rmY,rmZ]
1051
+ ```Python
1052
+ # 示例代码
1053
+ from qtmodel import *
1054
+ mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1055
+ ```
1056
+ Returns: 无
1057
+ ### remove_nodal_mass
1058
+ 删除节点质量
1059
+ > 参数:
1060
+ > node_id:节点号,默认删除所有节点质量
1061
+ ```Python
1062
+ # 示例代码
1063
+ from qtmodel import *
1064
+ mdb.remove_nodal_mass(node_id=1)
1065
+ ```
1066
+ Returns: 无
1067
+ ### remove_load_to_mass
1068
+ 删除荷载转为质量
1069
+ > 参数:
1070
+ > name:荷载工况名
1071
+ ```Python
1072
+ # 示例代码
1073
+ from qtmodel import *
1074
+ mdb.remove_load_to_mass(name="荷载工况")
1075
+ ```
1076
+ Returns: 无
1077
+ ### add_spectrum_function
1078
+ 添加反应谱函数
1079
+ > 参数:
1080
+ > name:反应谱函数名
1081
+ > factor:反应谱调整系数
1082
+ > kind:反应谱类型 0-无量纲 1-加速度 2-位移
1083
+ > function_info:反应谱函数信息
1084
+ ```Python
1085
+ # 示例代码
1086
+ from qtmodel import *
1087
+ mdb.add_spectrum_function(name="反应谱函数1",factor=1.0,function_info=[(0,0.02),(1,0.03)])
1088
+ ```
1089
+ Returns: 无
1090
+ ### add_spectrum_case
1091
+ 添加反应谱工况
1092
+ > 参数:
1093
+ > name:荷载工况名
1094
+ > description:说明
1095
+ > kind:组合方式 1-求模 2-求和
1096
+ > info_x: 反应谱X向信息 (X方向函数名,系数)
1097
+ > info_y: 反应谱Y向信息 (Y方向函数名,系数)
1098
+ > info_z: 反应谱Z向信息 (Z方向函数名,系数)
1099
+ ```Python
1100
+ # 示例代码
1101
+ from qtmodel import *
1102
+ mdb.add_spectrum_case(name="反应谱工况",info_x=("函数1",1.0))
1103
+ ```
1104
+ Returns: 无
1022
1105
  ## 钢束操作
1023
1106
  ### add_tendon_group
1024
1107
  按照名称添加钢束组,添加时可指定钢束组id
@@ -1177,48 +1260,6 @@ from qtmodel import *
1177
1260
  mdb.remove_load_group(name="荷载组1")
1178
1261
  ```
1179
1262
  Returns: 无
1180
- ### add_load_to_mass
1181
- 添加荷载转为质量
1182
- > 参数:
1183
- > name: 荷载工况名称
1184
- > factor: 系数
1185
- ```Python
1186
- # 示例代码
1187
- from qtmodel import *
1188
- mdb.add_load_to_mass(name="荷载工况",factor=1)
1189
- ```
1190
- Returns: 无
1191
- ### add_nodal_mass
1192
- 添加节点质量
1193
- > 参数:
1194
- > node_id:节点编号,支持单个编号和编号列表
1195
- > mass_info:[m,rmX,rmY,rmZ]
1196
- ```Python
1197
- # 示例代码
1198
- from qtmodel import *
1199
- mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1200
- ```
1201
- Returns: 无
1202
- ### remove_nodal_mass
1203
- 删除节点质量
1204
- > 参数:
1205
- > node_id:节点号,默认删除所有节点质量
1206
- ```Python
1207
- # 示例代码
1208
- from qtmodel import *
1209
- mdb.remove_nodal_mass(node_id=1)
1210
- ```
1211
- Returns: 无
1212
- ### remove_load_to_mass
1213
- 删除荷载转为质量
1214
- > 参数:
1215
- > name:荷载工况名
1216
- ```Python
1217
- # 示例代码
1218
- from qtmodel import *
1219
- mdb.remove_load_to_mass(name="荷载工况")
1220
- ```
1221
- Returns: 无
1222
1263
  ### add_pre_stress
1223
1264
  添加预应力
1224
1265
  > 参数:
@@ -1783,7 +1824,7 @@ Returns: 无
1783
1824
  > describe:描述
1784
1825
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
1785
1826
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合_
1786
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_
1827
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况_
1787
1828
  ```Python
1788
1829
  # 示例代码
1789
1830
  from qtmodel import *
@@ -1,5 +1,4 @@
1
- C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
2
- # 最新版本 V0.5.32 - 2024.10.30
1
+ # 最新版本 V0.5.33 - 2024.10.31
3
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
4
3
  - 修改帮助文档
5
4
  ## 项目管理
@@ -154,13 +153,13 @@ Returns: 无
154
153
  > non_linear_method: 非线性方法 0-修正牛顿法 1-牛顿法
155
154
  > max_loading_steps: 最大加载步数
156
155
  > max_iteration_times: 最大迭代次数
157
- > relative_accuracy_of_displacement: 位移相对精度
158
- > relative_accuracy_of_force: 内力相对精度
156
+ > accuracy_of_displacement: 位移相对精度
157
+ > accuracy_of_force: 内力相对精度
159
158
  ```Python
160
159
  # 示例代码
161
160
  from qtmodel import *
162
161
  mdb.update_non_linear_setting(non_linear_type=-1, non_linear_method=1, max_loading_steps=-1, max_iteration_times=30,
163
- relative_accuracy_of_displacement=0.0001, relative_accuracy_of_force=0.0001)
162
+ accuracy_of_displacement=0.0001, accuracy_of_force=0.0001)
164
163
  ```
165
164
  Returns: 无
166
165
  ### update_operation_stage_setting
@@ -190,6 +189,19 @@ from qtmodel import *
190
189
  mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
191
190
  ```
192
191
  Returns: 无
192
+ ### update_response_spectrum_setting
193
+ 更新反应谱设置
194
+ > 参数:
195
+ > do_analysis:是否进行反应谱分析
196
+ > kind:组合方式 1-SRSS 2-CQC
197
+ > by_mode: 是否按照振型输入阻尼比
198
+ > damping_ratio:常数阻尼比或振型阻尼比列表
199
+ ```Python
200
+ # 示例代码
201
+ from qtmodel import *
202
+ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
203
+ ```
204
+ Returns: 无
193
205
  ## 节点操作
194
206
  ### add_node
195
207
  根据坐标信息和节点编号添加节点,默认自动识别编号
@@ -1005,6 +1017,77 @@ from qtmodel import *
1005
1017
  mdb.remove_live_load_case(name="活载工况1")
1006
1018
  ```
1007
1019
  Returns: 无
1020
+ ## 动力荷载操作
1021
+ ### add_load_to_mass
1022
+ 添加荷载转为质量
1023
+ > 参数:
1024
+ > name: 荷载工况名称
1025
+ > factor: 系数
1026
+ ```Python
1027
+ # 示例代码
1028
+ from qtmodel import *
1029
+ mdb.add_load_to_mass(name="荷载工况",factor=1)
1030
+ ```
1031
+ Returns: 无
1032
+ ### add_nodal_mass
1033
+ 添加节点质量
1034
+ > 参数:
1035
+ > node_id:节点编号,支持单个编号和编号列表
1036
+ > mass_info:[m,rmX,rmY,rmZ]
1037
+ ```Python
1038
+ # 示例代码
1039
+ from qtmodel import *
1040
+ mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1041
+ ```
1042
+ Returns: 无
1043
+ ### remove_nodal_mass
1044
+ 删除节点质量
1045
+ > 参数:
1046
+ > node_id:节点号,默认删除所有节点质量
1047
+ ```Python
1048
+ # 示例代码
1049
+ from qtmodel import *
1050
+ mdb.remove_nodal_mass(node_id=1)
1051
+ ```
1052
+ Returns: 无
1053
+ ### remove_load_to_mass
1054
+ 删除荷载转为质量
1055
+ > 参数:
1056
+ > name:荷载工况名
1057
+ ```Python
1058
+ # 示例代码
1059
+ from qtmodel import *
1060
+ mdb.remove_load_to_mass(name="荷载工况")
1061
+ ```
1062
+ Returns: 无
1063
+ ### add_spectrum_function
1064
+ 添加反应谱函数
1065
+ > 参数:
1066
+ > name:反应谱函数名
1067
+ > factor:反应谱调整系数
1068
+ > kind:反应谱类型 0-无量纲 1-加速度 2-位移
1069
+ > function_info:反应谱函数信息
1070
+ ```Python
1071
+ # 示例代码
1072
+ from qtmodel import *
1073
+ mdb.add_spectrum_function(name="反应谱函数1",factor=1.0,function_info=[(0,0.02),(1,0.03)])
1074
+ ```
1075
+ Returns: 无
1076
+ ### add_spectrum_case
1077
+ 添加反应谱工况
1078
+ > 参数:
1079
+ > name:荷载工况名
1080
+ > description:说明
1081
+ > kind:组合方式 1-求模 2-求和
1082
+ > info_x: 反应谱X向信息 (X方向函数名,系数)
1083
+ > info_y: 反应谱Y向信息 (Y方向函数名,系数)
1084
+ > info_z: 反应谱Z向信息 (Z方向函数名,系数)
1085
+ ```Python
1086
+ # 示例代码
1087
+ from qtmodel import *
1088
+ mdb.add_spectrum_case(name="反应谱工况",info_x=("函数1",1.0))
1089
+ ```
1090
+ Returns: 无
1008
1091
  ## 钢束操作
1009
1092
  ### add_tendon_group
1010
1093
  按照名称添加钢束组,添加时可指定钢束组id
@@ -1163,48 +1246,6 @@ from qtmodel import *
1163
1246
  mdb.remove_load_group(name="荷载组1")
1164
1247
  ```
1165
1248
  Returns: 无
1166
- ### add_load_to_mass
1167
- 添加荷载转为质量
1168
- > 参数:
1169
- > name: 荷载工况名称
1170
- > factor: 系数
1171
- ```Python
1172
- # 示例代码
1173
- from qtmodel import *
1174
- mdb.add_load_to_mass(name="荷载工况",factor=1)
1175
- ```
1176
- Returns: 无
1177
- ### add_nodal_mass
1178
- 添加节点质量
1179
- > 参数:
1180
- > node_id:节点编号,支持单个编号和编号列表
1181
- > mass_info:[m,rmX,rmY,rmZ]
1182
- ```Python
1183
- # 示例代码
1184
- from qtmodel import *
1185
- mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1186
- ```
1187
- Returns: 无
1188
- ### remove_nodal_mass
1189
- 删除节点质量
1190
- > 参数:
1191
- > node_id:节点号,默认删除所有节点质量
1192
- ```Python
1193
- # 示例代码
1194
- from qtmodel import *
1195
- mdb.remove_nodal_mass(node_id=1)
1196
- ```
1197
- Returns: 无
1198
- ### remove_load_to_mass
1199
- 删除荷载转为质量
1200
- > 参数:
1201
- > name:荷载工况名
1202
- ```Python
1203
- # 示例代码
1204
- from qtmodel import *
1205
- mdb.remove_load_to_mass(name="荷载工况")
1206
- ```
1207
- Returns: 无
1208
1249
  ### add_pre_stress
1209
1250
  添加预应力
1210
1251
  > 参数:
@@ -1769,7 +1810,7 @@ Returns: 无
1769
1810
  > describe:描述
1770
1811
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
1771
1812
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合_
1772
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_
1813
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况_
1773
1814
  ```Python
1774
1815
  # 示例代码
1775
1816
  from qtmodel import *
@@ -233,7 +233,7 @@ class Mdb:
233
233
 
234
234
  @staticmethod
235
235
  def update_non_linear_setting(non_linear_type: int = 1, non_linear_method: int = 1, max_loading_steps: int = 1, max_iteration_times: int = 30,
236
- relative_accuracy_of_displacement: float = 0.0001, relative_accuracy_of_force: float = 0.0001):
236
+ accuracy_of_displacement: float = 0.0001, accuracy_of_force: float = 0.0001):
237
237
  """
238
238
  更新非线性设置
239
239
  Args:
@@ -241,23 +241,23 @@ class Mdb:
241
241
  non_linear_method: 非线性方法 0-修正牛顿法 1-牛顿法
242
242
  max_loading_steps: 最大加载步数
243
243
  max_iteration_times: 最大迭代次数
244
- relative_accuracy_of_displacement: 位移相对精度
245
- relative_accuracy_of_force: 内力相对精度
244
+ accuracy_of_displacement: 位移相对精度
245
+ accuracy_of_force: 内力相对精度
246
246
  Example:
247
247
  mdb.update_non_linear_setting(non_linear_type=-1, non_linear_method=1, max_loading_steps=-1, max_iteration_times=30,
248
- relative_accuracy_of_displacement=0.0001, relative_accuracy_of_force=0.0001)
248
+ accuracy_of_displacement=0.0001, accuracy_of_force=0.0001)
249
249
  Returns: 无
250
250
  """
251
251
  try:
252
252
  qt_model.UpdateNonLinearSetting(
253
253
  nonLinearType=non_linear_type, nonLinearMethod=non_linear_method, maxLoadingSteps=max_loading_steps,
254
- maxIterationTimes=max_iteration_times, relativeAccuracyOfDisplacement=relative_accuracy_of_displacement,
255
- relativeAccuracyOfInternalForce=relative_accuracy_of_force)
254
+ maxIterationTimes=max_iteration_times, relativeAccuracyOfDisplacement=accuracy_of_displacement,
255
+ relativeAccuracyOfInternalForce=accuracy_of_force)
256
256
  except Exception as ex:
257
257
  raise Exception(ex)
258
258
 
259
259
  @staticmethod
260
- def update_operation_stage_setting(do_analysis: bool, final_stage: str = "", static_load_cases: list[str] = None,
260
+ def update_operation_stage_setting(do_analysis: bool = True, final_stage: str = "", static_load_cases: list[str] = None,
261
261
  sink_load_cases: list[str] = None, live_load_cases: list[str] = None, ):
262
262
  """
263
263
  更新运营阶段分析设置
@@ -279,7 +279,7 @@ class Mdb:
279
279
  raise Exception(ex)
280
280
 
281
281
  @staticmethod
282
- def update_self_vibration_setting(do_analysis: bool = False, method: int = 1, matrix_type: int = 0, mode_num: int = 3):
282
+ def update_self_vibration_setting(do_analysis: bool = True, method: int = 1, matrix_type: int = 0, mode_num: int = 3):
283
283
  """
284
284
  更新自振分析设置
285
285
  Args:
@@ -296,6 +296,30 @@ class Mdb:
296
296
  except Exception as ex:
297
297
  raise Exception(ex)
298
298
 
299
+ @staticmethod
300
+ def update_response_spectrum_setting(do_analysis: bool = True, kind: int = 1, by_mode: bool = False,
301
+ damping_ratio: (Union[float, List[float]]) = 0.05):
302
+ """
303
+ 更新反应谱设置
304
+ Args:
305
+ do_analysis:是否进行反应谱分析
306
+ kind:组合方式 1-SRSS 2-CQC
307
+ by_mode: 是否按照振型输入阻尼比
308
+ damping_ratio:常数阻尼比或振型阻尼比列表
309
+ Example:
310
+ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
311
+ Returns: 无
312
+ """
313
+ try:
314
+ if isinstance(damping_ratio, float) and damping_ratio > 0:
315
+ qt_model.UpdateResponseSpectrumSetting(doAnalysis=do_analysis, kind=kind, isDampingByMode=by_mode, dampingRatio=damping_ratio)
316
+ elif isinstance(damping_ratio, list) and all(x > 0 for x in damping_ratio):
317
+ qt_model.UpdateResponseSpectrumSetting(doAnalysis=do_analysis, kind=kind, isDampingByMode=by_mode, dampingRatio=damping_ratio)
318
+ else:
319
+ raise Exception("操作失败,要求阻尼比大于零")
320
+ except Exception as ex:
321
+ raise Exception(ex)
322
+
299
323
  # endregion
300
324
 
301
325
  # region 节点操作
@@ -930,7 +954,7 @@ class Mdb:
930
954
  """
931
955
  try:
932
956
  qt_model.AddTapperSection(id=index, name=name, secType=sec_type, secBegin=sec_begin, secEnd=sec_end,
933
- shearConsider=shear_consider,secNormalize=sec_normalize)
957
+ shearConsider=shear_consider, secNormalize=sec_normalize)
934
958
  except Exception as ex:
935
959
  raise Exception(ex)
936
960
 
@@ -1724,6 +1748,47 @@ class Mdb:
1724
1748
  except Exception as ex:
1725
1749
  raise Exception(ex)
1726
1750
 
1751
+ @staticmethod
1752
+ def add_spectrum_function(name: str = "", factor: float = 1.0, kind: int = 0, function_info: list[tuple[float, float]] = None):
1753
+ """
1754
+ 添加反应谱函数
1755
+ Args:
1756
+ name:反应谱函数名
1757
+ factor:反应谱调整系数
1758
+ kind:反应谱类型 0-无量纲 1-加速度 2-位移
1759
+ function_info:反应谱函数信息
1760
+ Example:
1761
+ mdb.add_spectrum_function(name="反应谱函数1",factor=1.0,function_info=[(0,0.02),(1,0.03)])
1762
+ Returns: 无
1763
+ """
1764
+ try:
1765
+ qt_model.AddResponseSpectrumFunction(name=name, factor=factor, kind=kind, functionInfo=function_info)
1766
+ except Exception as ex:
1767
+ raise Exception(ex)
1768
+
1769
+ @staticmethod
1770
+ def add_spectrum_case(name: str = "", description: str = "", kind: int = 1, info_x: tuple[str, float] = None,
1771
+ info_y: tuple[str, float] = None, info_z: tuple[str, float] = None):
1772
+ """
1773
+ 添加反应谱工况
1774
+ Args:
1775
+ name:荷载工况名
1776
+ description:说明
1777
+ kind:组合方式 1-求模 2-求和
1778
+ info_x: 反应谱X向信息 (X方向函数名,系数)
1779
+ info_y: 反应谱Y向信息 (Y方向函数名,系数)
1780
+ info_z: 反应谱Z向信息 (Z方向函数名,系数)
1781
+ Example:
1782
+ mdb.add_spectrum_case(name="反应谱工况",info_x=("函数1",1.0))
1783
+ Returns: 无
1784
+ """
1785
+ try:
1786
+ if info_x is None and info_y is None and info_z is None:
1787
+ raise Exception("添加反应谱函数错误,无反应谱分项信息")
1788
+ qt_model.AddResponseSpectrumCase(name=name, description=description, kind=kind, infoX=info_x, info_y=info_y, info_z=info_z)
1789
+ except Exception as ex:
1790
+ raise Exception(ex)
1791
+
1727
1792
  # endregion
1728
1793
 
1729
1794
  # region 钢束操作
@@ -2885,7 +2950,7 @@ class Mdb:
2885
2950
  describe:描述
2886
2951
  combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
2887
2952
  _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合_
2888
- _"MV"-移动荷载工况 "SM"-沉降荷载工况_
2953
+ _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况_
2889
2954
  Example:
2890
2955
  mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
2891
2956
  Returns: 无
@@ -282,7 +282,7 @@ class Odb:
282
282
  def plot_reaction_result(file_path: str, stage_id: int = 1, load_case_name: str = "", show_increment: bool = False,
283
283
  envelope_type: int = 1, component: int = 1,
284
284
  show_number: bool = True, text_rotation=0, max_min_kind: int = -1,
285
- show_legend: bool = True, digital_count=0, show_exponential: bool = True, arrow_scale: float = 1):
285
+ show_legend: bool = True, digital_count=3, show_exponential: bool = True, arrow_scale: float = 1):
286
286
  """
287
287
  保存结果图片到指定文件甲
288
288
  Args:
@@ -317,7 +317,7 @@ class Odb:
317
317
  envelope_type: int = 1, component: int = 1,
318
318
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
319
319
  show_number: bool = True, text_rotation=0, max_min_kind: int = 1,
320
- show_legend: bool = True, digital_count=0, show_exponential: bool = True, show_pre_deformed: bool = True):
320
+ show_legend: bool = True, digital_count=3, show_exponential: bool = True, show_pre_deformed: bool = True):
321
321
  """
322
322
  保存结果图片到指定文件甲
323
323
  Args:
@@ -357,7 +357,7 @@ class Odb:
357
357
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
358
358
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
359
359
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
360
- show_legend: bool = True, digital_count: int = 0, show_exponential: bool = True,
360
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
361
361
  show_pre_deformed: bool = False, position: int = 0):
362
362
  """
363
363
  绘制梁单元结果图并保存到指定文件
@@ -404,7 +404,7 @@ class Odb:
404
404
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
405
405
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
406
406
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
407
- show_legend: bool = True, digital_count: int = 0, show_exponential: bool = True,
407
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
408
408
  show_pre_deformed: bool = False, position: int = 0):
409
409
  """
410
410
  绘制杆单元结果图并保存到指定文件
@@ -450,7 +450,7 @@ class Odb:
450
450
  envelope_type: int = 1, force_kind: int = 0, component: int = 0,
451
451
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
452
452
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
453
- show_legend: bool = True, digital_count: int = 0, show_as_exponential: bool = True,
453
+ show_legend: bool = True, digital_count: int = 3, show_as_exponential: bool = True,
454
454
  show_pre_deformed: bool = False, ):
455
455
  """
456
456
  绘制板单元结果图并保存到指定文件
@@ -493,7 +493,7 @@ class Odb:
493
493
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
494
494
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
495
495
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
496
- show_legend: bool = True, digital_count: int = 1, show_exponential: bool = True,
496
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
497
497
  show_pre_deformed: bool = False, position: int = 0):
498
498
  """
499
499
  绘制组合梁单元结果图并保存到指定文件
@@ -541,7 +541,7 @@ class Odb:
541
541
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
542
542
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
543
543
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
544
- show_legend: bool = True, digital_count: int = 0, show_exponential: bool = True,
544
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
545
545
  show_pre_deformed: bool = False, position: int = 0):
546
546
  """
547
547
  绘制梁单元应力结果图并保存到指定文件
@@ -587,7 +587,7 @@ class Odb:
587
587
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
588
588
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
589
589
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
590
- show_legend: bool = True, digital_count: int = 0, show_exponential: bool = True,
590
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
591
591
  show_pre_deformed: bool = False, position: int = 0):
592
592
  """
593
593
  绘制杆单元结果图并保存到指定文件
@@ -632,7 +632,7 @@ class Odb:
632
632
  show_line_chart: bool = True, line_scale: float = 1.0, flip_plot: bool = True,
633
633
  show_deformed: bool = True, deformed_actual: bool = False, deformed_scale: float = 1.0,
634
634
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 0,
635
- show_legend: bool = True, digital_count: int = 0, show_exponential: bool = True,
635
+ show_legend: bool = True, digital_count: int = 3, show_exponential: bool = True,
636
636
  show_pre_deformed: bool = False, position: int = 0):
637
637
  """
638
638
  绘制组合梁单元结果图并保存到指定文件
@@ -679,7 +679,7 @@ class Odb:
679
679
  envelope_type: int = 1, stress_kind: int = 0, component: int = 0,
680
680
  show_number: bool = False, text_rotation_angle: int = 0, max_min_kind: int = 0,
681
681
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
682
- show_legend: bool = True, digital_count: int = 1, show_as_exponential: bool = True,
682
+ show_legend: bool = True, digital_count: int = 3, show_as_exponential: bool = True,
683
683
  show_pre_deformed: bool = False, position: int = 0):
684
684
  """
685
685
  绘制板单元结果图并保存到指定文件
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.32
3
+ Version: 0.5.33
4
4
  Summary: python modeling for qt 24/10/31
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -12,8 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
16
- # 最新版本 V0.5.32 - 2024.10.30
15
+ # 最新版本 V0.5.33 - 2024.10.31
17
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
18
17
  - 修改帮助文档
19
18
  ## 项目管理
@@ -168,13 +167,13 @@ Returns: 无
168
167
  > non_linear_method: 非线性方法 0-修正牛顿法 1-牛顿法
169
168
  > max_loading_steps: 最大加载步数
170
169
  > max_iteration_times: 最大迭代次数
171
- > relative_accuracy_of_displacement: 位移相对精度
172
- > relative_accuracy_of_force: 内力相对精度
170
+ > accuracy_of_displacement: 位移相对精度
171
+ > accuracy_of_force: 内力相对精度
173
172
  ```Python
174
173
  # 示例代码
175
174
  from qtmodel import *
176
175
  mdb.update_non_linear_setting(non_linear_type=-1, non_linear_method=1, max_loading_steps=-1, max_iteration_times=30,
177
- relative_accuracy_of_displacement=0.0001, relative_accuracy_of_force=0.0001)
176
+ accuracy_of_displacement=0.0001, accuracy_of_force=0.0001)
178
177
  ```
179
178
  Returns: 无
180
179
  ### update_operation_stage_setting
@@ -204,6 +203,19 @@ from qtmodel import *
204
203
  mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
205
204
  ```
206
205
  Returns: 无
206
+ ### update_response_spectrum_setting
207
+ 更新反应谱设置
208
+ > 参数:
209
+ > do_analysis:是否进行反应谱分析
210
+ > kind:组合方式 1-SRSS 2-CQC
211
+ > by_mode: 是否按照振型输入阻尼比
212
+ > damping_ratio:常数阻尼比或振型阻尼比列表
213
+ ```Python
214
+ # 示例代码
215
+ from qtmodel import *
216
+ mdb.update_response_spectrum_setting(do_analysis=True,kind=1,damping_ratio=0.05)
217
+ ```
218
+ Returns: 无
207
219
  ## 节点操作
208
220
  ### add_node
209
221
  根据坐标信息和节点编号添加节点,默认自动识别编号
@@ -1019,6 +1031,77 @@ from qtmodel import *
1019
1031
  mdb.remove_live_load_case(name="活载工况1")
1020
1032
  ```
1021
1033
  Returns: 无
1034
+ ## 动力荷载操作
1035
+ ### add_load_to_mass
1036
+ 添加荷载转为质量
1037
+ > 参数:
1038
+ > name: 荷载工况名称
1039
+ > factor: 系数
1040
+ ```Python
1041
+ # 示例代码
1042
+ from qtmodel import *
1043
+ mdb.add_load_to_mass(name="荷载工况",factor=1)
1044
+ ```
1045
+ Returns: 无
1046
+ ### add_nodal_mass
1047
+ 添加节点质量
1048
+ > 参数:
1049
+ > node_id:节点编号,支持单个编号和编号列表
1050
+ > mass_info:[m,rmX,rmY,rmZ]
1051
+ ```Python
1052
+ # 示例代码
1053
+ from qtmodel import *
1054
+ mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1055
+ ```
1056
+ Returns: 无
1057
+ ### remove_nodal_mass
1058
+ 删除节点质量
1059
+ > 参数:
1060
+ > node_id:节点号,默认删除所有节点质量
1061
+ ```Python
1062
+ # 示例代码
1063
+ from qtmodel import *
1064
+ mdb.remove_nodal_mass(node_id=1)
1065
+ ```
1066
+ Returns: 无
1067
+ ### remove_load_to_mass
1068
+ 删除荷载转为质量
1069
+ > 参数:
1070
+ > name:荷载工况名
1071
+ ```Python
1072
+ # 示例代码
1073
+ from qtmodel import *
1074
+ mdb.remove_load_to_mass(name="荷载工况")
1075
+ ```
1076
+ Returns: 无
1077
+ ### add_spectrum_function
1078
+ 添加反应谱函数
1079
+ > 参数:
1080
+ > name:反应谱函数名
1081
+ > factor:反应谱调整系数
1082
+ > kind:反应谱类型 0-无量纲 1-加速度 2-位移
1083
+ > function_info:反应谱函数信息
1084
+ ```Python
1085
+ # 示例代码
1086
+ from qtmodel import *
1087
+ mdb.add_spectrum_function(name="反应谱函数1",factor=1.0,function_info=[(0,0.02),(1,0.03)])
1088
+ ```
1089
+ Returns: 无
1090
+ ### add_spectrum_case
1091
+ 添加反应谱工况
1092
+ > 参数:
1093
+ > name:荷载工况名
1094
+ > description:说明
1095
+ > kind:组合方式 1-求模 2-求和
1096
+ > info_x: 反应谱X向信息 (X方向函数名,系数)
1097
+ > info_y: 反应谱Y向信息 (Y方向函数名,系数)
1098
+ > info_z: 反应谱Z向信息 (Z方向函数名,系数)
1099
+ ```Python
1100
+ # 示例代码
1101
+ from qtmodel import *
1102
+ mdb.add_spectrum_case(name="反应谱工况",info_x=("函数1",1.0))
1103
+ ```
1104
+ Returns: 无
1022
1105
  ## 钢束操作
1023
1106
  ### add_tendon_group
1024
1107
  按照名称添加钢束组,添加时可指定钢束组id
@@ -1177,48 +1260,6 @@ from qtmodel import *
1177
1260
  mdb.remove_load_group(name="荷载组1")
1178
1261
  ```
1179
1262
  Returns: 无
1180
- ### add_load_to_mass
1181
- 添加荷载转为质量
1182
- > 参数:
1183
- > name: 荷载工况名称
1184
- > factor: 系数
1185
- ```Python
1186
- # 示例代码
1187
- from qtmodel import *
1188
- mdb.add_load_to_mass(name="荷载工况",factor=1)
1189
- ```
1190
- Returns: 无
1191
- ### add_nodal_mass
1192
- 添加节点质量
1193
- > 参数:
1194
- > node_id:节点编号,支持单个编号和编号列表
1195
- > mass_info:[m,rmX,rmY,rmZ]
1196
- ```Python
1197
- # 示例代码
1198
- from qtmodel import *
1199
- mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
1200
- ```
1201
- Returns: 无
1202
- ### remove_nodal_mass
1203
- 删除节点质量
1204
- > 参数:
1205
- > node_id:节点号,默认删除所有节点质量
1206
- ```Python
1207
- # 示例代码
1208
- from qtmodel import *
1209
- mdb.remove_nodal_mass(node_id=1)
1210
- ```
1211
- Returns: 无
1212
- ### remove_load_to_mass
1213
- 删除荷载转为质量
1214
- > 参数:
1215
- > name:荷载工况名
1216
- ```Python
1217
- # 示例代码
1218
- from qtmodel import *
1219
- mdb.remove_load_to_mass(name="荷载工况")
1220
- ```
1221
- Returns: 无
1222
1263
  ### add_pre_stress
1223
1264
  添加预应力
1224
1265
  > 参数:
@@ -1783,7 +1824,7 @@ Returns: 无
1783
1824
  > describe:描述
1784
1825
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
1785
1826
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合_
1786
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_
1827
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况_
1787
1828
  ```Python
1788
1829
  # 示例代码
1789
1830
  from qtmodel import *
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
7
7
  # twine upload dist/*
8
8
  setup(
9
9
  name="qtmodel",
10
- version="0.5.32",
10
+ version="0.5.33",
11
11
  author="dqy-zhj",
12
12
  author_email="1105417715@qq.com",
13
13
  description="python modeling for qt 24/10/31 ",
File without changes
File without changes
File without changes