qtmodel 0.5.41__tar.gz → 0.5.42__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.41 → qtmodel-0.5.42}/PKG-INFO +37 -6
- {qtmodel-0.5.41 → qtmodel-0.5.42}/README.md +36 -5
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel/qt_mdb.py +50 -1
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel.egg-info/PKG-INFO +37 -6
- {qtmodel-0.5.41 → qtmodel-0.5.42}/setup.py +1 -1
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.41 → qtmodel-0.5.42}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.42
|
|
4
4
|
Summary: python modeling for qt 24/11/27
|
|
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.
|
|
15
|
+
# 最新版本 V0.5.42 - 2024.11.29
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 添加移动荷载分析接口
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -160,6 +160,37 @@ mdb.update_construction_stage_setting(do_analysis=True, to_end_stage=False, othe
|
|
|
160
160
|
do_creep_analysis=True, cable_tension_position=0, consider_completion_stage=True,shrink_creep_type=2)
|
|
161
161
|
```
|
|
162
162
|
Returns: 无
|
|
163
|
+
### update_live_load_setting
|
|
164
|
+
更新移动荷载分析设置
|
|
165
|
+
> 参数:
|
|
166
|
+
> lateral_spacing: 横向加密间距
|
|
167
|
+
> vertical_spacing: 纵向加密间距
|
|
168
|
+
> damper_calc_type: 模拟阻尼器约束方程计算类选项(-1-不考虑 0-全部组 1-部分)
|
|
169
|
+
> displacement_calc_type: 位移计算选项(-1-不考虑 0-全部组 1-部分)
|
|
170
|
+
> force_calc_type: 内力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
171
|
+
> reaction_calc_type: 反力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
172
|
+
> link_calc_type: 连接计算选项(-1-不考虑 0-全部组 1-部分)
|
|
173
|
+
> constrain_calc_type: 约束方程计算选项(-1-不考虑 0-全部组 1-部分)
|
|
174
|
+
> eccentricity: 离心力系数
|
|
175
|
+
> displacement_track: 是否追踪位移
|
|
176
|
+
> force_track: 是否追踪内力
|
|
177
|
+
> reaction_track: 是否追踪反力
|
|
178
|
+
> link_track: 是否追踪连接
|
|
179
|
+
> constrain_track: 是否追踪约束方程
|
|
180
|
+
> damper_groups: 模拟阻尼器约束方程计算类选项为组时边界组名称
|
|
181
|
+
> displacement_groups: 位移计算类选项为组时结构组名称
|
|
182
|
+
> force_groups: 内力计算类选项为组时结构组名称
|
|
183
|
+
> reaction_groups: 反力计算类选项为组时边界组名称
|
|
184
|
+
> link_groups: 弹性连接计算类选项为组时边界组名称
|
|
185
|
+
> constrain_groups: 约束方程计算类选项为组时边界组名称
|
|
186
|
+
```Python
|
|
187
|
+
# 示例代码
|
|
188
|
+
from qtmodel import *
|
|
189
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=1)
|
|
190
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=2,displacement_track=True,
|
|
191
|
+
displacement_groups=["结构组1","结构组2"])
|
|
192
|
+
```
|
|
193
|
+
Returns: 无
|
|
163
194
|
### update_non_linear_setting
|
|
164
195
|
更新非线性设置
|
|
165
196
|
> 参数:
|
|
@@ -973,7 +1004,7 @@ Returns: 无
|
|
|
973
1004
|
添加移动荷载工况汽车折减
|
|
974
1005
|
> 参数:
|
|
975
1006
|
> name:活载工况名
|
|
976
|
-
> code_index:
|
|
1007
|
+
> code_index: 火车折减规范编号 1-铁规2017_ZK_ZC 2-铁规2017_ZKH_ZH 3-无
|
|
977
1008
|
> cross_factors:横向折减系数列表,自定义时要求长度为8,否则按照规范选取
|
|
978
1009
|
> calc_fatigue:是否计算疲劳
|
|
979
1010
|
> line_count: 疲劳加载线路数
|
|
@@ -1663,7 +1694,7 @@ mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_na
|
|
|
1663
1694
|
```
|
|
1664
1695
|
Returns: 无
|
|
1665
1696
|
### add_custom_temperature
|
|
1666
|
-
|
|
1697
|
+
添加梁自定义温度
|
|
1667
1698
|
> 参数:
|
|
1668
1699
|
> case_name:荷载工况名
|
|
1669
1700
|
> element_id:单元编号,支持数或列表
|
|
@@ -1677,7 +1708,7 @@ mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,
|
|
|
1677
1708
|
```
|
|
1678
1709
|
Returns: 无
|
|
1679
1710
|
### remove_custom_temperature
|
|
1680
|
-
|
|
1711
|
+
删除梁单元自定义温度
|
|
1681
1712
|
> 参数:
|
|
1682
1713
|
> case_name:荷载工况名
|
|
1683
1714
|
> element_id:单元编号,支持数或列表
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.42 - 2024.11.29
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
|
-
-
|
|
3
|
+
- 添加移动荷载分析接口
|
|
4
4
|
## 项目管理
|
|
5
5
|
### update_bim
|
|
6
6
|
刷新Bim模型信息
|
|
@@ -146,6 +146,37 @@ mdb.update_construction_stage_setting(do_analysis=True, to_end_stage=False, othe
|
|
|
146
146
|
do_creep_analysis=True, cable_tension_position=0, consider_completion_stage=True,shrink_creep_type=2)
|
|
147
147
|
```
|
|
148
148
|
Returns: 无
|
|
149
|
+
### update_live_load_setting
|
|
150
|
+
更新移动荷载分析设置
|
|
151
|
+
> 参数:
|
|
152
|
+
> lateral_spacing: 横向加密间距
|
|
153
|
+
> vertical_spacing: 纵向加密间距
|
|
154
|
+
> damper_calc_type: 模拟阻尼器约束方程计算类选项(-1-不考虑 0-全部组 1-部分)
|
|
155
|
+
> displacement_calc_type: 位移计算选项(-1-不考虑 0-全部组 1-部分)
|
|
156
|
+
> force_calc_type: 内力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
157
|
+
> reaction_calc_type: 反力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
158
|
+
> link_calc_type: 连接计算选项(-1-不考虑 0-全部组 1-部分)
|
|
159
|
+
> constrain_calc_type: 约束方程计算选项(-1-不考虑 0-全部组 1-部分)
|
|
160
|
+
> eccentricity: 离心力系数
|
|
161
|
+
> displacement_track: 是否追踪位移
|
|
162
|
+
> force_track: 是否追踪内力
|
|
163
|
+
> reaction_track: 是否追踪反力
|
|
164
|
+
> link_track: 是否追踪连接
|
|
165
|
+
> constrain_track: 是否追踪约束方程
|
|
166
|
+
> damper_groups: 模拟阻尼器约束方程计算类选项为组时边界组名称
|
|
167
|
+
> displacement_groups: 位移计算类选项为组时结构组名称
|
|
168
|
+
> force_groups: 内力计算类选项为组时结构组名称
|
|
169
|
+
> reaction_groups: 反力计算类选项为组时边界组名称
|
|
170
|
+
> link_groups: 弹性连接计算类选项为组时边界组名称
|
|
171
|
+
> constrain_groups: 约束方程计算类选项为组时边界组名称
|
|
172
|
+
```Python
|
|
173
|
+
# 示例代码
|
|
174
|
+
from qtmodel import *
|
|
175
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=1)
|
|
176
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=2,displacement_track=True,
|
|
177
|
+
displacement_groups=["结构组1","结构组2"])
|
|
178
|
+
```
|
|
179
|
+
Returns: 无
|
|
149
180
|
### update_non_linear_setting
|
|
150
181
|
更新非线性设置
|
|
151
182
|
> 参数:
|
|
@@ -959,7 +990,7 @@ Returns: 无
|
|
|
959
990
|
添加移动荷载工况汽车折减
|
|
960
991
|
> 参数:
|
|
961
992
|
> name:活载工况名
|
|
962
|
-
> code_index:
|
|
993
|
+
> code_index: 火车折减规范编号 1-铁规2017_ZK_ZC 2-铁规2017_ZKH_ZH 3-无
|
|
963
994
|
> cross_factors:横向折减系数列表,自定义时要求长度为8,否则按照规范选取
|
|
964
995
|
> calc_fatigue:是否计算疲劳
|
|
965
996
|
> line_count: 疲劳加载线路数
|
|
@@ -1649,7 +1680,7 @@ mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_na
|
|
|
1649
1680
|
```
|
|
1650
1681
|
Returns: 无
|
|
1651
1682
|
### add_custom_temperature
|
|
1652
|
-
|
|
1683
|
+
添加梁自定义温度
|
|
1653
1684
|
> 参数:
|
|
1654
1685
|
> case_name:荷载工况名
|
|
1655
1686
|
> element_id:单元编号,支持数或列表
|
|
@@ -1663,7 +1694,7 @@ mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,
|
|
|
1663
1694
|
```
|
|
1664
1695
|
Returns: 无
|
|
1665
1696
|
### remove_custom_temperature
|
|
1666
|
-
|
|
1697
|
+
删除梁单元自定义温度
|
|
1667
1698
|
> 参数:
|
|
1668
1699
|
> case_name:荷载工况名
|
|
1669
1700
|
> element_id:单元编号,支持数或列表
|
|
@@ -231,6 +231,55 @@ class Mdb:
|
|
|
231
231
|
except Exception as ex:
|
|
232
232
|
raise Exception(ex)
|
|
233
233
|
|
|
234
|
+
|
|
235
|
+
@staticmethod
|
|
236
|
+
def update_live_load_setting(lateral_spacing:float = 0.1, vertical_spacing : float = 1,damper_calc_type :int= -1,
|
|
237
|
+
displacement_calc_type :int = -1, force_calc_type:int = -1,reaction_calc_type:int = -1,
|
|
238
|
+
link_calc_type:int=-1,constrain_calc_type:int=-1,eccentricity:float=0.0,
|
|
239
|
+
displacement_track:bool=False,force_track:bool=False,reaction_track:bool=False,
|
|
240
|
+
link_track:bool=False,constrain_track:bool=False,damper_groups:list[str]=None,
|
|
241
|
+
displacement_groups:list[str]=None,force_groups:list[str]=None,reaction_groups:list[str]=None,
|
|
242
|
+
link_groups:list[str]=None,constrain_groups:list[str]=None):
|
|
243
|
+
"""
|
|
244
|
+
更新移动荷载分析设置
|
|
245
|
+
Args:
|
|
246
|
+
lateral_spacing: 横向加密间距
|
|
247
|
+
vertical_spacing: 纵向加密间距
|
|
248
|
+
damper_calc_type: 模拟阻尼器约束方程计算类选项(-1-不考虑 0-全部组 1-部分)
|
|
249
|
+
displacement_calc_type: 位移计算选项(-1-不考虑 0-全部组 1-部分)
|
|
250
|
+
force_calc_type: 内力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
251
|
+
reaction_calc_type: 反力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
252
|
+
link_calc_type: 连接计算选项(-1-不考虑 0-全部组 1-部分)
|
|
253
|
+
constrain_calc_type: 约束方程计算选项(-1-不考虑 0-全部组 1-部分)
|
|
254
|
+
eccentricity: 离心力系数
|
|
255
|
+
displacement_track: 是否追踪位移
|
|
256
|
+
force_track: 是否追踪内力
|
|
257
|
+
reaction_track: 是否追踪反力
|
|
258
|
+
link_track: 是否追踪连接
|
|
259
|
+
constrain_track: 是否追踪约束方程
|
|
260
|
+
damper_groups: 模拟阻尼器约束方程计算类选项为组时边界组名称
|
|
261
|
+
displacement_groups: 位移计算类选项为组时结构组名称
|
|
262
|
+
force_groups: 内力计算类选项为组时结构组名称
|
|
263
|
+
reaction_groups: 反力计算类选项为组时边界组名称
|
|
264
|
+
link_groups: 弹性连接计算类选项为组时边界组名称
|
|
265
|
+
constrain_groups: 约束方程计算类选项为组时边界组名称
|
|
266
|
+
Example:
|
|
267
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=1)
|
|
268
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=2,displacement_track=True,
|
|
269
|
+
displacement_groups=["结构组1","结构组2"])
|
|
270
|
+
Returns: 无
|
|
271
|
+
"""
|
|
272
|
+
try:
|
|
273
|
+
qt_model.UpdateLiveLoadSetting(
|
|
274
|
+
lateralSpacing=lateral_spacing, verticalSpacing=vertical_spacing,damperCalcType=damper_calc_type,
|
|
275
|
+
displacementCalcType=displacement_calc_type, forceCalcType=force_calc_type, reactionCalcType=reaction_calc_type,
|
|
276
|
+
linkCalcType=link_calc_type,constrainCalcType=constrain_calc_type,eccentricity=eccentricity,
|
|
277
|
+
displacementTack=displacement_track,forceTrack=force_track,reactionTrack=reaction_track,
|
|
278
|
+
linkTrack=link_track,constrainTrack=constrain_track,damperGroups=damper_groups,displacementGroups=displacement_groups,
|
|
279
|
+
forceGroups=force_groups,reactionGroups=reaction_groups,linkGroups=link_groups,constrainGroups=constrain_groups)
|
|
280
|
+
except Exception as ex:
|
|
281
|
+
raise Exception(ex)
|
|
282
|
+
|
|
234
283
|
@staticmethod
|
|
235
284
|
def update_non_linear_setting(non_linear_type: int = 1, non_linear_method: int = 1, max_loading_steps: int = 1, max_iteration_times: int = 30,
|
|
236
285
|
accuracy_of_displacement: float = 0.0001, accuracy_of_force: float = 0.0001):
|
|
@@ -1576,7 +1625,7 @@ class Mdb:
|
|
|
1576
1625
|
添加移动荷载工况汽车折减
|
|
1577
1626
|
Args:
|
|
1578
1627
|
name:活载工况名
|
|
1579
|
-
code_index:
|
|
1628
|
+
code_index: 火车折减规范编号 1-铁规2017_ZK_ZC 2-铁规2017_ZKH_ZH 3-无
|
|
1580
1629
|
cross_factors:横向折减系数列表,自定义时要求长度为8,否则按照规范选取
|
|
1581
1630
|
calc_fatigue:是否计算疲劳
|
|
1582
1631
|
line_count: 疲劳加载线路数
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.42
|
|
4
4
|
Summary: python modeling for qt 24/11/27
|
|
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.
|
|
15
|
+
# 最新版本 V0.5.42 - 2024.11.29
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 添加移动荷载分析接口
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -160,6 +160,37 @@ mdb.update_construction_stage_setting(do_analysis=True, to_end_stage=False, othe
|
|
|
160
160
|
do_creep_analysis=True, cable_tension_position=0, consider_completion_stage=True,shrink_creep_type=2)
|
|
161
161
|
```
|
|
162
162
|
Returns: 无
|
|
163
|
+
### update_live_load_setting
|
|
164
|
+
更新移动荷载分析设置
|
|
165
|
+
> 参数:
|
|
166
|
+
> lateral_spacing: 横向加密间距
|
|
167
|
+
> vertical_spacing: 纵向加密间距
|
|
168
|
+
> damper_calc_type: 模拟阻尼器约束方程计算类选项(-1-不考虑 0-全部组 1-部分)
|
|
169
|
+
> displacement_calc_type: 位移计算选项(-1-不考虑 0-全部组 1-部分)
|
|
170
|
+
> force_calc_type: 内力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
171
|
+
> reaction_calc_type: 反力计算选项(-1-不考虑 0-全部组 1-部分)
|
|
172
|
+
> link_calc_type: 连接计算选项(-1-不考虑 0-全部组 1-部分)
|
|
173
|
+
> constrain_calc_type: 约束方程计算选项(-1-不考虑 0-全部组 1-部分)
|
|
174
|
+
> eccentricity: 离心力系数
|
|
175
|
+
> displacement_track: 是否追踪位移
|
|
176
|
+
> force_track: 是否追踪内力
|
|
177
|
+
> reaction_track: 是否追踪反力
|
|
178
|
+
> link_track: 是否追踪连接
|
|
179
|
+
> constrain_track: 是否追踪约束方程
|
|
180
|
+
> damper_groups: 模拟阻尼器约束方程计算类选项为组时边界组名称
|
|
181
|
+
> displacement_groups: 位移计算类选项为组时结构组名称
|
|
182
|
+
> force_groups: 内力计算类选项为组时结构组名称
|
|
183
|
+
> reaction_groups: 反力计算类选项为组时边界组名称
|
|
184
|
+
> link_groups: 弹性连接计算类选项为组时边界组名称
|
|
185
|
+
> constrain_groups: 约束方程计算类选项为组时边界组名称
|
|
186
|
+
```Python
|
|
187
|
+
# 示例代码
|
|
188
|
+
from qtmodel import *
|
|
189
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=1)
|
|
190
|
+
mdb.update_live_load_setting(lateral_spacing=0.1, vertical_spacing=1, displacement_calc_type=2,displacement_track=True,
|
|
191
|
+
displacement_groups=["结构组1","结构组2"])
|
|
192
|
+
```
|
|
193
|
+
Returns: 无
|
|
163
194
|
### update_non_linear_setting
|
|
164
195
|
更新非线性设置
|
|
165
196
|
> 参数:
|
|
@@ -973,7 +1004,7 @@ Returns: 无
|
|
|
973
1004
|
添加移动荷载工况汽车折减
|
|
974
1005
|
> 参数:
|
|
975
1006
|
> name:活载工况名
|
|
976
|
-
> code_index:
|
|
1007
|
+
> code_index: 火车折减规范编号 1-铁规2017_ZK_ZC 2-铁规2017_ZKH_ZH 3-无
|
|
977
1008
|
> cross_factors:横向折减系数列表,自定义时要求长度为8,否则按照规范选取
|
|
978
1009
|
> calc_fatigue:是否计算疲劳
|
|
979
1010
|
> line_count: 疲劳加载线路数
|
|
@@ -1663,7 +1694,7 @@ mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_na
|
|
|
1663
1694
|
```
|
|
1664
1695
|
Returns: 无
|
|
1665
1696
|
### add_custom_temperature
|
|
1666
|
-
|
|
1697
|
+
添加梁自定义温度
|
|
1667
1698
|
> 参数:
|
|
1668
1699
|
> case_name:荷载工况名
|
|
1669
1700
|
> element_id:单元编号,支持数或列表
|
|
@@ -1677,7 +1708,7 @@ mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,
|
|
|
1677
1708
|
```
|
|
1678
1709
|
Returns: 无
|
|
1679
1710
|
### remove_custom_temperature
|
|
1680
|
-
|
|
1711
|
+
删除梁单元自定义温度
|
|
1681
1712
|
> 参数:
|
|
1682
1713
|
> case_name:荷载工况名
|
|
1683
1714
|
> element_id:单元编号,支持数或列表
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|