qtmodel 0.5.39__tar.gz → 0.5.41__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.39 → qtmodel-0.5.41}/PKG-INFO +31 -5
- {qtmodel-0.5.39 → qtmodel-0.5.41}/README.md +29 -3
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel/qt_mdb.py +39 -1
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel/qt_odb.py +4 -4
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel.egg-info/PKG-INFO +31 -5
- {qtmodel-0.5.39 → qtmodel-0.5.41}/setup.py +2 -2
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.39 → qtmodel-0.5.41}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.39 → qtmodel-0.5.41}/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.41
|
|
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.41 - 2024.11.26
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 添加自定义温度接口
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -1659,7 +1659,33 @@ Returns: 无
|
|
|
1659
1659
|
```Python
|
|
1660
1660
|
# 示例代码
|
|
1661
1661
|
from qtmodel import *
|
|
1662
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1662
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1663
|
+
```
|
|
1664
|
+
Returns: 无
|
|
1665
|
+
### add_custom_temperature
|
|
1666
|
+
删除梁单元顶板温度
|
|
1667
|
+
> 参数:
|
|
1668
|
+
> case_name:荷载工况名
|
|
1669
|
+
> element_id:单元编号,支持数或列表
|
|
1670
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1671
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1672
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1673
|
+
```Python
|
|
1674
|
+
# 示例代码
|
|
1675
|
+
from qtmodel import *
|
|
1676
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1677
|
+
```
|
|
1678
|
+
Returns: 无
|
|
1679
|
+
### remove_custom_temperature
|
|
1680
|
+
删除梁单元指数温度
|
|
1681
|
+
> 参数:
|
|
1682
|
+
> case_name:荷载工况名
|
|
1683
|
+
> element_id:单元编号,支持数或列表
|
|
1684
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1685
|
+
```Python
|
|
1686
|
+
# 示例代码
|
|
1687
|
+
from qtmodel import *
|
|
1688
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1663
1689
|
```
|
|
1664
1690
|
Returns: 无
|
|
1665
1691
|
## 沉降操作
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.41 - 2024.11.26
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
|
-
-
|
|
3
|
+
- 添加自定义温度接口
|
|
4
4
|
## 项目管理
|
|
5
5
|
### update_bim
|
|
6
6
|
刷新Bim模型信息
|
|
@@ -1645,7 +1645,33 @@ Returns: 无
|
|
|
1645
1645
|
```Python
|
|
1646
1646
|
# 示例代码
|
|
1647
1647
|
from qtmodel import *
|
|
1648
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1648
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1649
|
+
```
|
|
1650
|
+
Returns: 无
|
|
1651
|
+
### add_custom_temperature
|
|
1652
|
+
删除梁单元顶板温度
|
|
1653
|
+
> 参数:
|
|
1654
|
+
> case_name:荷载工况名
|
|
1655
|
+
> element_id:单元编号,支持数或列表
|
|
1656
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1657
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1658
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1659
|
+
```Python
|
|
1660
|
+
# 示例代码
|
|
1661
|
+
from qtmodel import *
|
|
1662
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1663
|
+
```
|
|
1664
|
+
Returns: 无
|
|
1665
|
+
### remove_custom_temperature
|
|
1666
|
+
删除梁单元指数温度
|
|
1667
|
+
> 参数:
|
|
1668
|
+
> case_name:荷载工况名
|
|
1669
|
+
> element_id:单元编号,支持数或列表
|
|
1670
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1671
|
+
```Python
|
|
1672
|
+
# 示例代码
|
|
1673
|
+
from qtmodel import *
|
|
1674
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1649
1675
|
```
|
|
1650
1676
|
Returns: 无
|
|
1651
1677
|
## 沉降操作
|
|
@@ -2661,7 +2661,7 @@ class Mdb:
|
|
|
2661
2661
|
element_id:单元编号,支持数或列表
|
|
2662
2662
|
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2663
2663
|
Example:
|
|
2664
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
2664
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
2665
2665
|
Returns: 无
|
|
2666
2666
|
"""
|
|
2667
2667
|
try:
|
|
@@ -2669,6 +2669,44 @@ class Mdb:
|
|
|
2669
2669
|
except Exception as ex:
|
|
2670
2670
|
raise Exception(ex)
|
|
2671
2671
|
|
|
2672
|
+
@staticmethod
|
|
2673
|
+
def add_custom_temperature(element_id: (Union[int, List[int]]) = 1, case_name: str = "", group_name: str = "默认荷载组",
|
|
2674
|
+
orientation: int = 1, temperature_data: List[tuple[int, float, float]] = None):
|
|
2675
|
+
"""
|
|
2676
|
+
添加梁自定义温度
|
|
2677
|
+
Args:
|
|
2678
|
+
case_name:荷载工况名
|
|
2679
|
+
element_id:单元编号,支持数或列表
|
|
2680
|
+
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2681
|
+
orientation: 1-局部坐标z 2-局部坐标y
|
|
2682
|
+
temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
2683
|
+
Example:
|
|
2684
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
2685
|
+
Returns: 无
|
|
2686
|
+
"""
|
|
2687
|
+
try:
|
|
2688
|
+
qt_model.AddCustomTemperature(caseName=case_name, elementId=element_id, groupName=group_name, orientation=orientation,
|
|
2689
|
+
temperatureData=temperature_data)
|
|
2690
|
+
except Exception as ex:
|
|
2691
|
+
raise Exception(ex)
|
|
2692
|
+
|
|
2693
|
+
@staticmethod
|
|
2694
|
+
def remove_custom_temperature(case_name: str, element_id: (Union[int, List[int]]) = 1, group_name: str = "默认荷载组"):
|
|
2695
|
+
"""
|
|
2696
|
+
删除梁单元自定义温度
|
|
2697
|
+
Args:
|
|
2698
|
+
case_name:荷载工况名
|
|
2699
|
+
element_id:单元编号,支持数或列表
|
|
2700
|
+
group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
2701
|
+
Example:
|
|
2702
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2703
|
+
Returns: 无
|
|
2704
|
+
"""
|
|
2705
|
+
try:
|
|
2706
|
+
qt_model.RemoveCustomTemperature(caseName=case_name, elementId=element_id, groupName=group_name)
|
|
2707
|
+
except Exception as ex:
|
|
2708
|
+
raise Exception(ex)
|
|
2709
|
+
|
|
2672
2710
|
# endregion
|
|
2673
2711
|
|
|
2674
2712
|
# region 沉降操作
|
|
@@ -304,7 +304,7 @@ class Odb:
|
|
|
304
304
|
Returns: 无
|
|
305
305
|
"""
|
|
306
306
|
try:
|
|
307
|
-
qt_model.PlotReactionResult(
|
|
307
|
+
qt_model.PlotReactionResult(filePath=file_path, stageId=stage_id, loadCaseName=load_case_name, showIncrementResult=show_increment,
|
|
308
308
|
envelopeType=envelope_type, component=component,
|
|
309
309
|
showNumber=show_number, textRotationAngle=text_rotation, maxMinValueKind=max_min_kind,
|
|
310
310
|
showLegend=show_legend, digitalCount=digital_count,
|
|
@@ -342,7 +342,7 @@ class Odb:
|
|
|
342
342
|
Returns: 无
|
|
343
343
|
"""
|
|
344
344
|
try:
|
|
345
|
-
qt_model.PlotDisplacementResult(
|
|
345
|
+
qt_model.PlotDisplacementResult(filePath=file_path, stageId=stage_id, loadCaseName=load_case_name, showIncrementResult=show_increment,
|
|
346
346
|
envelopeType=envelope_type, component=component,
|
|
347
347
|
showAsDeformedShape=show_deformed, deformedScale=deformed_scale, deformedActual=deformed_actual,
|
|
348
348
|
showNumber=show_number, textRotationAngle=text_rotation, digitalCount=digital_count,
|
|
@@ -1367,9 +1367,9 @@ class Odb:
|
|
|
1367
1367
|
item_list = qt_model.GetBeamConstraintData(group)
|
|
1368
1368
|
for data in item_list:
|
|
1369
1369
|
info_i = (
|
|
1370
|
-
|
|
1370
|
+
not data.IsIFreedX, not data.IsIFreedY, not data.IsIFreedZ, not data.IsIFreedRx, not data.IsIFreedRy, not data.IsIFreedRZ)
|
|
1371
1371
|
info_j = (
|
|
1372
|
-
|
|
1372
|
+
not data.IsJFreedX, not data.IsJFreedY, not data.IsJFreedZ, not data.IsJFreedRx, not data.IsJFreedRy, not data.IsJFreedRZ)
|
|
1373
1373
|
res_list.append(str(BeamConstraint(constraint_id=data.Id, beam_id=data.Beam.Id, info_i=info_i, info_j=info_j, group_name=group)))
|
|
1374
1374
|
return json.dumps(res_list)
|
|
1375
1375
|
except Exception as ex:
|
|
@@ -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.41
|
|
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.41 - 2024.11.26
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 添加自定义温度接口
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -1659,7 +1659,33 @@ Returns: 无
|
|
|
1659
1659
|
```Python
|
|
1660
1660
|
# 示例代码
|
|
1661
1661
|
from qtmodel import *
|
|
1662
|
-
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1)
|
|
1662
|
+
mdb.remove_top_plate_temperature(case_name="荷载工况1",element_id=1,group_name="默认荷载组")
|
|
1663
|
+
```
|
|
1664
|
+
Returns: 无
|
|
1665
|
+
### add_custom_temperature
|
|
1666
|
+
删除梁单元顶板温度
|
|
1667
|
+
> 参数:
|
|
1668
|
+
> case_name:荷载工况名
|
|
1669
|
+
> element_id:单元编号,支持数或列表
|
|
1670
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1671
|
+
> orientation: 1-局部坐标z 2-局部坐标y
|
|
1672
|
+
> temperature_data:自定义数据[(参考位置1-顶 2-底,高度,温度)...]
|
|
1673
|
+
```Python
|
|
1674
|
+
# 示例代码
|
|
1675
|
+
from qtmodel import *
|
|
1676
|
+
mdb.add_custom_temperature(case_name="荷载工况1",element_id=1,orientation=1,temperature_data=[(1,1,20),(1,2,10)])
|
|
1677
|
+
```
|
|
1678
|
+
Returns: 无
|
|
1679
|
+
### remove_custom_temperature
|
|
1680
|
+
删除梁单元指数温度
|
|
1681
|
+
> 参数:
|
|
1682
|
+
> case_name:荷载工况名
|
|
1683
|
+
> element_id:单元编号,支持数或列表
|
|
1684
|
+
> group_name:指定荷载组,后续升级开放指定荷载组删除功能
|
|
1685
|
+
```Python
|
|
1686
|
+
# 示例代码
|
|
1687
|
+
from qtmodel import *
|
|
1688
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1663
1689
|
```
|
|
1664
1690
|
Returns: 无
|
|
1665
1691
|
## 沉降操作
|
|
@@ -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.41",
|
|
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
|