qtmodel 0.6.2__tar.gz → 0.6.3__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.2 → qtmodel-0.6.3}/PKG-INFO +16 -3
- {qtmodel-0.6.2 → qtmodel-0.6.3}/README.md +14 -1
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel/qt_odb.py +22 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel.egg-info/PKG-INFO +16 -3
- {qtmodel-0.6.2 → qtmodel-0.6.3}/setup.py +1 -1
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel/__init__.py +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel/qt_mdb.py +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.6.2 → qtmodel-0.6.3}/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-01-
|
|
3
|
+
Version: 0.6.3
|
|
4
|
+
Summary: python modeling for qt 2025-01-17
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> 最新版本 V0.6.3 - 2025-01-17
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 修改部分接口
|
|
18
|
+
# 建模操作
|
|
18
19
|
## 项目管理
|
|
19
20
|
### undo_model
|
|
20
21
|
撤销模型上次操作
|
|
@@ -2700,6 +2701,7 @@ from qtmodel import *
|
|
|
2700
2701
|
mdb.remove_load_combine(name="荷载组合1")
|
|
2701
2702
|
```
|
|
2702
2703
|
Returns: 无
|
|
2704
|
+
# 视图与结果提取
|
|
2703
2705
|
## 视图控制
|
|
2704
2706
|
### display_node_id
|
|
2705
2707
|
设置节点号显示
|
|
@@ -2876,6 +2878,17 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
|
|
|
2876
2878
|
odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
|
|
2877
2879
|
```
|
|
2878
2880
|
Returns: json字符串,包含信息为list[dict] or dict
|
|
2881
|
+
### get_vibration_node_displacement
|
|
2882
|
+
获取指定节点指定模态的振型向量
|
|
2883
|
+
> 参数:
|
|
2884
|
+
> node_id: 节点号
|
|
2885
|
+
> mode: 模态号
|
|
2886
|
+
```Python
|
|
2887
|
+
# 示例代码
|
|
2888
|
+
from qtmodel import *
|
|
2889
|
+
odb.get_vibration_node_displacement(node_id=1,mode=1)
|
|
2890
|
+
```
|
|
2891
|
+
Returns: json字符串,包含信息为list[dict] or dict
|
|
2879
2892
|
## 绘制模型结果
|
|
2880
2893
|
### plot_reaction_result
|
|
2881
2894
|
保存结果图片到指定文件甲
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
> 最新版本 V0.6.3 - 2025-01-17
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 修改部分接口
|
|
4
|
+
# 建模操作
|
|
4
5
|
## 项目管理
|
|
5
6
|
### undo_model
|
|
6
7
|
撤销模型上次操作
|
|
@@ -2686,6 +2687,7 @@ from qtmodel import *
|
|
|
2686
2687
|
mdb.remove_load_combine(name="荷载组合1")
|
|
2687
2688
|
```
|
|
2688
2689
|
Returns: 无
|
|
2690
|
+
# 视图与结果提取
|
|
2689
2691
|
## 视图控制
|
|
2690
2692
|
### display_node_id
|
|
2691
2693
|
设置节点号显示
|
|
@@ -2862,6 +2864,17 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
|
|
|
2862
2864
|
odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
|
|
2863
2865
|
```
|
|
2864
2866
|
Returns: json字符串,包含信息为list[dict] or dict
|
|
2867
|
+
### get_vibration_node_displacement
|
|
2868
|
+
获取指定节点指定模态的振型向量
|
|
2869
|
+
> 参数:
|
|
2870
|
+
> node_id: 节点号
|
|
2871
|
+
> mode: 模态号
|
|
2872
|
+
```Python
|
|
2873
|
+
# 示例代码
|
|
2874
|
+
from qtmodel import *
|
|
2875
|
+
odb.get_vibration_node_displacement(node_id=1,mode=1)
|
|
2876
|
+
```
|
|
2877
|
+
Returns: json字符串,包含信息为list[dict] or dict
|
|
2865
2878
|
## 绘制模型结果
|
|
2866
2879
|
### plot_reaction_result
|
|
2867
2880
|
保存结果图片到指定文件甲
|
|
@@ -343,6 +343,28 @@ class Odb:
|
|
|
343
343
|
except Exception as ex:
|
|
344
344
|
raise Exception(ex)
|
|
345
345
|
|
|
346
|
+
@staticmethod
|
|
347
|
+
def get_vibration_node_displacement(node_id: (Union[int, List[int]]) = None, mode: int = 1):
|
|
348
|
+
"""
|
|
349
|
+
获取指定节点指定模态的振型向量
|
|
350
|
+
Args:
|
|
351
|
+
node_id: 节点号
|
|
352
|
+
mode: 模态号
|
|
353
|
+
Example:
|
|
354
|
+
odb.get_vibration_node_displacement(node_id=1,mode=1)
|
|
355
|
+
Returns: json字符串,包含信息为list[dict] or dict
|
|
356
|
+
"""
|
|
357
|
+
try:
|
|
358
|
+
bf_list = qt_model.GetVibrationNodeDisplacement(nodeIds=node_id, mode=mode)
|
|
359
|
+
list_res = []
|
|
360
|
+
for item in bf_list:
|
|
361
|
+
displacements = [item.Displacement.Dx, item.Displacement.Dy, item.Displacement.Dz,
|
|
362
|
+
item.Displacement.Rx, item.Displacement.Ry, item.Displacement.Rz]
|
|
363
|
+
list_res.append(str(NodeDisplacement(item.NodeId, displacements)))
|
|
364
|
+
return json.dumps(list_res) if len(list_res) > 1 else list_res[0]
|
|
365
|
+
except Exception as ex:
|
|
366
|
+
raise Exception(ex)
|
|
367
|
+
|
|
346
368
|
# endregion
|
|
347
369
|
|
|
348
370
|
# region 绘制模型结果
|
|
@@ -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-01-
|
|
3
|
+
Version: 0.6.3
|
|
4
|
+
Summary: python modeling for qt 2025-01-17
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> 最新版本 V0.6.3 - 2025-01-17
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 修改部分接口
|
|
18
|
+
# 建模操作
|
|
18
19
|
## 项目管理
|
|
19
20
|
### undo_model
|
|
20
21
|
撤销模型上次操作
|
|
@@ -2700,6 +2701,7 @@ from qtmodel import *
|
|
|
2700
2701
|
mdb.remove_load_combine(name="荷载组合1")
|
|
2701
2702
|
```
|
|
2702
2703
|
Returns: 无
|
|
2704
|
+
# 视图与结果提取
|
|
2703
2705
|
## 视图控制
|
|
2704
2706
|
### display_node_id
|
|
2705
2707
|
设置节点号显示
|
|
@@ -2876,6 +2878,17 @@ odb.get_node_displacement(node_id=[1,2,3],stage_id=1)
|
|
|
2876
2878
|
odb.get_node_displacement(node_id=1,stage_id=-1,case_name="工况名")
|
|
2877
2879
|
```
|
|
2878
2880
|
Returns: json字符串,包含信息为list[dict] or dict
|
|
2881
|
+
### get_vibration_node_displacement
|
|
2882
|
+
获取指定节点指定模态的振型向量
|
|
2883
|
+
> 参数:
|
|
2884
|
+
> node_id: 节点号
|
|
2885
|
+
> mode: 模态号
|
|
2886
|
+
```Python
|
|
2887
|
+
# 示例代码
|
|
2888
|
+
from qtmodel import *
|
|
2889
|
+
odb.get_vibration_node_displacement(node_id=1,mode=1)
|
|
2890
|
+
```
|
|
2891
|
+
Returns: json字符串,包含信息为list[dict] or dict
|
|
2879
2892
|
## 绘制模型结果
|
|
2880
2893
|
### plot_reaction_result
|
|
2881
2894
|
保存结果图片到指定文件甲
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|