qtmodel 0.5.28__tar.gz → 0.5.31__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.28
4
- Summary: python modeling for qt 24/10/22
3
+ Version: 0.5.31
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.28 - 2024.10.28
15
+ # 最新版本 V0.5.31 - 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模型信息
@@ -117,7 +117,10 @@ Returns: 无
117
117
  ### export_file
118
118
  导入命令
119
119
  > 参数:
120
- > file_path:导出文件全路径,支持格式(.mct/.qdat/.PGF/.3dx)
120
+ > file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
121
+ > convert_sec_group:是否将变截面组转换为变截面
122
+ > type_kind:输出文件类型 1-详细文件 2-计算文件
123
+ > group_name:obj与 APDL导出时指定结构组导出
121
124
  ```Python
122
125
  # 示例代码
123
126
  from qtmodel import *
@@ -184,7 +187,7 @@ Returns: 无
184
187
  ```Python
185
188
  # 示例代码
186
189
  from qtmodel import *
187
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
190
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
188
191
  ```
189
192
  Returns: 无
190
193
  ### update_self_vibration_setting
@@ -197,7 +200,7 @@ Returns: 无
197
200
  ```Python
198
201
  # 示例代码
199
202
  from qtmodel import *
200
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
203
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
201
204
  ```
202
205
  Returns: 无
203
206
  ## 节点操作
@@ -557,6 +560,8 @@ Returns: 无
557
560
  > sec_type:截面类型
558
561
  > sec_begin:截面始端编号
559
562
  > sec_end:截面末端编号
563
+ > shear_consider:考虑剪切变形
564
+ > sec_normalize:变截面线段线圈重新排序
560
565
  ```Python
561
566
  # 示例代码
562
567
  from qtmodel import *
@@ -1957,7 +1962,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1957
1962
  ```Python
1958
1963
  # 示例代码
1959
1964
  from qtmodel import *
1960
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1965
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1961
1966
  ```
1962
1967
  Returns: 无
1963
1968
  ### plot_displacement_result
@@ -1982,7 +1987,7 @@ Returns: 无
1982
1987
  ```Python
1983
1988
  # 示例代码
1984
1989
  from qtmodel import *
1985
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1990
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1986
1991
  ```
1987
1992
  Returns: 无
1988
1993
  ### plot_beam_element_force
@@ -2011,7 +2016,7 @@ Returns: 无
2011
2016
  ```Python
2012
2017
  # 示例代码
2013
2018
  from qtmodel import *
2014
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2019
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2015
2020
  ```
2016
2021
  Returns: 无
2017
2022
  ### plot_truss_element_force
@@ -2040,7 +2045,7 @@ Returns: 无
2040
2045
  ```Python
2041
2046
  # 示例代码
2042
2047
  from qtmodel import *
2043
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2048
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2044
2049
  ```
2045
2050
  Returns: 无
2046
2051
  ### plot_plate_element_force
@@ -2066,7 +2071,7 @@ Returns: 无
2066
2071
  ```Python
2067
2072
  # 示例代码
2068
2073
  from qtmodel import *
2069
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2074
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2070
2075
  ```
2071
2076
  Returns: 无
2072
2077
  ### plot_composite_beam_force
@@ -2096,7 +2101,7 @@ Returns: 无
2096
2101
  ```Python
2097
2102
  # 示例代码
2098
2103
  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)
2104
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2100
2105
  ```
2101
2106
  Returns: 无
2102
2107
  ### plot_beam_element_stress
@@ -2107,7 +2112,7 @@ Returns: 无
2107
2112
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2108
2113
  > show_increment: 是否显示增量结果
2109
2114
  > 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
2115
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2111
2116
  > show_line_chart: 折线图选项卡开启
2112
2117
  > line_scale:折线图比例
2113
2118
  > flip_plot:反向绘制
@@ -2125,7 +2130,7 @@ Returns: 无
2125
2130
  ```Python
2126
2131
  # 示例代码
2127
2132
  from qtmodel import *
2128
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2133
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2129
2134
  ```
2130
2135
  Returns: 无
2131
2136
  ### plot_truss_element_stress
@@ -2153,7 +2158,7 @@ Returns: 无
2153
2158
  ```Python
2154
2159
  # 示例代码
2155
2160
  from qtmodel import *
2156
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2161
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2157
2162
  ```
2158
2163
  Returns: 无
2159
2164
  ### plot_composite_beam_stress
@@ -2183,7 +2188,7 @@ Returns: 无
2183
2188
  ```Python
2184
2189
  # 示例代码
2185
2190
  from qtmodel import *
2186
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2191
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2187
2192
  ```
2188
2193
  Returns: 无
2189
2194
  ### plot_plate_element_stress
@@ -2210,7 +2215,7 @@ Returns: 无
2210
2215
  ```Python
2211
2216
  # 示例代码
2212
2217
  from qtmodel import *
2213
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2218
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2214
2219
  ```
2215
2220
  Returns: 无
2216
2221
  ## 获取模型信息
@@ -1,20 +1,6 @@
1
- Metadata-Version: 2.1
2
- Name: qtmodel
3
- Version: 0.5.28
4
- Summary: python modeling for qt 24/10/22
5
- Home-page: https://github.com/Inface0443/pyqt
6
- Author: dqy-zhj
7
- Author-email: 1105417715@qq.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Operating System :: OS Independent
13
- Description-Content-Type: text/markdown
14
-
15
- # 最新版本 V0.5.28 - 2024.10.28
1
+ # 最新版本 V0.5.31 - 2024.10.29
16
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
- - 修复梁单元梯度温度横纵向异常
3
+ - 修改帮助文档
18
4
  ## 项目管理
19
5
  ### update_bim
20
6
  刷新Bim模型信息
@@ -117,7 +103,10 @@ Returns: 无
117
103
  ### export_file
118
104
  导入命令
119
105
  > 参数:
120
- > file_path:导出文件全路径,支持格式(.mct/.qdat/.PGF/.3dx)
106
+ > file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
107
+ > convert_sec_group:是否将变截面组转换为变截面
108
+ > type_kind:输出文件类型 1-详细文件 2-计算文件
109
+ > group_name:obj与 APDL导出时指定结构组导出
121
110
  ```Python
122
111
  # 示例代码
123
112
  from qtmodel import *
@@ -184,7 +173,7 @@ Returns: 无
184
173
  ```Python
185
174
  # 示例代码
186
175
  from qtmodel import *
187
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
176
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
188
177
  ```
189
178
  Returns: 无
190
179
  ### update_self_vibration_setting
@@ -197,7 +186,7 @@ Returns: 无
197
186
  ```Python
198
187
  # 示例代码
199
188
  from qtmodel import *
200
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
189
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
201
190
  ```
202
191
  Returns: 无
203
192
  ## 节点操作
@@ -557,6 +546,8 @@ Returns: 无
557
546
  > sec_type:截面类型
558
547
  > sec_begin:截面始端编号
559
548
  > sec_end:截面末端编号
549
+ > shear_consider:考虑剪切变形
550
+ > sec_normalize:变截面线段线圈重新排序
560
551
  ```Python
561
552
  # 示例代码
562
553
  from qtmodel import *
@@ -1957,7 +1948,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1957
1948
  ```Python
1958
1949
  # 示例代码
1959
1950
  from qtmodel import *
1960
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1951
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1961
1952
  ```
1962
1953
  Returns: 无
1963
1954
  ### plot_displacement_result
@@ -1982,7 +1973,7 @@ Returns: 无
1982
1973
  ```Python
1983
1974
  # 示例代码
1984
1975
  from qtmodel import *
1985
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1976
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1986
1977
  ```
1987
1978
  Returns: 无
1988
1979
  ### plot_beam_element_force
@@ -2011,7 +2002,7 @@ Returns: 无
2011
2002
  ```Python
2012
2003
  # 示例代码
2013
2004
  from qtmodel import *
2014
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2005
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2015
2006
  ```
2016
2007
  Returns: 无
2017
2008
  ### plot_truss_element_force
@@ -2040,7 +2031,7 @@ Returns: 无
2040
2031
  ```Python
2041
2032
  # 示例代码
2042
2033
  from qtmodel import *
2043
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2034
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2044
2035
  ```
2045
2036
  Returns: 无
2046
2037
  ### plot_plate_element_force
@@ -2066,7 +2057,7 @@ Returns: 无
2066
2057
  ```Python
2067
2058
  # 示例代码
2068
2059
  from qtmodel import *
2069
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2060
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2070
2061
  ```
2071
2062
  Returns: 无
2072
2063
  ### plot_composite_beam_force
@@ -2096,7 +2087,7 @@ Returns: 无
2096
2087
  ```Python
2097
2088
  # 示例代码
2098
2089
  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)
2090
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2100
2091
  ```
2101
2092
  Returns: 无
2102
2093
  ### plot_beam_element_stress
@@ -2107,7 +2098,7 @@ Returns: 无
2107
2098
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2108
2099
  > show_increment: 是否显示增量结果
2109
2100
  > 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
2101
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2111
2102
  > show_line_chart: 折线图选项卡开启
2112
2103
  > line_scale:折线图比例
2113
2104
  > flip_plot:反向绘制
@@ -2125,7 +2116,7 @@ Returns: 无
2125
2116
  ```Python
2126
2117
  # 示例代码
2127
2118
  from qtmodel import *
2128
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2119
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2129
2120
  ```
2130
2121
  Returns: 无
2131
2122
  ### plot_truss_element_stress
@@ -2153,7 +2144,7 @@ Returns: 无
2153
2144
  ```Python
2154
2145
  # 示例代码
2155
2146
  from qtmodel import *
2156
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2147
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2157
2148
  ```
2158
2149
  Returns: 无
2159
2150
  ### plot_composite_beam_stress
@@ -2183,7 +2174,7 @@ Returns: 无
2183
2174
  ```Python
2184
2175
  # 示例代码
2185
2176
  from qtmodel import *
2186
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2177
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2187
2178
  ```
2188
2179
  Returns: 无
2189
2180
  ### plot_plate_element_stress
@@ -2210,7 +2201,7 @@ Returns: 无
2210
2201
  ```Python
2211
2202
  # 示例代码
2212
2203
  from qtmodel import *
2213
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2204
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2214
2205
  ```
2215
2206
  Returns: 无
2216
2207
  ## 获取模型信息
@@ -2690,5 +2681,3 @@ odb.get_deviation_load(case_name="荷载工况1")
2690
2681
  ```
2691
2682
  Returns: json字符串,包含信息为list[dict]
2692
2683
 
2693
-
2694
-
@@ -162,17 +162,20 @@ class Mdb:
162
162
  raise Exception(ex)
163
163
 
164
164
  @staticmethod
165
- def export_file(file_path: str):
165
+ def export_file(file_path: str, convert_sec_group: bool = False, type_kind: int = 1, group_name: (Union[str, List[str]]) = None):
166
166
  """
167
167
  导入命令
168
168
  Args:
169
- file_path:导出文件全路径,支持格式(.mct/.qdat/.PGF/.3dx)
169
+ file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
170
+ convert_sec_group:是否将变截面组转换为变截面
171
+ type_kind:输出文件类型 1-详细文件 2-计算文件
172
+ group_name:obj与 APDL导出时指定结构组导出
170
173
  Example:
171
174
  mdb.export_file(file_path="a.mct")
172
175
  Returns: 无
173
176
  """
174
177
  try:
175
- qt_model.ExportFile(file_path)
178
+ qt_model.ExportFile(filePath=file_path, convertSectionGroup=convert_sec_group, typeKind=type_kind, groupName=group_name)
176
179
  except Exception as ex:
177
180
  raise Exception(ex)
178
181
 
@@ -265,7 +268,7 @@ class Mdb:
265
268
  sink_load_cases: 沉降工况名列表
266
269
  live_load_cases: 活载工况名列表
267
270
  Example:
268
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
271
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
269
272
  Returns: 无
270
273
  """
271
274
  try:
@@ -285,7 +288,7 @@ class Mdb:
285
288
  matrix_type: 矩阵类型 0-集中质量矩阵 1-一致质量矩阵
286
289
  mode_num: 振型数量
287
290
  Example:
288
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
291
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
289
292
  Returns: 无
290
293
  """
291
294
  try:
@@ -907,7 +910,8 @@ class Mdb:
907
910
  raise Exception(ex)
908
911
 
909
912
  @staticmethod
910
- def add_tapper_section(index: int = -1, name: str = "", sec_type: str = "矩形", sec_begin: dict = None, sec_end: dict = None):
913
+ def add_tapper_section(index: int = -1, name: str = "", sec_type: str = "矩形", sec_begin: dict = None, sec_end: dict = None,
914
+ shear_consider: bool = True, sec_normalize: bool = False):
911
915
  """
912
916
  添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
913
917
  Args:
@@ -916,6 +920,8 @@ class Mdb:
916
920
  sec_type:截面类型
917
921
  sec_begin:截面始端编号
918
922
  sec_end:截面末端编号
923
+ shear_consider:考虑剪切变形
924
+ sec_normalize:变截面线段线圈重新排序
919
925
  Example:
920
926
  mdb.add_tapper_section(index=1,name="变截面1",sec_type="矩形",
921
927
  sec_begin={"sec_info":[1,2],"bias_type":"中心"},
@@ -923,7 +929,8 @@ class Mdb:
923
929
  Returns: 无
924
930
  """
925
931
  try:
926
- qt_model.AddTapperSection(id=index, name=name, secType=sec_type, secBegin=sec_begin, secEnd=sec_end)
932
+ qt_model.AddTapperSection(id=index, name=name, secType=sec_type, secBegin=sec_begin, secEnd=sec_end,
933
+ shearConsider=shear_consider,secNormalize=sec_normalize)
927
934
  except Exception as ex:
928
935
  raise Exception(ex)
929
936
 
@@ -997,10 +1004,10 @@ class Mdb:
997
1004
  if rib_l is None:
998
1005
  rib_l = []
999
1006
  if bias_info is None:
1000
- qt_model.AddThickness(id=index, name=name, t=t, type=thick_type, isBiased=False, ribPos=rib_pos,
1007
+ qt_model.AddThickness(id=index, name=name, t=t, thickType=thick_type, isBiased=False, ribPos=rib_pos,
1001
1008
  verticalDis=dist_v, lateralDis=dist_l, verticalRib=rib_v, lateralRib=rib_l)
1002
1009
  else:
1003
- qt_model.AddThickness(id=index, name=name, t=t, type=thick_type, isBiased=False, ribPos=rib_pos,
1010
+ qt_model.AddThickness(id=index, name=name, t=t, thickType=thick_type, isBiased=False, ribPos=rib_pos,
1004
1011
  offSetType=bias_info[0], offSetValue=bias_info[1],
1005
1012
  verticalDis=dist_v, lateralDis=dist_l, verticalRib=rib_v, lateralRib=rib_l)
1006
1013
  qt_model.UpdateModel()
@@ -2415,7 +2422,7 @@ class Mdb:
2415
2422
  """
2416
2423
  try:
2417
2424
  qt_model.AddGradientTemperature(elementId=element_id, caseName=case_name, temperature=temperature,
2418
- sectionOriental=section_oriental, elementType=element_type, groupNmae=group_name)
2425
+ sectionOriental=section_oriental, elementType=element_type, groupName=group_name)
2419
2426
  except Exception as ex:
2420
2427
  raise Exception(ex)
2421
2428
 
@@ -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,6 +1,20 @@
1
- # 最新版本 V0.5.28 - 2024.10.28
1
+ Metadata-Version: 2.1
2
+ Name: qtmodel
3
+ Version: 0.5.31
4
+ Summary: python modeling for qt 24/10/29
5
+ Home-page: https://github.com/Inface0443/pyqt
6
+ Author: dqy-zhj
7
+ Author-email: 1105417715@qq.com
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Description-Content-Type: text/markdown
14
+
15
+ # 最新版本 V0.5.31 - 2024.10.29
2
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 修复梁单元梯度温度横纵向异常
17
+ - 修改帮助文档
4
18
  ## 项目管理
5
19
  ### update_bim
6
20
  刷新Bim模型信息
@@ -103,7 +117,10 @@ Returns: 无
103
117
  ### export_file
104
118
  导入命令
105
119
  > 参数:
106
- > file_path:导出文件全路径,支持格式(.mct/.qdat/.PGF/.3dx)
120
+ > file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
121
+ > convert_sec_group:是否将变截面组转换为变截面
122
+ > type_kind:输出文件类型 1-详细文件 2-计算文件
123
+ > group_name:obj与 APDL导出时指定结构组导出
107
124
  ```Python
108
125
  # 示例代码
109
126
  from qtmodel import *
@@ -170,7 +187,7 @@ Returns: 无
170
187
  ```Python
171
188
  # 示例代码
172
189
  from qtmodel import *
173
- mdb.update_operation_stage_setting(do_analysis=True, final_stage="阶段名",static_load_cases=["1","2"])
190
+ mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
174
191
  ```
175
192
  Returns: 无
176
193
  ### update_self_vibration_setting
@@ -183,7 +200,7 @@ Returns: 无
183
200
  ```Python
184
201
  # 示例代码
185
202
  from qtmodel import *
186
- mdb.update_self_vibration_setting(do_analysis=False,method=1,matrix_type=0,mode_num=3)
203
+ mdb.update_self_vibration_setting(do_analysis=True,method=1,matrix_type=0,mode_num=3)
187
204
  ```
188
205
  Returns: 无
189
206
  ## 节点操作
@@ -543,6 +560,8 @@ Returns: 无
543
560
  > sec_type:截面类型
544
561
  > sec_begin:截面始端编号
545
562
  > sec_end:截面末端编号
563
+ > shear_consider:考虑剪切变形
564
+ > sec_normalize:变截面线段线圈重新排序
546
565
  ```Python
547
566
  # 示例代码
548
567
  from qtmodel import *
@@ -1943,7 +1962,7 @@ Returns: json字符串,包含信息为list[dict] or dict
1943
1962
  ```Python
1944
1963
  # 示例代码
1945
1964
  from qtmodel import *
1946
- odb.plot_reaction_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1965
+ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1947
1966
  ```
1948
1967
  Returns: 无
1949
1968
  ### plot_displacement_result
@@ -1968,7 +1987,7 @@ Returns: 无
1968
1987
  ```Python
1969
1988
  # 示例代码
1970
1989
  from qtmodel import *
1971
- odb.plot_displacement_result(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1990
+ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
1972
1991
  ```
1973
1992
  Returns: 无
1974
1993
  ### plot_beam_element_force
@@ -1997,7 +2016,7 @@ Returns: 无
1997
2016
  ```Python
1998
2017
  # 示例代码
1999
2018
  from qtmodel import *
2000
- odb.plot_beam_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2019
+ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2001
2020
  ```
2002
2021
  Returns: 无
2003
2022
  ### plot_truss_element_force
@@ -2026,7 +2045,7 @@ Returns: 无
2026
2045
  ```Python
2027
2046
  # 示例代码
2028
2047
  from qtmodel import *
2029
- odb.plot_truss_element_force(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2048
+ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2030
2049
  ```
2031
2050
  Returns: 无
2032
2051
  ### plot_plate_element_force
@@ -2052,7 +2071,7 @@ Returns: 无
2052
2071
  ```Python
2053
2072
  # 示例代码
2054
2073
  from qtmodel import *
2055
- odb.plot_plate_element_force(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2074
+ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2056
2075
  ```
2057
2076
  Returns: 无
2058
2077
  ### plot_composite_beam_force
@@ -2082,7 +2101,7 @@ Returns: 无
2082
2101
  ```Python
2083
2102
  # 示例代码
2084
2103
  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)
2104
+ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2086
2105
  ```
2087
2106
  Returns: 无
2088
2107
  ### plot_beam_element_stress
@@ -2093,7 +2112,7 @@ Returns: 无
2093
2112
  > load_case_name: 详细荷载工况名,参考桥通结果输出,例如: CQ:成桥(合计)
2094
2113
  > show_increment: 是否显示增量结果
2095
2114
  > 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
2115
+ > component: 分量编号 0-轴力分量 1-Mz分量 2-My分量 3-组合包络 4-左上 5-右上 6-右下 7-左下
2097
2116
  > show_line_chart: 折线图选项卡开启
2098
2117
  > line_scale:折线图比例
2099
2118
  > flip_plot:反向绘制
@@ -2111,7 +2130,7 @@ Returns: 无
2111
2130
  ```Python
2112
2131
  # 示例代码
2113
2132
  from qtmodel import *
2114
- odb.plot_beam_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2133
+ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2115
2134
  ```
2116
2135
  Returns: 无
2117
2136
  ### plot_truss_element_stress
@@ -2139,7 +2158,7 @@ Returns: 无
2139
2158
  ```Python
2140
2159
  # 示例代码
2141
2160
  from qtmodel import *
2142
- odb.plot_truss_element_stress(file_path=r"aaa.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2161
+ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",load_case_name="CQ:成桥(合计)",stage_id=-1)
2143
2162
  ```
2144
2163
  Returns: 无
2145
2164
  ### plot_composite_beam_stress
@@ -2169,7 +2188,7 @@ Returns: 无
2169
2188
  ```Python
2170
2189
  # 示例代码
2171
2190
  from qtmodel import *
2172
- odb.plot_composite_beam_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2191
+ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2173
2192
  ```
2174
2193
  Returns: 无
2175
2194
  ### plot_plate_element_stress
@@ -2196,7 +2215,7 @@ Returns: 无
2196
2215
  ```Python
2197
2216
  # 示例代码
2198
2217
  from qtmodel import *
2199
- odb.plot_plate_element_stress(file_path=r"aaa.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2218
+ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=0,load_case_name="CQ:成桥(合计)",stage_id=-1)
2200
2219
  ```
2201
2220
  Returns: 无
2202
2221
  ## 获取模型信息
@@ -2676,3 +2695,5 @@ odb.get_deviation_load(case_name="荷载工况1")
2676
2695
  ```
2677
2696
  Returns: json字符串,包含信息为list[dict]
2678
2697
 
2698
+
2699
+
@@ -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.28",
10
+ version="0.5.31",
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