qtmodel 0.5.27__tar.gz → 0.5.30__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.5.27
4
- Summary: python modeling for qt 24/10/22
3
+ Version: 0.5.30
4
+ Summary: python modeling for qt 24/10/29
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.5.27 - 2024.10.28
15
+ # 最新版本 V0.5.30 - 2024.10.29
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 添加指定截面特性参数
17
+ - 修改帮助文档
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -184,7 +184,7 @@ Returns: 无
184
184
  ```Python
185
185
  # 示例代码
186
186
  from qtmodel import *
187
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
187
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
188
188
  ```
189
189
  Returns: 无
190
190
  ### update_self_vibration_setting
@@ -197,7 +197,7 @@ Returns: 无
197
197
  ```Python
198
198
  # 示例代码
199
199
  from qtmodel import *
200
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
200
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
201
201
  ```
202
202
  Returns: 无
203
203
  ## 节点操作
@@ -1957,7 +1957,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1957
1957
  ```Python
1958
1958
  # 示例代码
1959
1959
  from qtmodel import *
1960
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1960
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1961
1961
  ```
1962
1962
  Returns: 无
1963
1963
  ### plot_displacement_result
@@ -1982,7 +1982,7 @@ Returns: 无
1982
1982
  ```Python
1983
1983
  # 示例代码
1984
1984
  from qtmodel import *
1985
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1985
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1986
1986
  ```
1987
1987
  Returns: 无
1988
1988
  ### plot_beam_element_force
@@ -2011,7 +2011,7 @@ Returns: 无
2011
2011
  ```Python
2012
2012
  # 示例代码
2013
2013
  from qtmodel import *
2014
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2014
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2015
2015
  ```
2016
2016
  Returns: 无
2017
2017
  ### plot_truss_element_force
@@ -2040,7 +2040,7 @@ Returns: 无
2040
2040
  ```Python
2041
2041
  # 示例代码
2042
2042
  from qtmodel import *
2043
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2043
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2044
2044
  ```
2045
2045
  Returns: 无
2046
2046
  ### plot_plate_element_force
@@ -2066,7 +2066,7 @@ Returns: 无
2066
2066
  ```Python
2067
2067
  # 示例代码
2068
2068
  from qtmodel import *
2069
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2069
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2070
2070
  ```
2071
2071
  Returns: 无
2072
2072
  ### plot_composite_beam_force
@@ -2096,7 +2096,7 @@ Returns: 无
2096
2096
  ```Python
2097
2097
  # 示例代码
2098
2098
  from qtmodel import *
2099
- odb.plot_composite_beam_force(file_path=r"aaa.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2099
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2100
2100
  ```
2101
2101
  Returns: 无
2102
2102
  ### plot_beam_element_stress
@@ -2107,7 +2107,7 @@ Returns: 无
2107
2107
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2108
2108
  > show_increment: 是否显示增量结果
2109
2109
  > envelope_type: 施工阶段包络类型 1-最大 2-最小
2110
- > component: 分量编号 0-Dx 1-Dy 2-Dz 3-Rx 4-Ry 5-Rz 6-Dxy 7-Dyz 8-Dxz 9-Dxyz
2110
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2111
2111
  > show_line_chart: 折线图选项卡开启
2112
2112
  > line_scale:折线图比例
2113
2113
  > flip_plot:反向绘制
@@ -2125,7 +2125,7 @@ Returns: 无
2125
2125
  ```Python
2126
2126
  # 示例代码
2127
2127
  from qtmodel import *
2128
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2128
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2129
2129
  ```
2130
2130
  Returns: 无
2131
2131
  ### plot_truss_element_stress
@@ -2153,7 +2153,7 @@ Returns: 无
2153
2153
  ```Python
2154
2154
  # 示例代码
2155
2155
  from qtmodel import *
2156
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2156
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2157
2157
  ```
2158
2158
  Returns: 无
2159
2159
  ### plot_composite_beam_stress
@@ -2183,7 +2183,7 @@ Returns: 无
2183
2183
  ```Python
2184
2184
  # 示例代码
2185
2185
  from qtmodel import *
2186
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2186
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2187
2187
  ```
2188
2188
  Returns: 无
2189
2189
  ### plot_plate_element_stress
@@ -2210,7 +2210,7 @@ Returns: 无
2210
2210
  ```Python
2211
2211
  # 示例代码
2212
2212
  from qtmodel import *
2213
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2213
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2214
2214
  ```
2215
2215
  Returns: 无
2216
2216
  ## 获取模型信息
@@ -1,6 +1,6 @@
1
- # 最新版本 V0.5.27 - 2024.10.28
1
+ # 最新版本 V0.5.30 - 2024.10.29
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 添加指定截面特性参数
3
+ - 修改帮助文档
4
4
  ## 项目管理
5
5
  ### update_bim
6
6
  刷新Bim模型信息
@@ -170,7 +170,7 @@ Returns: 无
170
170
  ```Python
171
171
  # 示例代码
172
172
  from qtmodel import *
173
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
173
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
174
174
  ```
175
175
  Returns: 无
176
176
  ### update_self_vibration_setting
@@ -183,7 +183,7 @@ Returns: 无
183
183
  ```Python
184
184
  # 示例代码
185
185
  from qtmodel import *
186
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
186
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
187
187
  ```
188
188
  Returns: 无
189
189
  ## 节点操作
@@ -1943,7 +1943,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1943
1943
  ```Python
1944
1944
  # 示例代码
1945
1945
  from qtmodel import *
1946
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1946
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1947
1947
  ```
1948
1948
  Returns: 无
1949
1949
  ### plot_displacement_result
@@ -1968,7 +1968,7 @@ Returns: 无
1968
1968
  ```Python
1969
1969
  # 示例代码
1970
1970
  from qtmodel import *
1971
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1971
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1972
1972
  ```
1973
1973
  Returns: 无
1974
1974
  ### plot_beam_element_force
@@ -1997,7 +1997,7 @@ Returns: 无
1997
1997
  ```Python
1998
1998
  # 示例代码
1999
1999
  from qtmodel import *
2000
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2000
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2001
2001
  ```
2002
2002
  Returns: 无
2003
2003
  ### plot_truss_element_force
@@ -2026,7 +2026,7 @@ Returns: 无
2026
2026
  ```Python
2027
2027
  # 示例代码
2028
2028
  from qtmodel import *
2029
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2029
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2030
2030
  ```
2031
2031
  Returns: 无
2032
2032
  ### plot_plate_element_force
@@ -2052,7 +2052,7 @@ Returns: 无
2052
2052
  ```Python
2053
2053
  # 示例代码
2054
2054
  from qtmodel import *
2055
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2055
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2056
2056
  ```
2057
2057
  Returns: 无
2058
2058
  ### plot_composite_beam_force
@@ -2082,7 +2082,7 @@ Returns: 无
2082
2082
  ```Python
2083
2083
  # 示例代码
2084
2084
  from qtmodel import *
2085
- odb.plot_composite_beam_force(file_path=r"aaa.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2085
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2086
2086
  ```
2087
2087
  Returns: 无
2088
2088
  ### plot_beam_element_stress
@@ -2093,7 +2093,7 @@ Returns: 无
2093
2093
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2094
2094
  > show_increment: 是否显示增量结果
2095
2095
  > envelope_type: 施工阶段包络类型 1-最大 2-最小
2096
- > component: 分量编号 0-Dx 1-Dy 2-Dz 3-Rx 4-Ry 5-Rz 6-Dxy 7-Dyz 8-Dxz 9-Dxyz
2096
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2097
2097
  > show_line_chart: 折线图选项卡开启
2098
2098
  > line_scale:折线图比例
2099
2099
  > flip_plot:反向绘制
@@ -2111,7 +2111,7 @@ Returns: 无
2111
2111
  ```Python
2112
2112
  # 示例代码
2113
2113
  from qtmodel import *
2114
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2114
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2115
2115
  ```
2116
2116
  Returns: 无
2117
2117
  ### plot_truss_element_stress
@@ -2139,7 +2139,7 @@ Returns: 无
2139
2139
  ```Python
2140
2140
  # 示例代码
2141
2141
  from qtmodel import *
2142
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2142
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2143
2143
  ```
2144
2144
  Returns: 无
2145
2145
  ### plot_composite_beam_stress
@@ -2169,7 +2169,7 @@ Returns: 无
2169
2169
  ```Python
2170
2170
  # 示例代码
2171
2171
  from qtmodel import *
2172
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2172
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2173
2173
  ```
2174
2174
  Returns: 无
2175
2175
  ### plot_plate_element_stress
@@ -2196,7 +2196,7 @@ Returns: 无
2196
2196
  ```Python
2197
2197
  # 示例代码
2198
2198
  from qtmodel import *
2199
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2199
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2200
2200
  ```
2201
2201
  Returns: 无
2202
2202
  ## 获取模型信息
@@ -255,7 +255,7 @@ class Mdb:
255
255
 
256
256
  @staticmethod
257
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,):
258
+ sink_load_cases: list[str] = None, live_load_cases: list[str] = None, ):
259
259
  """
260
260
  更新运营阶段分析设置
261
261
  Args:
@@ -265,13 +265,13 @@ class Mdb:
265
265
  sink_load_cases: 沉降工况名列表
266
266
  live_load_cases: 活载工况名列表
267
267
  Example:
268
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
268
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
269
269
  Returns: 无
270
270
  """
271
271
  try:
272
272
  qt_model.UpdateOperationStageSetting(
273
273
  doAnalysis=do_analysis, finalStage=final_stage,
274
- staticLoadCaseNames=static_load_cases,sinkLoadCaseNames=sink_load_cases,liveLoadCaseNames=live_load_cases)
274
+ staticLoadCaseNames=static_load_cases, sinkLoadCaseNames=sink_load_cases, liveLoadCaseNames=live_load_cases)
275
275
  except Exception as ex:
276
276
  raise Exception(ex)
277
277
 
@@ -285,7 +285,7 @@ class Mdb:
285
285
  matrix_type: 矩阵类型 0-集中质量矩阵 1-一致质量矩阵
286
286
  mode_num: 振型数量
287
287
  Example:
288
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
288
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
289
289
  Returns: 无
290
290
  """
291
291
  try:
@@ -819,7 +819,7 @@ class Mdb:
819
819
  mat_combine: list[float] = None, rib_info: dict[str, list[float]] = None,
820
820
  rib_place: list[tuple[int, int, float, str, int, str]] = None,
821
821
  loop_segments: list[dict] = None, sec_lines: list[tuple[float, float, float, float, float]] = None,
822
- secondary_loop_segments: list[dict] = None,sec_property:list[float]=None,
822
+ secondary_loop_segments: list[dict] = None, sec_property: list[float] = None,
823
823
  bias_type: str = "中心", center_type: str = "质心", shear_consider: bool = True, bias_x: float = 0, bias_y: float = 0):
824
824
  """
825
825
  添加单一截面信息,如果截面存在则自动覆盖
@@ -866,24 +866,24 @@ class Mdb:
866
866
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, charmInfo=charm_info,
867
867
  symmetry=symmetry, boxNum=box_num, H=box_height, charmInfoR=charm_right, secInfoR=sec_right,
868
868
  biasType=bias_type, centerType=center_type, shearConsider=shear_consider,
869
- biasX=bias_x, biasY=bias_y,secProperty=sec_property)
869
+ biasX=bias_x, biasY=bias_y, secProperty=sec_property)
870
870
  elif sec_type == "工字钢梁" or sec_type == "箱型钢梁":
871
871
  rib_names = list(rib_info.keys())
872
872
  rib_data = list(rib_info.values())
873
873
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info,
874
874
  ribNameList=rib_names, ribInfoList=rib_data,
875
875
  ribPlaceList=rib_place, biasType=bias_type, centerType=center_type,
876
- shearConsider=shear_consider, biasX=bias_x, biasY=bias_y,secProperty=sec_property)
876
+ shearConsider=shear_consider, biasX=bias_x, biasY=bias_y, secProperty=sec_property)
877
877
  elif sec_type == "特性截面" or sec_type.startswith("自定义"):
878
878
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, biasType=bias_type,
879
879
  loopSegments=loop_segments, secLines=sec_lines,
880
880
  secondaryLoopSegments=secondary_loop_segments, matCombine=mat_combine,
881
881
  shearConsider=shear_consider, centerType=center_type,
882
- biasX=bias_x, biasY=bias_y,secProperty=sec_property)
882
+ biasX=bias_x, biasY=bias_y, secProperty=sec_property)
883
883
  else:
884
884
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, matCombine=mat_combine,
885
885
  biasType=bias_type, centerType=center_type, shearConsider=shear_consider,
886
- biasX=bias_x, biasY=bias_y,secProperty=sec_property)
886
+ biasX=bias_x, biasY=bias_y, secProperty=sec_property)
887
887
  except Exception as ex:
888
888
  raise Exception(ex)
889
889
 
@@ -997,10 +997,10 @@ class Mdb:
997
997
  if rib_l is None:
998
998
  rib_l = []
999
999
  if bias_info is None:
1000
- qt_model.AddThickness(id=index, name=name, t=t, type=thick_type, isBiased=False, ribPos=rib_pos,
1000
+ qt_model.AddThickness(id=index, name=name, t=t, thickType=thick_type, isBiased=False, ribPos=rib_pos,
1001
1001
  verticalDis=dist_v, lateralDis=dist_l, verticalRib=rib_v, lateralRib=rib_l)
1002
1002
  else:
1003
- qt_model.AddThickness(id=index, name=name, t=t, type=thick_type, isBiased=False, ribPos=rib_pos,
1003
+ qt_model.AddThickness(id=index, name=name, t=t, thickType=thick_type, isBiased=False, ribPos=rib_pos,
1004
1004
  offSetType=bias_info[0], offSetValue=bias_info[1],
1005
1005
  verticalDis=dist_v, lateralDis=dist_l, verticalRib=rib_v, lateralRib=rib_l)
1006
1006
  qt_model.UpdateModel()
@@ -1275,9 +1275,9 @@ class Mdb:
1275
1275
  if coord_info is None:
1276
1276
  raise Exception("操作错误,输入坐标系信息不能为空")
1277
1277
  if input_type == 1:
1278
- qt_model.AddNodalAxises(inputType=input_type, nodeId=node_id, angleInfo=coord_info)
1278
+ qt_model.AddNodalAxis(inputType=input_type, nodeId=node_id, angleInfo=coord_info)
1279
1279
  else:
1280
- qt_model.AddNodalAxises(inputType=input_type, nodeId=node_id, nodeInfo=coord_info)
1280
+ qt_model.AddNodalAxis(inputType=input_type, nodeId=node_id, nodeInfo=coord_info)
1281
1281
  except Exception as ex:
1282
1282
  raise Exception(ex)
1283
1283
 
@@ -1299,7 +1299,7 @@ class Mdb:
1299
1299
  raise Exception("操作错误,要求输入I端约束列表长度为6")
1300
1300
  if info_j is None or len(info_j) != 6:
1301
1301
  raise Exception("操作错误,要求输入J端约束列表长度为6")
1302
- qt_model.AddBeamConstraint(beamId=beam_id, nodeInfoI=info_i, nodeInfo2=info_j, groupName=group_name)
1302
+ qt_model.AddBeamConstraint(beamId=beam_id, infoI=info_i, infoJ=info_j, groupName=group_name)
1303
1303
  except Exception as ex:
1304
1304
  raise Exception(ex)
1305
1305
 
@@ -2067,7 +2067,8 @@ class Mdb:
2067
2067
  raise Exception(ex)
2068
2068
 
2069
2069
  @staticmethod
2070
- def add_node_displacement(node_id: (Union[int, List[int]]) = None, case_name: str = "", load_info: tuple[float, float, float, float, float, float] = None,
2070
+ def add_node_displacement(node_id: (Union[int, List[int]]) = None, case_name: str = "",
2071
+ load_info: tuple[float, float, float, float, float, float] = None,
2071
2072
  group_name: str = "默认荷载组"):
2072
2073
  """
2073
2074
  添加节点位移
@@ -2404,7 +2405,7 @@ class Mdb:
2404
2405
  element_id:单元编号,支持数或列表
2405
2406
  case_name:荷载工况名
2406
2407
  temperature:温差
2407
- section_oriental:截面方向,默认截面Y向 (仅梁单元需要, 1-截面Y向 2-截面Z向)
2408
+ section_oriental:截面方向,默认截面Y向 (仅梁单元需要, 0-截面Y向 1-截面Z向)
2408
2409
  element_type:单元类型,默认为梁单元 (1-梁单元 2-板单元)
2409
2410
  group_name:荷载组名
2410
2411
  Example:
@@ -2414,7 +2415,7 @@ class Mdb:
2414
2415
  """
2415
2416
  try:
2416
2417
  qt_model.AddGradientTemperature(elementId=element_id, caseName=case_name, temperature=temperature,
2417
- sectionOriental=section_oriental, elementType=element_type, groupNmae=group_name)
2418
+ sectionOriental=section_oriental, elementType=element_type, groupName=group_name)
2418
2419
  except Exception as ex:
2419
2420
  raise Exception(ex)
2420
2421
 
@@ -300,7 +300,7 @@ class Odb:
300
300
  show_exponential: 指数显示开启
301
301
  arrow_scale:箭头大小
302
302
  Example:
303
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
303
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
304
304
  Returns: 无
305
305
  """
306
306
  try:
@@ -338,7 +338,7 @@ class Odb:
338
338
  show_exponential: 指数显示开启
339
339
  show_pre_deformed: 显示变形前
340
340
  Example:
341
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
341
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
342
342
  Returns: 无
343
343
  """
344
344
  try:
@@ -383,7 +383,7 @@ class Odb:
383
383
  show_pre_deformed: 显示变形前
384
384
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
385
385
  Example:
386
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
386
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
387
387
  Returns: 无
388
388
  """
389
389
  try:
@@ -430,7 +430,7 @@ class Odb:
430
430
  show_pre_deformed: 显示变形前
431
431
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
432
432
  Example:
433
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
433
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
434
434
  Returns: 无
435
435
  """
436
436
  try:
@@ -473,7 +473,7 @@ class Odb:
473
473
  max_min_kind: 最大最小值显示类型
474
474
  show_increment: 是否显示增量结果
475
475
  Example:
476
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
476
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
477
477
  Returns: 无
478
478
  """
479
479
  try:
@@ -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 = 0, show_exponential: bool = True,
496
+ show_legend: bool = True, digital_count: int = 1, show_exponential: bool = True,
497
497
  show_pre_deformed: bool = False, position: int = 0):
498
498
  """
499
499
  绘制组合梁单元结果图并保存到指定文件
@@ -520,7 +520,7 @@ class Odb:
520
520
  show_pre_deformed: 显示变形前
521
521
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
522
522
  Example:
523
- odb.plot_composite_beam_force(file_path=r"aaa.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
523
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
524
524
  Returns: 无
525
525
  """
526
526
  try:
@@ -551,7 +551,7 @@ class Odb:
551
551
  load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
552
552
  show_increment: 是否显示增量结果
553
553
  envelope_type: 施工阶段包络类型 1-最大 2-最小
554
- component: 分量编号 0-Dx 1-Dy 2-Dz 3-Rx 4-Ry 5-Rz 6-Dxy 7-Dyz 8-Dxz 9-Dxyz
554
+ component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
555
555
  show_line_chart: 折线图选项卡开启
556
556
  line_scale:折线图比例
557
557
  flip_plot:反向绘制
@@ -567,7 +567,7 @@ class Odb:
567
567
  show_pre_deformed: 显示变形前
568
568
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
569
569
  Example:
570
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
570
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
571
571
  Returns: 无
572
572
  """
573
573
  try:
@@ -612,7 +612,7 @@ class Odb:
612
612
  show_pre_deformed: 显示变形前
613
613
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
614
614
  Example:
615
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
615
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
616
616
  Returns: 无
617
617
  """
618
618
  try:
@@ -659,7 +659,7 @@ class Odb:
659
659
  show_pre_deformed: 显示变形前
660
660
  position: 位置编号 0-始端 1-末端 2-绝对最大 4-全部
661
661
  Example:
662
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
662
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
663
663
  Returns: 无
664
664
  """
665
665
  try:
@@ -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 = 0, show_as_exponential: bool = True,
682
+ show_legend: bool = True, digital_count: int = 1, show_as_exponential: bool = True,
683
683
  show_pre_deformed: bool = False, position: int = 0):
684
684
  """
685
685
  绘制板单元结果图并保存到指定文件
@@ -703,7 +703,7 @@ class Odb:
703
703
  show_increment: 是否显示增量结果
704
704
  position: 位置 0-板顶 1-板底 2-绝对值最大
705
705
  Example:
706
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
706
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
707
707
  Returns: 无
708
708
  """
709
709
  try:
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.27
4
- Summary: python modeling for qt 24/10/22
3
+ Version: 0.5.30
4
+ Summary: python modeling for qt 24/10/29
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.5.27 - 2024.10.28
15
+ # 最新版本 V0.5.30 - 2024.10.29
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 添加指定截面特性参数
17
+ - 修改帮助文档
18
18
  ## 项目管理
19
19
  ### update_bim
20
20
  刷新Bim模型信息
@@ -184,7 +184,7 @@ Returns: 无
184
184
  ```Python
185
185
  # 示例代码
186
186
  from qtmodel import *
187
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
187
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
188
188
  ```
189
189
  Returns: 无
190
190
  ### update_self_vibration_setting
@@ -197,7 +197,7 @@ Returns: 无
197
197
  ```Python
198
198
  # 示例代码
199
199
  from qtmodel import *
200
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
200
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
201
201
  ```
202
202
  Returns: 无
203
203
  ## 节点操作
@@ -1957,7 +1957,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1957
1957
  ```Python
1958
1958
  # 示例代码
1959
1959
  from qtmodel import *
1960
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1960
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1961
1961
  ```
1962
1962
  Returns: 无
1963
1963
  ### plot_displacement_result
@@ -1982,7 +1982,7 @@ Returns: 无
1982
1982
  ```Python
1983
1983
  # 示例代码
1984
1984
  from qtmodel import *
1985
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1985
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1986
1986
  ```
1987
1987
  Returns: 无
1988
1988
  ### plot_beam_element_force
@@ -2011,7 +2011,7 @@ Returns: 无
2011
2011
  ```Python
2012
2012
  # 示例代码
2013
2013
  from qtmodel import *
2014
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2014
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2015
2015
  ```
2016
2016
  Returns: 无
2017
2017
  ### plot_truss_element_force
@@ -2040,7 +2040,7 @@ Returns: 无
2040
2040
  ```Python
2041
2041
  # 示例代码
2042
2042
  from qtmodel import *
2043
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2043
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2044
2044
  ```
2045
2045
  Returns: 无
2046
2046
  ### plot_plate_element_force
@@ -2066,7 +2066,7 @@ Returns: 无
2066
2066
  ```Python
2067
2067
  # 示例代码
2068
2068
  from qtmodel import *
2069
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2069
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2070
2070
  ```
2071
2071
  Returns: 无
2072
2072
  ### plot_composite_beam_force
@@ -2096,7 +2096,7 @@ Returns: 无
2096
2096
  ```Python
2097
2097
  # 示例代码
2098
2098
  from qtmodel import *
2099
- odb.plot_composite_beam_force(file_path=r"aaa.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2099
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2100
2100
  ```
2101
2101
  Returns: 无
2102
2102
  ### plot_beam_element_stress
@@ -2107,7 +2107,7 @@ Returns: 无
2107
2107
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2108
2108
  > show_increment: 是否显示增量结果
2109
2109
  > envelope_type: 施工阶段包络类型 1-最大 2-最小
2110
- > component: 分量编号 0-Dx 1-Dy 2-Dz 3-Rx 4-Ry 5-Rz 6-Dxy 7-Dyz 8-Dxz 9-Dxyz
2110
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2111
2111
  > show_line_chart: 折线图选项卡开启
2112
2112
  > line_scale:折线图比例
2113
2113
  > flip_plot:反向绘制
@@ -2125,7 +2125,7 @@ Returns: 无
2125
2125
  ```Python
2126
2126
  # 示例代码
2127
2127
  from qtmodel import *
2128
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2128
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2129
2129
  ```
2130
2130
  Returns: 无
2131
2131
  ### plot_truss_element_stress
@@ -2153,7 +2153,7 @@ Returns: 无
2153
2153
  ```Python
2154
2154
  # 示例代码
2155
2155
  from qtmodel import *
2156
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2156
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2157
2157
  ```
2158
2158
  Returns: 无
2159
2159
  ### plot_composite_beam_stress
@@ -2183,7 +2183,7 @@ Returns: 无
2183
2183
  ```Python
2184
2184
  # 示例代码
2185
2185
  from qtmodel import *
2186
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2186
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2187
2187
  ```
2188
2188
  Returns: 无
2189
2189
  ### plot_plate_element_stress
@@ -2210,7 +2210,7 @@ Returns: 无
2210
2210
  ```Python
2211
2211
  # 示例代码
2212
2212
  from qtmodel import *
2213
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2213
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2214
2214
  ```
2215
2215
  Returns: 无
2216
2216
  ## 获取模型信息
@@ -7,10 +7,10 @@ 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.27",
10
+ version="0.5.30",
11
11
  author="dqy-zhj",
12
12
  author_email="1105417715@qq.com",
13
- description="python modeling for qt 24/10/22 ",
13
+ description="python modeling for qt 24/10/29 ",
14
14
  long_description=long_description, # 使用读取的 README.md 文件内容
15
15
  long_description_content_type="text/markdown", # 指明内容格式为markdown
16
16
  url="https://github.com/Inface0443/pyqt",
File without changes
File without changes
File without changes