qtmodel 0.6.6__tar.gz → 0.6.8__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.6.6 → qtmodel-0.6.8}/PKG-INFO +21 -4
- {qtmodel-0.6.6 → qtmodel-0.6.8}/README.md +19 -2
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel/qt_mdb.py +26 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel/qt_odb.py +14 -7
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel.egg-info/PKG-INFO +21 -4
- {qtmodel-0.6.6 → qtmodel-0.6.8}/setup.py +1 -2
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel/__init__.py +0 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.6.6 → qtmodel-0.6.8}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.6.
|
|
4
|
-
Summary: python modeling for qt 2025-02-
|
|
3
|
+
Version: 0.6.8
|
|
4
|
+
Summary: python modeling for qt 2025-02-18
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,10 +12,27 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
> 最新版本 V0.6.
|
|
16
|
-
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
15
|
+
> 最新版本 V0.6.8 - 2025-02-18
|
|
16
|
+
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 新增部分接口
|
|
18
18
|
# 建模操作
|
|
19
|
+
## 建模助手
|
|
20
|
+
### create_cantilever_bridge
|
|
21
|
+
悬浇桥快速建模
|
|
22
|
+
> 参数:
|
|
23
|
+
> span_len:桥跨分段
|
|
24
|
+
> span_seg:各桥跨内节段基准长度
|
|
25
|
+
> bearing_spacing:支座间距
|
|
26
|
+
> top_width:主梁顶板宽度
|
|
27
|
+
> bottom_width:主梁顶板宽度
|
|
28
|
+
> box_num:主梁箱室长度
|
|
29
|
+
> material:主梁材料类型
|
|
30
|
+
```Python
|
|
31
|
+
# 示例代码
|
|
32
|
+
from qtmodel import *
|
|
33
|
+
mdb.create_cantilever_bridge(span_len=[6,70,70,6],span_seg=[2,3.5,3.5,2],bearing_spacing=[5.6,5.6])
|
|
34
|
+
```
|
|
35
|
+
Returns: 无
|
|
19
36
|
## 项目管理
|
|
20
37
|
### undo_model
|
|
21
38
|
撤销模型上次操作
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
> 最新版本 V0.6.
|
|
2
|
-
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
1
|
+
> 最新版本 V0.6.8 - 2025-02-18
|
|
2
|
+
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 新增部分接口
|
|
4
4
|
# 建模操作
|
|
5
|
+
## 建模助手
|
|
6
|
+
### create_cantilever_bridge
|
|
7
|
+
悬浇桥快速建模
|
|
8
|
+
> 参数:
|
|
9
|
+
> span_len:桥跨分段
|
|
10
|
+
> span_seg:各桥跨内节段基准长度
|
|
11
|
+
> bearing_spacing:支座间距
|
|
12
|
+
> top_width:主梁顶板宽度
|
|
13
|
+
> bottom_width:主梁顶板宽度
|
|
14
|
+
> box_num:主梁箱室长度
|
|
15
|
+
> material:主梁材料类型
|
|
16
|
+
```Python
|
|
17
|
+
# 示例代码
|
|
18
|
+
from qtmodel import *
|
|
19
|
+
mdb.create_cantilever_bridge(span_len=[6,70,70,6],span_seg=[2,3.5,3.5,2],bearing_spacing=[5.6,5.6])
|
|
20
|
+
```
|
|
21
|
+
Returns: 无
|
|
5
22
|
## 项目管理
|
|
6
23
|
### undo_model
|
|
7
24
|
撤销模型上次操作
|
|
@@ -7,6 +7,32 @@ class Mdb:
|
|
|
7
7
|
建模与模型修改计算,所有函数均无返回值
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
# region 建模助手
|
|
11
|
+
@staticmethod
|
|
12
|
+
def create_cantilever_bridge(span_len: list[float], span_seg: list[float], bearing_spacing: list[float],
|
|
13
|
+
top_width: float = 20.0, bottom_width: float = 12.5, box_num: int = 1, material: str = "C50"):
|
|
14
|
+
"""
|
|
15
|
+
悬浇桥快速建模
|
|
16
|
+
Args:
|
|
17
|
+
span_len:桥跨分段
|
|
18
|
+
span_seg:各桥跨内节段基准长度
|
|
19
|
+
bearing_spacing:支座间距
|
|
20
|
+
top_width:主梁顶板宽度
|
|
21
|
+
bottom_width:主梁顶板宽度
|
|
22
|
+
box_num:主梁箱室长度
|
|
23
|
+
material:主梁材料类型
|
|
24
|
+
Example:
|
|
25
|
+
mdb.create_cantilever_bridge(span_len=[6,70,70,6],span_seg=[2,3.5,3.5,2],bearing_spacing=[5.6,5.6])
|
|
26
|
+
Returns: 无
|
|
27
|
+
"""
|
|
28
|
+
try:
|
|
29
|
+
qt_model.CreateCantileverBridge(spanLen=span_len, spanSeg=span_seg, bearingSpacing=bearing_spacing,
|
|
30
|
+
topWidth=top_width, bottomWidth=bottom_width, boxNum=box_num, material=material)
|
|
31
|
+
except Exception as ex:
|
|
32
|
+
raise Exception(ex)
|
|
33
|
+
|
|
34
|
+
# endregion
|
|
35
|
+
|
|
10
36
|
# region 项目管理
|
|
11
37
|
@staticmethod
|
|
12
38
|
def undo_model():
|
|
@@ -355,7 +355,8 @@ class Odb:
|
|
|
355
355
|
Returns: json字符串,包含信息为dict
|
|
356
356
|
"""
|
|
357
357
|
try:
|
|
358
|
-
qt_model.GetSelfConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
|
|
358
|
+
res_dict = qt_model.GetSelfConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
|
|
359
|
+
return json.dumps(res_dict)
|
|
359
360
|
except Exception as ex:
|
|
360
361
|
raise Exception(ex)
|
|
361
362
|
|
|
@@ -371,7 +372,8 @@ class Odb:
|
|
|
371
372
|
Returns: json字符串,包含信息为dict
|
|
372
373
|
"""
|
|
373
374
|
try:
|
|
374
|
-
qt_model.GetAllConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
|
|
375
|
+
res_dict = qt_model.GetAllConcurrentReaction(nodeId=node_id, loadCaseName=case_name)
|
|
376
|
+
return json.dumps(res_dict)
|
|
375
377
|
except Exception as ex:
|
|
376
378
|
raise Exception(ex)
|
|
377
379
|
|
|
@@ -387,7 +389,8 @@ class Odb:
|
|
|
387
389
|
Returns: json字符串,包含信息为dict
|
|
388
390
|
"""
|
|
389
391
|
try:
|
|
390
|
-
qt_model.GetBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
|
|
392
|
+
res_dict = qt_model.GetBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
|
|
393
|
+
return json.dumps(res_dict)
|
|
391
394
|
except Exception as ex:
|
|
392
395
|
raise Exception(ex)
|
|
393
396
|
|
|
@@ -403,7 +406,8 @@ class Odb:
|
|
|
403
406
|
Returns: json字符串,包含信息为dict
|
|
404
407
|
"""
|
|
405
408
|
try:
|
|
406
|
-
qt_model.GetCompositeBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
|
|
409
|
+
res_dict = qt_model.GetCompositeBeamConcurrentForce(eleId=ele_id, loadCaseName=case_name)
|
|
410
|
+
return json.dumps(res_dict)
|
|
407
411
|
except Exception as ex:
|
|
408
412
|
raise Exception(ex)
|
|
409
413
|
|
|
@@ -443,7 +447,8 @@ class Odb:
|
|
|
443
447
|
Returns: json字符串,包含信息为dict
|
|
444
448
|
"""
|
|
445
449
|
try:
|
|
446
|
-
qt_model.GetPeriodAndFrequency(mode=mode)
|
|
450
|
+
res_dict = qt_model.GetPeriodAndFrequency(mode=mode)
|
|
451
|
+
return json.dumps(res_dict)
|
|
447
452
|
except Exception as ex:
|
|
448
453
|
raise Exception(ex)
|
|
449
454
|
|
|
@@ -458,7 +463,8 @@ class Odb:
|
|
|
458
463
|
Returns: json字符串,包含信息为dict
|
|
459
464
|
"""
|
|
460
465
|
try:
|
|
461
|
-
qt_model.GetParticipationMass(mode=mode)
|
|
466
|
+
res_dict = qt_model.GetParticipationMass(mode=mode)
|
|
467
|
+
return json.dumps(res_dict)
|
|
462
468
|
except Exception as ex:
|
|
463
469
|
raise Exception(ex)
|
|
464
470
|
|
|
@@ -473,7 +479,8 @@ class Odb:
|
|
|
473
479
|
Returns: json字符串,包含信息为dict
|
|
474
480
|
"""
|
|
475
481
|
try:
|
|
476
|
-
qt_model.GetParticipationFactor(mode=mode)
|
|
482
|
+
res_dict = qt_model.GetParticipationFactor(mode=mode)
|
|
483
|
+
return json.dumps(res_dict)
|
|
477
484
|
except Exception as ex:
|
|
478
485
|
raise Exception(ex)
|
|
479
486
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.6.
|
|
4
|
-
Summary: python modeling for qt 2025-02-
|
|
3
|
+
Version: 0.6.8
|
|
4
|
+
Summary: python modeling for qt 2025-02-18
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,10 +12,27 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
> 最新版本 V0.6.
|
|
16
|
-
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
15
|
+
> 最新版本 V0.6.8 - 2025-02-18
|
|
16
|
+
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 新增部分接口
|
|
18
18
|
# 建模操作
|
|
19
|
+
## 建模助手
|
|
20
|
+
### create_cantilever_bridge
|
|
21
|
+
悬浇桥快速建模
|
|
22
|
+
> 参数:
|
|
23
|
+
> span_len:桥跨分段
|
|
24
|
+
> span_seg:各桥跨内节段基准长度
|
|
25
|
+
> bearing_spacing:支座间距
|
|
26
|
+
> top_width:主梁顶板宽度
|
|
27
|
+
> bottom_width:主梁顶板宽度
|
|
28
|
+
> box_num:主梁箱室长度
|
|
29
|
+
> material:主梁材料类型
|
|
30
|
+
```Python
|
|
31
|
+
# 示例代码
|
|
32
|
+
from qtmodel import *
|
|
33
|
+
mdb.create_cantilever_bridge(span_len=[6,70,70,6],span_seg=[2,3.5,3.5,2],bearing_spacing=[5.6,5.6])
|
|
34
|
+
```
|
|
35
|
+
Returns: 无
|
|
19
36
|
## 项目管理
|
|
20
37
|
### undo_model
|
|
21
38
|
撤销模型上次操作
|
|
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="qtmodel",
|
|
12
|
-
version=f"V0.6.
|
|
12
|
+
version=f"V0.6.8",
|
|
13
13
|
author="dqy-zhj",
|
|
14
14
|
author_email="1105417715@qq.com",
|
|
15
15
|
description=f"python modeling for qt {datetime.now().date()} ",
|
|
@@ -23,4 +23,3 @@ setup(
|
|
|
23
23
|
"Operating System :: OS Independent",
|
|
24
24
|
],
|
|
25
25
|
)
|
|
26
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|