qtmodel 0.5.28__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.
- {qtmodel-0.5.28 → qtmodel-0.5.30}/PKG-INFO +17 -17
- {qtmodel-0.5.28 → qtmodel-0.5.30}/README.md +15 -15
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel/qt_mdb.py +5 -5
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel/qt_odb.py +13 -13
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel.egg-info/PKG-INFO +17 -17
- {qtmodel-0.5.28 → qtmodel-0.5.30}/setup.py +2 -2
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.28 → qtmodel-0.5.30}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.28 → qtmodel-0.5.30}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
4
|
-
Summary: python modeling for qt 24/10/
|
|
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.
|
|
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="
|
|
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=
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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.
|
|
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="
|
|
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=
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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
|
## 获取模型信息
|
|
@@ -265,7 +265,7 @@ 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="
|
|
268
|
+
mdb.update_operation_stage_setting(do_analysis=True, final_stage="上二恒",static_load_cases=None)
|
|
269
269
|
Returns: 无
|
|
270
270
|
"""
|
|
271
271
|
try:
|
|
@@ -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=
|
|
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:
|
|
@@ -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,
|
|
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,
|
|
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()
|
|
@@ -2415,7 +2415,7 @@ class Mdb:
|
|
|
2415
2415
|
"""
|
|
2416
2416
|
try:
|
|
2417
2417
|
qt_model.AddGradientTemperature(elementId=element_id, caseName=case_name, temperature=temperature,
|
|
2418
|
-
sectionOriental=section_oriental, elementType=element_type,
|
|
2418
|
+
sectionOriental=section_oriental, elementType=element_type, groupName=group_name)
|
|
2419
2419
|
except Exception as ex:
|
|
2420
2420
|
raise Exception(ex)
|
|
2421
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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 =
|
|
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"
|
|
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
|
|
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"
|
|
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"
|
|
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"
|
|
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 =
|
|
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"
|
|
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.
|
|
4
|
-
Summary: python modeling for qt 24/10/
|
|
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.
|
|
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="
|
|
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=
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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.
|
|
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/
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|