qtmodel 0.5.26__tar.gz → 0.5.27__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.26
3
+ Version: 0.5.27
4
4
  Summary: python modeling for qt 24/10/22
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -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.5.26 - 2024.10.23
15
+ # 最新版本 V0.5.27 - 2024.10.28
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 修复截面偏心
17
+ - 添加指定截面特性参数
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -178,18 +178,13 @@ Returns: 无
178
178
  > 参数:
179
179
  > do_analysis: 是否进行运营阶段分析
180
180
  > final_stage: 最终阶段名
181
- > do_static_load_analysis: 是否进行静力工况分析
182
181
  > static_load_cases: 静力工况名列表
183
- > do_sink_analysis: 是否进行沉降工况分析
184
- > sink_cases: 沉降工况名列表
185
- > do_live_load_analysis: 是否进行活载工况分析
182
+ > sink_load_cases: 沉降工况名列表
186
183
  > live_load_cases: 活载工况名列表
187
- > live_load_analytical_type: 移动荷载分析类型 0-线性 1-非线性 2-部分非线性
188
184
  ```Python
189
185
  # 示例代码
190
186
  from qtmodel import *
191
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名", do_static_load_analysis=True,
192
- static_load_cases=None, do_sink_analysis=False, sink_cases=None, do_live_load_analysis=False)
187
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
193
188
  ```
194
189
  Returns: 无
195
190
  ### update_self_vibration_setting
@@ -520,11 +515,12 @@ Returns: 无
520
515
  > loop_segments:线圈坐标集合 list[dict] dict示例:{"main":[(x1,y1),(x2,y2)...],"sub1":[(x1,y1),(x2,y2)...],"sub2":[(x1,y1),(x2,y2)...]}
521
516
  > sec_lines:线宽集合[(x1,y1,x2,y3,thick),]
522
517
  > secondary_loop_segments:辅材线圈坐标集合 list[dict] (同loop_segments)
518
+ > sec_property:截面特性(参考UI界面共计26个参数),可选参数,指定截面特性时不进行截面计算
523
519
  > bias_type:偏心类型 默认中心
524
520
  > center_type:中心类型 默认质心
525
521
  > shear_consider:考虑剪切 bool 默认考虑剪切变形
526
- > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于质心偏移)
527
- > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于质心偏移)
522
+ > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于center_type偏移)
523
+ > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于center_type偏移)
528
524
  ```Python
529
525
  # 示例代码
530
526
  from qtmodel import *
@@ -1,6 +1,6 @@
1
- # 最新版本 V0.5.26 - 2024.10.23
1
+ # 最新版本 V0.5.27 - 2024.10.28
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 修复截面偏心
3
+ - 添加指定截面特性参数
4
4
  ## 项目管理
5
5
  ### update_bim
6
6
  刷新Bim模型信息
@@ -164,18 +164,13 @@ Returns: 无
164
164
  > 参数:
165
165
  > do_analysis: 是否进行运营阶段分析
166
166
  > final_stage: 最终阶段名
167
- > do_static_load_analysis: 是否进行静力工况分析
168
167
  > static_load_cases: 静力工况名列表
169
- > do_sink_analysis: 是否进行沉降工况分析
170
- > sink_cases: 沉降工况名列表
171
- > do_live_load_analysis: 是否进行活载工况分析
168
+ > sink_load_cases: 沉降工况名列表
172
169
  > live_load_cases: 活载工况名列表
173
- > live_load_analytical_type: 移动荷载分析类型 0-线性 1-非线性 2-部分非线性
174
170
  ```Python
175
171
  # 示例代码
176
172
  from qtmodel import *
177
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名", do_static_load_analysis=True,
178
- static_load_cases=None, do_sink_analysis=False, sink_cases=None, do_live_load_analysis=False)
173
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
179
174
  ```
180
175
  Returns: 无
181
176
  ### update_self_vibration_setting
@@ -506,11 +501,12 @@ Returns: 无
506
501
  > loop_segments:线圈坐标集合 list[dict] dict示例:{"main":[(x1,y1),(x2,y2)...],"sub1":[(x1,y1),(x2,y2)...],"sub2":[(x1,y1),(x2,y2)...]}
507
502
  > sec_lines:线宽集合[(x1,y1,x2,y3,thick),]
508
503
  > secondary_loop_segments:辅材线圈坐标集合 list[dict] (同loop_segments)
504
+ > sec_property:截面特性(参考UI界面共计26个参数),可选参数,指定截面特性时不进行截面计算
509
505
  > bias_type:偏心类型 默认中心
510
506
  > center_type:中心类型 默认质心
511
507
  > shear_consider:考虑剪切 bool 默认考虑剪切变形
512
- > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于质心偏移)
513
- > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于质心偏移)
508
+ > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于center_type偏移)
509
+ > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于center_type偏移)
514
510
  ```Python
515
511
  # 示例代码
516
512
  from qtmodel import *
@@ -254,35 +254,24 @@ class Mdb:
254
254
  raise Exception(ex)
255
255
 
256
256
  @staticmethod
257
- def update_operation_stage_setting(do_analysis: bool, final_stage: str = "", do_static_load_analysis: bool = True,
258
- static_load_cases: list[str] = None, do_sink_analysis: bool = False,
259
- sink_cases: list[str] = None, do_live_load_analysis: bool = False, live_load_cases: list[str] = None,
260
- live_load_analytical_type: int = 0):
257
+ def update_operation_stage_setting(do_analysis: bool, final_stage: str = "", static_load_cases: list[str] = None,
258
+ sink_load_cases: list[str] = None, live_load_cases: list[str] = None,):
261
259
  """
262
260
  更新运营阶段分析设置
263
261
  Args:
264
262
  do_analysis: 是否进行运营阶段分析
265
263
  final_stage: 最终阶段名
266
- do_static_load_analysis: 是否进行静力工况分析
267
264
  static_load_cases: 静力工况名列表
268
- do_sink_analysis: 是否进行沉降工况分析
269
- sink_cases: 沉降工况名列表
270
- do_live_load_analysis: 是否进行活载工况分析
265
+ sink_load_cases: 沉降工况名列表
271
266
  live_load_cases: 活载工况名列表
272
- live_load_analytical_type: 移动荷载分析类型 0-线性 1-非线性 2-部分非线性
273
267
  Example:
274
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名", do_static_load_analysis=True,
275
- static_load_cases=None, do_sink_analysis=False, sink_cases=None, do_live_load_analysis=False)
268
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
276
269
  Returns: 无
277
270
  """
278
271
  try:
279
272
  qt_model.UpdateOperationStageSetting(
280
273
  doAnalysis=do_analysis, finalStage=final_stage,
281
- doStaticLoadAnalysis=do_static_load_analysis,
282
- staticLoadCases=static_load_cases,
283
- doSinkAnalysis=do_sink_analysis, sinkCases=sink_cases,
284
- doLiveLoadAnalysis=do_live_load_analysis, liveLoadCases=live_load_cases,
285
- liveLoadAnalyticalType=live_load_analytical_type)
274
+ staticLoadCaseNames=static_load_cases,sinkLoadCaseNames=sink_load_cases,liveLoadCaseNames=live_load_cases)
286
275
  except Exception as ex:
287
276
  raise Exception(ex)
288
277
 
@@ -830,7 +819,7 @@ class Mdb:
830
819
  mat_combine: list[float] = None, rib_info: dict[str, list[float]] = None,
831
820
  rib_place: list[tuple[int, int, float, str, int, str]] = None,
832
821
  loop_segments: list[dict] = None, sec_lines: list[tuple[float, float, float, float, float]] = None,
833
- secondary_loop_segments: list[dict] = None,
822
+ secondary_loop_segments: list[dict] = None,sec_property:list[float]=None,
834
823
  bias_type: str = "中心", center_type: str = "质心", shear_consider: bool = True, bias_x: float = 0, bias_y: float = 0):
835
824
  """
836
825
  添加单一截面信息,如果截面存在则自动覆盖
@@ -854,11 +843,12 @@ class Mdb:
854
843
  loop_segments:线圈坐标集合 list[dict] dict示例:{"main":[(x1,y1),(x2,y2)...],"sub1":[(x1,y1),(x2,y2)...],"sub2":[(x1,y1),(x2,y2)...]}
855
844
  sec_lines:线宽集合[(x1,y1,x2,y3,thick),]
856
845
  secondary_loop_segments:辅材线圈坐标集合 list[dict] (同loop_segments)
846
+ sec_property:截面特性(参考UI界面共计26个参数),可选参数,指定截面特性时不进行截面计算
857
847
  bias_type:偏心类型 默认中心
858
848
  center_type:中心类型 默认质心
859
849
  shear_consider:考虑剪切 bool 默认考虑剪切变形
860
- bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于质心偏移)
861
- bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于质心偏移)
850
+ bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于center_type偏移)
851
+ bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于center_type偏移)
862
852
  Example:
863
853
  mdb.add_section(name="截面1",sec_type="矩形",sec_info=[2,4],bias_type="中心")
864
854
  mdb.add_section(name="截面2",sec_type="混凝土箱梁",box_height=2,box_num=3,
@@ -876,24 +866,24 @@ class Mdb:
876
866
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, charmInfo=charm_info,
877
867
  symmetry=symmetry, boxNum=box_num, H=box_height, charmInfoR=charm_right, secInfoR=sec_right,
878
868
  biasType=bias_type, centerType=center_type, shearConsider=shear_consider,
879
- biasX=bias_x, biasY=bias_y)
869
+ biasX=bias_x, biasY=bias_y,secProperty=sec_property)
880
870
  elif sec_type == "工字钢梁" or sec_type == "箱型钢梁":
881
871
  rib_names = list(rib_info.keys())
882
872
  rib_data = list(rib_info.values())
883
873
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info,
884
874
  ribNameList=rib_names, ribInfoList=rib_data,
885
875
  ribPlaceList=rib_place, biasType=bias_type, centerType=center_type,
886
- shearConsider=shear_consider, biasX=bias_x, biasY=bias_y)
876
+ shearConsider=shear_consider, biasX=bias_x, biasY=bias_y,secProperty=sec_property)
887
877
  elif sec_type == "特性截面" or sec_type.startswith("自定义"):
888
878
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, biasType=bias_type,
889
879
  loopSegments=loop_segments, secLines=sec_lines,
890
880
  secondaryLoopSegments=secondary_loop_segments, matCombine=mat_combine,
891
881
  shearConsider=shear_consider, centerType=center_type,
892
- biasX=bias_x, biasY=bias_y)
882
+ biasX=bias_x, biasY=bias_y,secProperty=sec_property)
893
883
  else:
894
884
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, matCombine=mat_combine,
895
885
  biasType=bias_type, centerType=center_type, shearConsider=shear_consider,
896
- biasX=bias_x, biasY=bias_y)
886
+ biasX=bias_x, biasY=bias_y,secProperty=sec_property)
897
887
  except Exception as ex:
898
888
  raise Exception(ex)
899
889
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.26
3
+ Version: 0.5.27
4
4
  Summary: python modeling for qt 24/10/22
5
5
  Home-page: https://github.com/Inface0443/pyqt
6
6
  Author: dqy-zhj
@@ -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.5.26 - 2024.10.23
15
+ # 最新版本 V0.5.27 - 2024.10.28
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 修复截面偏心
17
+ - 添加指定截面特性参数
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -178,18 +178,13 @@ Returns: 无
178
178
  > 参数:
179
179
  > do_analysis: 是否进行运营阶段分析
180
180
  > final_stage: 最终阶段名
181
- > do_static_load_analysis: 是否进行静力工况分析
182
181
  > static_load_cases: 静力工况名列表
183
- > do_sink_analysis: 是否进行沉降工况分析
184
- > sink_cases: 沉降工况名列表
185
- > do_live_load_analysis: 是否进行活载工况分析
182
+ > sink_load_cases: 沉降工况名列表
186
183
  > live_load_cases: 活载工况名列表
187
- > live_load_analytical_type: 移动荷载分析类型 0-线性 1-非线性 2-部分非线性
188
184
  ```Python
189
185
  # 示例代码
190
186
  from qtmodel import *
191
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名", do_static_load_analysis=True,
192
- static_load_cases=None, do_sink_analysis=False, sink_cases=None, do_live_load_analysis=False)
187
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
193
188
  ```
194
189
  Returns: 无
195
190
  ### update_self_vibration_setting
@@ -520,11 +515,12 @@ Returns: 无
520
515
  > loop_segments:线圈坐标集合 list[dict] dict示例:{"main":[(x1,y1),(x2,y2)...],"sub1":[(x1,y1),(x2,y2)...],"sub2":[(x1,y1),(x2,y2)...]}
521
516
  > sec_lines:线宽集合[(x1,y1,x2,y3,thick),]
522
517
  > secondary_loop_segments:辅材线圈坐标集合 list[dict] (同loop_segments)
518
+ > sec_property:截面特性(参考UI界面共计26个参数),可选参数,指定截面特性时不进行截面计算
523
519
  > bias_type:偏心类型 默认中心
524
520
  > center_type:中心类型 默认质心
525
521
  > shear_consider:考虑剪切 bool 默认考虑剪切变形
526
- > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于质心偏移)
527
- > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于质心偏移)
522
+ > bias_x:自定义偏心点x坐标 (仅自定义类型偏心需要,相对于center_type偏移)
523
+ > bias_y:自定义偏心点y坐标 (仅自定义类型偏心需要,相对于center_type偏移)
528
524
  ```Python
529
525
  # 示例代码
530
526
  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.26",
10
+ version="0.5.27",
11
11
  author="dqy-zhj",
12
12
  author_email="1105417715@qq.com",
13
13
  description="python modeling for qt 24/10/22 ",
File without changes
File without changes
File without changes
File without changes