qtmodel 0.5.40__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.40 → qtmodel-0.5.42}/PKG-INFO +63 -6
- {qtmodel-0.5.40 → qtmodel-0.5.42}/README.md +61 -4
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel/qt_mdb.py +89 -2
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel.egg-info/PKG-INFO +63 -6
- {qtmodel-0.5.40 → qtmodel-0.5.42}/setup.py +2 -2
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.40 → qtmodel-0.5.42}/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/11/
|
|
3
|
+
Version: 0.5.42
|
|
4
|
+
Summary: python modeling for qt 24/11/27
|
|
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.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: 疲劳加载线路数
|
|
@@ -1659,7 +1690,33 @@ Returns: 无
|
|
|
1659
1690
|
```Python
|
|
1660
1691
|
# 示例代码
|
|
1661
1692
|
from qtmodel import *
|
|
1662
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1693
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1694
|
+
```
|
|
1695
|
+
Returns: 无
|
|
1696
|
+
### add_custom_temperature
|
|
1697
|
+
添加梁自定义温度
|
|
1698
|
+
> 参数:
|
|
1699
|
+
> case_name:荷载工况名
|
|
1700
|
+
> element_id:单元编号,支持数或列表
|
|
1701
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1702
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1703
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1704
|
+
```Python
|
|
1705
|
+
# 示例代码
|
|
1706
|
+
from qtmodel import *
|
|
1707
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1708
|
+
```
|
|
1709
|
+
Returns: 无
|
|
1710
|
+
### remove_custom_temperature
|
|
1711
|
+
删除梁单元自定义温度
|
|
1712
|
+
> 参数:
|
|
1713
|
+
> case_name:荷载工况名
|
|
1714
|
+
> element_id:单元编号,支持数或列表
|
|
1715
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1716
|
+
```Python
|
|
1717
|
+
# 示例代码
|
|
1718
|
+
from qtmodel import *
|
|
1719
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1663
1720
|
```
|
|
1664
1721
|
Returns: 无
|
|
1665
1722
|
## 沉降操作
|
|
@@ -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: 疲劳加载线路数
|
|
@@ -1645,7 +1676,33 @@ Returns: 无
|
|
|
1645
1676
|
```Python
|
|
1646
1677
|
# 示例代码
|
|
1647
1678
|
from qtmodel import *
|
|
1648
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1679
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1680
|
+
```
|
|
1681
|
+
Returns: 无
|
|
1682
|
+
### add_custom_temperature
|
|
1683
|
+
添加梁自定义温度
|
|
1684
|
+
> 参数:
|
|
1685
|
+
> case_name:荷载工况名
|
|
1686
|
+
> element_id:单元编号,支持数或列表
|
|
1687
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1688
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1689
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1690
|
+
```Python
|
|
1691
|
+
# 示例代码
|
|
1692
|
+
from qtmodel import *
|
|
1693
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1694
|
+
```
|
|
1695
|
+
Returns: 无
|
|
1696
|
+
### remove_custom_temperature
|
|
1697
|
+
删除梁单元自定义温度
|
|
1698
|
+
> 参数:
|
|
1699
|
+
> case_name:荷载工况名
|
|
1700
|
+
> element_id:单元编号,支持数或列表
|
|
1701
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1702
|
+
```Python
|
|
1703
|
+
# 示例代码
|
|
1704
|
+
from qtmodel import *
|
|
1705
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1649
1706
|
```
|
|
1650
1707
|
Returns: 无
|
|
1651
1708
|
## 沉降操作
|
|
@@ -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: 疲劳加载线路数
|
|
@@ -2661,7 +2710,7 @@ class Mdb:
|
|
|
2661
2710
|
element_id:单元编号,支持数或列表
|
|
2662
2711
|
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2663
2712
|
Example:
|
|
2664
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
2713
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
2665
2714
|
Returns: 无
|
|
2666
2715
|
"""
|
|
2667
2716
|
try:
|
|
@@ -2669,6 +2718,44 @@ class Mdb:
|
|
|
2669
2718
|
except Exception as ex:
|
|
2670
2719
|
raise Exception(ex)
|
|
2671
2720
|
|
|
2721
|
+
@staticmethod
|
|
2722
|
+
def add_custom_temperature(element_id: (Union[int, List[int]]) = 1, case_name: str = "", group_name: str = "默认荷载组",
|
|
2723
|
+
orientation: int = 1, temperature_data: List[tuple[int, float, float]] = None):
|
|
2724
|
+
"""
|
|
2725
|
+
添加梁自定义温度
|
|
2726
|
+
Args:
|
|
2727
|
+
case_name:荷载工况名
|
|
2728
|
+
element_id:单元编号,支持数或列表
|
|
2729
|
+
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2730
|
+
orientation: 1-局部坐标z 2-局部坐标y
|
|
2731
|
+
temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
2732
|
+
Example:
|
|
2733
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
2734
|
+
Returns: 无
|
|
2735
|
+
"""
|
|
2736
|
+
try:
|
|
2737
|
+
qt_model.AddCustomTemperature(caseName=case_name, elementId=element_id, groupName=group_name, orientation=orientation,
|
|
2738
|
+
temperatureData=temperature_data)
|
|
2739
|
+
except Exception as ex:
|
|
2740
|
+
raise Exception(ex)
|
|
2741
|
+
|
|
2742
|
+
@staticmethod
|
|
2743
|
+
def remove_custom_temperature(case_name: str, element_id: (Union[int, List[int]]) = 1, group_name: str = "默认荷载组"):
|
|
2744
|
+
"""
|
|
2745
|
+
删除梁单元自定义温度
|
|
2746
|
+
Args:
|
|
2747
|
+
case_name:荷载工况名
|
|
2748
|
+
element_id:单元编号,支持数或列表
|
|
2749
|
+
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2750
|
+
Example:
|
|
2751
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2752
|
+
Returns: 无
|
|
2753
|
+
"""
|
|
2754
|
+
try:
|
|
2755
|
+
qt_model.RemoveCustomTemperature(caseName=case_name, elementId=element_id, groupName=group_name)
|
|
2756
|
+
except Exception as ex:
|
|
2757
|
+
raise Exception(ex)
|
|
2758
|
+
|
|
2672
2759
|
# endregion
|
|
2673
2760
|
|
|
2674
2761
|
# region 沉降操作
|
|
@@ -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/11/
|
|
3
|
+
Version: 0.5.42
|
|
4
|
+
Summary: python modeling for qt 24/11/27
|
|
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.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: 疲劳加载线路数
|
|
@@ -1659,7 +1690,33 @@ Returns: 无
|
|
|
1659
1690
|
```Python
|
|
1660
1691
|
# 示例代码
|
|
1661
1692
|
from qtmodel import *
|
|
1662
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1693
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1694
|
+
```
|
|
1695
|
+
Returns: 无
|
|
1696
|
+
### add_custom_temperature
|
|
1697
|
+
添加梁自定义温度
|
|
1698
|
+
> 参数:
|
|
1699
|
+
> case_name:荷载工况名
|
|
1700
|
+
> element_id:单元编号,支持数或列表
|
|
1701
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1702
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1703
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1704
|
+
```Python
|
|
1705
|
+
# 示例代码
|
|
1706
|
+
from qtmodel import *
|
|
1707
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1708
|
+
```
|
|
1709
|
+
Returns: 无
|
|
1710
|
+
### remove_custom_temperature
|
|
1711
|
+
删除梁单元自定义温度
|
|
1712
|
+
> 参数:
|
|
1713
|
+
> case_name:荷载工况名
|
|
1714
|
+
> element_id:单元编号,支持数或列表
|
|
1715
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1716
|
+
```Python
|
|
1717
|
+
# 示例代码
|
|
1718
|
+
from qtmodel import *
|
|
1719
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1663
1720
|
```
|
|
1664
1721
|
Returns: 无
|
|
1665
1722
|
## 沉降操作
|
|
@@ -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.42",
|
|
11
11
|
author="dqy-zhj",
|
|
12
12
|
author_email="1105417715@qq.com",
|
|
13
|
-
description="python modeling for qt 24/11/
|
|
13
|
+
description="python modeling for qt 24/11/27 ",
|
|
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
|
|
File without changes
|