qtmodel 0.7.3__tar.gz → 0.9.1__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.
- {qtmodel-0.7.3 → qtmodel-0.9.1}/PKG-INFO +7 -21
- {qtmodel-0.7.3 → qtmodel-0.9.1}/README.md +5 -19
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel/qt_mdb.py +10 -35
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel.egg-info/PKG-INFO +7 -21
- {qtmodel-0.7.3 → qtmodel-0.9.1}/setup.py +1 -1
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel/__init__.py +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.7.3 → qtmodel-0.9.1}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: python modeling for qt 2025-06-
|
|
3
|
+
Version: 0.9.1
|
|
4
|
+
Summary: python modeling for qt 2025-06-30
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
> 最新版本 V0.
|
|
15
|
+
> 最新版本 V0.9.1 - 2025-06-30
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 新增更新结构组接口
|
|
18
18
|
# 建模操作
|
|
@@ -3179,38 +3179,24 @@ Returns:无
|
|
|
3179
3179
|
### add_load_combine
|
|
3180
3180
|
添加荷载组合
|
|
3181
3181
|
> 参数:
|
|
3182
|
+
> index:荷载组合编号,默认自动识别为最大编号加1
|
|
3182
3183
|
> name:荷载组合名
|
|
3183
3184
|
> combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
|
|
3184
3185
|
> describe:描述
|
|
3185
3186
|
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3186
3187
|
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3187
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
|
|
3188
|
+
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
|
|
3188
3189
|
```Python
|
|
3189
3190
|
# 示例代码
|
|
3190
3191
|
from qtmodel import *
|
|
3191
3192
|
mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3192
3193
|
```
|
|
3193
3194
|
Returns: 无
|
|
3194
|
-
### update_load_combine
|
|
3195
|
-
更新荷载组合
|
|
3196
|
-
> 参数:
|
|
3197
|
-
> name:荷载组合名
|
|
3198
|
-
> new_name:新荷载组合名,默认不修改
|
|
3199
|
-
> combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
|
|
3200
|
-
> describe:描述
|
|
3201
|
-
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3202
|
-
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3203
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况
|
|
3204
|
-
```Python
|
|
3205
|
-
# 示例代码
|
|
3206
|
-
from qtmodel import *
|
|
3207
|
-
mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3208
|
-
```
|
|
3209
|
-
Returns: 无
|
|
3210
3195
|
### remove_load_combine
|
|
3211
3196
|
删除荷载组合
|
|
3212
3197
|
> 参数:
|
|
3213
|
-
> name
|
|
3198
|
+
> index: 默认时则按照name删除荷载组合
|
|
3199
|
+
> name:指定删除荷载组合名
|
|
3214
3200
|
```Python
|
|
3215
3201
|
# 示例代码
|
|
3216
3202
|
from qtmodel import *
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> 最新版本 V0.
|
|
1
|
+
> 最新版本 V0.9.1 - 2025-06-30
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 新增更新结构组接口
|
|
4
4
|
# 建模操作
|
|
@@ -3165,38 +3165,24 @@ Returns:无
|
|
|
3165
3165
|
### add_load_combine
|
|
3166
3166
|
添加荷载组合
|
|
3167
3167
|
> 参数:
|
|
3168
|
+
> index:荷载组合编号,默认自动识别为最大编号加1
|
|
3168
3169
|
> name:荷载组合名
|
|
3169
3170
|
> combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
|
|
3170
3171
|
> describe:描述
|
|
3171
3172
|
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3172
3173
|
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3173
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
|
|
3174
|
+
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
|
|
3174
3175
|
```Python
|
|
3175
3176
|
# 示例代码
|
|
3176
3177
|
from qtmodel import *
|
|
3177
3178
|
mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3178
3179
|
```
|
|
3179
3180
|
Returns: 无
|
|
3180
|
-
### update_load_combine
|
|
3181
|
-
更新荷载组合
|
|
3182
|
-
> 参数:
|
|
3183
|
-
> name:荷载组合名
|
|
3184
|
-
> new_name:新荷载组合名,默认不修改
|
|
3185
|
-
> combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
|
|
3186
|
-
> describe:描述
|
|
3187
|
-
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3188
|
-
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3189
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况
|
|
3190
|
-
```Python
|
|
3191
|
-
# 示例代码
|
|
3192
|
-
from qtmodel import *
|
|
3193
|
-
mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3194
|
-
```
|
|
3195
|
-
Returns: 无
|
|
3196
3181
|
### remove_load_combine
|
|
3197
3182
|
删除荷载组合
|
|
3198
3183
|
> 参数:
|
|
3199
|
-
> name
|
|
3184
|
+
> index: 默认时则按照name删除荷载组合
|
|
3185
|
+
> name:指定删除荷载组合名
|
|
3200
3186
|
```Python
|
|
3201
3187
|
# 示例代码
|
|
3202
3188
|
from qtmodel import *
|
|
@@ -1487,8 +1487,8 @@ class Mdb:
|
|
|
1487
1487
|
charm_right: list[str] = None,
|
|
1488
1488
|
box_num: int = 3,
|
|
1489
1489
|
box_height: float = 2,
|
|
1490
|
-
box_other_info:list[
|
|
1491
|
-
box_other_right:list[
|
|
1490
|
+
box_other_info:dict[str, list[float]]=None,
|
|
1491
|
+
box_other_right:dict[str, list[float]]=None,
|
|
1492
1492
|
mat_combine: list[float] = None,
|
|
1493
1493
|
rib_info: dict[str, list[float]] = None,
|
|
1494
1494
|
rib_place: list[tuple[int, int, float, str, int, str]] = None,
|
|
@@ -5036,16 +5036,17 @@ class Mdb:
|
|
|
5036
5036
|
|
|
5037
5037
|
# region 荷载组合操作
|
|
5038
5038
|
@staticmethod
|
|
5039
|
-
def add_load_combine(name: str = "", combine_type: int = 1, describe: str = "", combine_info: list[tuple[str, str, float]] = None):
|
|
5039
|
+
def add_load_combine(index:int = -1, name: str = "", combine_type: int = 1, describe: str = "", combine_info: list[tuple[str, str, float]] = None):
|
|
5040
5040
|
"""
|
|
5041
5041
|
添加荷载组合
|
|
5042
5042
|
Args:
|
|
5043
|
+
index:荷载组合编号,默认自动识别为最大编号加1
|
|
5043
5044
|
name:荷载组合名
|
|
5044
5045
|
combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
|
|
5045
5046
|
describe:描述
|
|
5046
5047
|
combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
5047
5048
|
_"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
5048
|
-
_"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
|
|
5049
|
+
_"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
|
|
5049
5050
|
Example:
|
|
5050
5051
|
mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
5051
5052
|
Returns: 无
|
|
@@ -5053,49 +5054,23 @@ class Mdb:
|
|
|
5053
5054
|
try:
|
|
5054
5055
|
if combine_info is None:
|
|
5055
5056
|
combine_info = []
|
|
5056
|
-
qt_model.AddLoadCombine(name=name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
|
|
5057
|
+
qt_model.AddLoadCombine(index=index, name=name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
|
|
5057
5058
|
except Exception as ex:
|
|
5058
5059
|
raise Exception(ex)
|
|
5059
5060
|
|
|
5060
5061
|
@staticmethod
|
|
5061
|
-
def
|
|
5062
|
-
combine_info: list[tuple[str, str, float]] = None):
|
|
5063
|
-
"""
|
|
5064
|
-
更新荷载组合
|
|
5065
|
-
Args:
|
|
5066
|
-
name:荷载组合名
|
|
5067
|
-
new_name:新荷载组合名,默认不修改
|
|
5068
|
-
combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
|
|
5069
|
-
describe:描述
|
|
5070
|
-
combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
5071
|
-
_"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
5072
|
-
_"MV"-移动荷载工况 "SM"-沉降荷载工况
|
|
5073
|
-
Example:
|
|
5074
|
-
mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
5075
|
-
Returns: 无
|
|
5076
|
-
"""
|
|
5077
|
-
try:
|
|
5078
|
-
if combine_info is None:
|
|
5079
|
-
combine_info = []
|
|
5080
|
-
qt_model.UpdateLoadCombine(name=name, newName=new_name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
|
|
5081
|
-
except Exception as ex:
|
|
5082
|
-
raise Exception(ex)
|
|
5083
|
-
|
|
5084
|
-
@staticmethod
|
|
5085
|
-
def remove_load_combine(name: str = ""):
|
|
5062
|
+
def remove_load_combine(index :int = -1,name: str = ""):
|
|
5086
5063
|
"""
|
|
5087
5064
|
删除荷载组合
|
|
5088
5065
|
Args:
|
|
5089
|
-
|
|
5066
|
+
index: 默认时则按照name删除荷载组合
|
|
5067
|
+
name:指定删除荷载组合名
|
|
5090
5068
|
Example:
|
|
5091
5069
|
mdb.remove_load_combine(name="荷载组合1")
|
|
5092
5070
|
Returns: 无
|
|
5093
5071
|
"""
|
|
5094
5072
|
try:
|
|
5095
|
-
|
|
5096
|
-
qt_model.DeleteLoadCombine(name=name)
|
|
5097
|
-
else:
|
|
5098
|
-
qt_model.DeleteAllLoadCombine()
|
|
5073
|
+
qt_model.RemoveLoadCombine(index=index,name=name)
|
|
5099
5074
|
except Exception as ex:
|
|
5100
5075
|
raise Exception(ex)
|
|
5101
5076
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: python modeling for qt 2025-06-
|
|
3
|
+
Version: 0.9.1
|
|
4
|
+
Summary: python modeling for qt 2025-06-30
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
> 最新版本 V0.
|
|
15
|
+
> 最新版本 V0.9.1 - 2025-06-30
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 新增更新结构组接口
|
|
18
18
|
# 建模操作
|
|
@@ -3179,38 +3179,24 @@ Returns:无
|
|
|
3179
3179
|
### add_load_combine
|
|
3180
3180
|
添加荷载组合
|
|
3181
3181
|
> 参数:
|
|
3182
|
+
> index:荷载组合编号,默认自动识别为最大编号加1
|
|
3182
3183
|
> name:荷载组合名
|
|
3183
3184
|
> combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
|
|
3184
3185
|
> describe:描述
|
|
3185
3186
|
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3186
3187
|
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3187
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
|
|
3188
|
+
> _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
|
|
3188
3189
|
```Python
|
|
3189
3190
|
# 示例代码
|
|
3190
3191
|
from qtmodel import *
|
|
3191
3192
|
mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3192
3193
|
```
|
|
3193
3194
|
Returns: 无
|
|
3194
|
-
### update_load_combine
|
|
3195
|
-
更新荷载组合
|
|
3196
|
-
> 参数:
|
|
3197
|
-
> name:荷载组合名
|
|
3198
|
-
> new_name:新荷载组合名,默认不修改
|
|
3199
|
-
> combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
|
|
3200
|
-
> describe:描述
|
|
3201
|
-
> combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
|
|
3202
|
-
> _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
|
|
3203
|
-
> _"MV"-移动荷载工况 "SM"-沉降荷载工况
|
|
3204
|
-
```Python
|
|
3205
|
-
# 示例代码
|
|
3206
|
-
from qtmodel import *
|
|
3207
|
-
mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
|
|
3208
|
-
```
|
|
3209
|
-
Returns: 无
|
|
3210
3195
|
### remove_load_combine
|
|
3211
3196
|
删除荷载组合
|
|
3212
3197
|
> 参数:
|
|
3213
|
-
> name
|
|
3198
|
+
> index: 默认时则按照name删除荷载组合
|
|
3199
|
+
> name:指定删除荷载组合名
|
|
3214
3200
|
```Python
|
|
3215
3201
|
# 示例代码
|
|
3216
3202
|
from qtmodel import *
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|