qtmodel 0.5.31__tar.gz → 0.5.32__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.31 → qtmodel-0.5.32}/PKG-INFO +6 -5
- {qtmodel-0.5.31 → qtmodel-0.5.32}/README.md +4 -3
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel/qt_mdb.py +76 -73
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel.egg-info/PKG-INFO +6 -5
- {qtmodel-0.5.31 → qtmodel-0.5.32}/setup.py +2 -2
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.31 → qtmodel-0.5.32}/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/10/
|
|
3
|
+
Version: 0.5.32
|
|
4
|
+
Summary: python modeling for qt 24/10/31
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,7 +12,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
|
|
16
|
+
# 最新版本 V0.5.32 - 2024.10.30
|
|
16
17
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
18
|
- 修改帮助文档
|
|
18
19
|
## 项目管理
|
|
@@ -476,12 +477,12 @@ Returns: 无
|
|
|
476
477
|
将收缩徐变参数连接到材料
|
|
477
478
|
> 参数:
|
|
478
479
|
> index: 材料编号
|
|
479
|
-
>
|
|
480
|
+
> creep_name: 收缩徐变名称
|
|
480
481
|
> f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
481
482
|
```Python
|
|
482
483
|
# 示例代码
|
|
483
484
|
from qtmodel import *
|
|
484
|
-
mdb.update_material_creep(index=1,
|
|
485
|
+
mdb.update_material_creep(index=1,creep_name="C60",f_cuk=5e7)
|
|
485
486
|
```
|
|
486
487
|
Returns: 无
|
|
487
488
|
### remove_material
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
|
|
2
|
+
# 最新版本 V0.5.32 - 2024.10.30
|
|
2
3
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
4
|
- 修改帮助文档
|
|
4
5
|
## 项目管理
|
|
@@ -462,12 +463,12 @@ Returns: 无
|
|
|
462
463
|
将收缩徐变参数连接到材料
|
|
463
464
|
> 参数:
|
|
464
465
|
> index: 材料编号
|
|
465
|
-
>
|
|
466
|
+
> creep_name: 收缩徐变名称
|
|
466
467
|
> f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
467
468
|
```Python
|
|
468
469
|
# 示例代码
|
|
469
470
|
from qtmodel import *
|
|
470
|
-
mdb.update_material_creep(index=1,
|
|
471
|
+
mdb.update_material_creep(index=1,creep_name="C60",f_cuk=5e7)
|
|
471
472
|
```
|
|
472
473
|
Returns: 无
|
|
473
474
|
### remove_material
|
|
@@ -775,19 +775,19 @@ class Mdb:
|
|
|
775
775
|
raise Exception(ex)
|
|
776
776
|
|
|
777
777
|
@staticmethod
|
|
778
|
-
def update_material_creep(index: int = 1,
|
|
778
|
+
def update_material_creep(index: int = 1, creep_name: str = "", f_cuk: float = 0):
|
|
779
779
|
"""
|
|
780
780
|
将收缩徐变参数连接到材料
|
|
781
781
|
Args:
|
|
782
782
|
index: 材料编号
|
|
783
|
-
|
|
783
|
+
creep_name: 收缩徐变名称
|
|
784
784
|
f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
785
785
|
Example:
|
|
786
|
-
mdb.update_material_creep(index=1,
|
|
786
|
+
mdb.update_material_creep(index=1,creep_name="C60",f_cuk=5e7)
|
|
787
787
|
Returns: 无
|
|
788
788
|
"""
|
|
789
789
|
try:
|
|
790
|
-
qt_model.UpdateMaterialCreep(materialId=index,
|
|
790
|
+
qt_model.UpdateMaterialCreep(materialId=index, creepName=creep_name, fcuk=f_cuk)
|
|
791
791
|
qt_model.UpdateModel()
|
|
792
792
|
except Exception as ex:
|
|
793
793
|
raise Exception(ex)
|
|
@@ -1654,6 +1654,78 @@ class Mdb:
|
|
|
1654
1654
|
|
|
1655
1655
|
# endregion
|
|
1656
1656
|
|
|
1657
|
+
# region 动力荷载操作
|
|
1658
|
+
@staticmethod
|
|
1659
|
+
def add_load_to_mass(name: str, factor: float = 1):
|
|
1660
|
+
"""
|
|
1661
|
+
添加荷载转为质量
|
|
1662
|
+
Args:
|
|
1663
|
+
name: 荷载工况名称
|
|
1664
|
+
factor: 系数
|
|
1665
|
+
Example:
|
|
1666
|
+
mdb.add_load_to_mass(name="荷载工况",factor=1)
|
|
1667
|
+
Returns: 无
|
|
1668
|
+
"""
|
|
1669
|
+
try:
|
|
1670
|
+
qt_model.AddLoadToMass(name=name, factor=factor)
|
|
1671
|
+
qt_model.UpdateModel()
|
|
1672
|
+
except Exception as ex:
|
|
1673
|
+
raise Exception(ex)
|
|
1674
|
+
|
|
1675
|
+
@staticmethod
|
|
1676
|
+
def add_nodal_mass(node_id: (Union[int, List[int]]) = 1, mass_info: tuple[float, float, float, float] = None):
|
|
1677
|
+
"""
|
|
1678
|
+
添加节点质量
|
|
1679
|
+
Args:
|
|
1680
|
+
node_id:节点编号,支持单个编号和编号列表
|
|
1681
|
+
mass_info:[m,rmX,rmY,rmZ]
|
|
1682
|
+
Example:
|
|
1683
|
+
mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
|
|
1684
|
+
Returns: 无
|
|
1685
|
+
"""
|
|
1686
|
+
try:
|
|
1687
|
+
if mass_info is None:
|
|
1688
|
+
raise Exception("操作错误,节点质量信息列表不能为空")
|
|
1689
|
+
qt_model.AddNodalMass(nodeId=node_id, massInfo=mass_info)
|
|
1690
|
+
qt_model.UpdateModel()
|
|
1691
|
+
except Exception as ex:
|
|
1692
|
+
raise Exception(ex)
|
|
1693
|
+
|
|
1694
|
+
@staticmethod
|
|
1695
|
+
def remove_nodal_mass(node_id: (Union[int, List[int]]) = -1):
|
|
1696
|
+
"""
|
|
1697
|
+
删除节点质量
|
|
1698
|
+
Args:
|
|
1699
|
+
node_id:节点号,默认删除所有节点质量
|
|
1700
|
+
Example:
|
|
1701
|
+
mdb.remove_nodal_mass(node_id=1)
|
|
1702
|
+
Returns: 无
|
|
1703
|
+
"""
|
|
1704
|
+
try:
|
|
1705
|
+
if node_id == -1:
|
|
1706
|
+
qt_model.RemoveAllNodalMass()
|
|
1707
|
+
else:
|
|
1708
|
+
qt_model.RemoveNodalMass(nodeId=node_id)
|
|
1709
|
+
except Exception as ex:
|
|
1710
|
+
raise Exception(ex)
|
|
1711
|
+
|
|
1712
|
+
@staticmethod
|
|
1713
|
+
def remove_load_to_mass(name: str):
|
|
1714
|
+
"""
|
|
1715
|
+
删除荷载转为质量
|
|
1716
|
+
Args:
|
|
1717
|
+
name:荷载工况名
|
|
1718
|
+
Example:
|
|
1719
|
+
mdb.remove_load_to_mass(name="荷载工况")
|
|
1720
|
+
Returns: 无
|
|
1721
|
+
"""
|
|
1722
|
+
try:
|
|
1723
|
+
qt_model.RemoveLoadToMass(name=name)
|
|
1724
|
+
except Exception as ex:
|
|
1725
|
+
raise Exception(ex)
|
|
1726
|
+
|
|
1727
|
+
# endregion
|
|
1728
|
+
|
|
1657
1729
|
# region 钢束操作
|
|
1658
1730
|
@staticmethod
|
|
1659
1731
|
def add_tendon_group(name: str = "", index: int = -1):
|
|
@@ -1930,75 +2002,6 @@ class Mdb:
|
|
|
1930
2002
|
except Exception as ex:
|
|
1931
2003
|
raise Exception(ex)
|
|
1932
2004
|
|
|
1933
|
-
@staticmethod
|
|
1934
|
-
def add_load_to_mass(name: str, factor: float = 1):
|
|
1935
|
-
"""
|
|
1936
|
-
添加荷载转为质量
|
|
1937
|
-
Args:
|
|
1938
|
-
name: 荷载工况名称
|
|
1939
|
-
factor: 系数
|
|
1940
|
-
Example:
|
|
1941
|
-
mdb.add_load_to_mass(name="荷载工况",factor=1)
|
|
1942
|
-
Returns: 无
|
|
1943
|
-
"""
|
|
1944
|
-
try:
|
|
1945
|
-
qt_model.AddLoadToMass(name=name, factor=factor)
|
|
1946
|
-
qt_model.UpdateModel()
|
|
1947
|
-
except Exception as ex:
|
|
1948
|
-
raise Exception(ex)
|
|
1949
|
-
|
|
1950
|
-
@staticmethod
|
|
1951
|
-
def add_nodal_mass(node_id: (Union[int, List[int]]) = 1, mass_info: tuple[float, float, float, float] = None):
|
|
1952
|
-
"""
|
|
1953
|
-
添加节点质量
|
|
1954
|
-
Args:
|
|
1955
|
-
node_id:节点编号,支持单个编号和编号列表
|
|
1956
|
-
mass_info:[m,rmX,rmY,rmZ]
|
|
1957
|
-
Example:
|
|
1958
|
-
mdb.add_nodal_mass(node_id=1,mass_info=(100,0,0,0))
|
|
1959
|
-
Returns: 无
|
|
1960
|
-
"""
|
|
1961
|
-
try:
|
|
1962
|
-
if mass_info is None:
|
|
1963
|
-
raise Exception("操作错误,节点质量信息列表不能为空")
|
|
1964
|
-
qt_model.AddNodalMass(nodeId=node_id, massInfo=mass_info)
|
|
1965
|
-
qt_model.UpdateModel()
|
|
1966
|
-
except Exception as ex:
|
|
1967
|
-
raise Exception(ex)
|
|
1968
|
-
|
|
1969
|
-
@staticmethod
|
|
1970
|
-
def remove_nodal_mass(node_id: (Union[int, List[int]]) = -1):
|
|
1971
|
-
"""
|
|
1972
|
-
删除节点质量
|
|
1973
|
-
Args:
|
|
1974
|
-
node_id:节点号,默认删除所有节点质量
|
|
1975
|
-
Example:
|
|
1976
|
-
mdb.remove_nodal_mass(node_id=1)
|
|
1977
|
-
Returns: 无
|
|
1978
|
-
"""
|
|
1979
|
-
try:
|
|
1980
|
-
if node_id == -1:
|
|
1981
|
-
qt_model.RemoveAllNodalMass()
|
|
1982
|
-
else:
|
|
1983
|
-
qt_model.RemoveNodalMass(nodeId=node_id)
|
|
1984
|
-
except Exception as ex:
|
|
1985
|
-
raise Exception(ex)
|
|
1986
|
-
|
|
1987
|
-
@staticmethod
|
|
1988
|
-
def remove_load_to_mass(name: str):
|
|
1989
|
-
"""
|
|
1990
|
-
删除荷载转为质量
|
|
1991
|
-
Args:
|
|
1992
|
-
name:荷载工况名
|
|
1993
|
-
Example:
|
|
1994
|
-
mdb.remove_load_to_mass(name="荷载工况")
|
|
1995
|
-
Returns: 无
|
|
1996
|
-
"""
|
|
1997
|
-
try:
|
|
1998
|
-
qt_model.RemoveLoadToMass(name=name)
|
|
1999
|
-
except Exception as ex:
|
|
2000
|
-
raise Exception(ex)
|
|
2001
|
-
|
|
2002
2005
|
@staticmethod
|
|
2003
2006
|
def add_pre_stress(case_name: str = "", tendon_name: (Union[str, List[str]]) = "", tension_type: int = 2,
|
|
2004
2007
|
force: float = 1395000, group_name: str = "默认荷载组"):
|
|
@@ -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/10/
|
|
3
|
+
Version: 0.5.32
|
|
4
|
+
Summary: python modeling for qt 24/10/31
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -12,7 +12,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
C:\Users\Robert\.conda\envs\py39\python.exe C:/Users/Robert/Desktop/MyWork/Python建模/test.py
|
|
16
|
+
# 最新版本 V0.5.32 - 2024.10.30
|
|
16
17
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
18
|
- 修改帮助文档
|
|
18
19
|
## 项目管理
|
|
@@ -476,12 +477,12 @@ Returns: 无
|
|
|
476
477
|
将收缩徐变参数连接到材料
|
|
477
478
|
> 参数:
|
|
478
479
|
> index: 材料编号
|
|
479
|
-
>
|
|
480
|
+
> creep_name: 收缩徐变名称
|
|
480
481
|
> f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
481
482
|
```Python
|
|
482
483
|
# 示例代码
|
|
483
484
|
from qtmodel import *
|
|
484
|
-
mdb.update_material_creep(index=1,
|
|
485
|
+
mdb.update_material_creep(index=1,creep_name="C60",f_cuk=5e7)
|
|
485
486
|
```
|
|
486
487
|
Returns: 无
|
|
487
488
|
### remove_material
|
|
@@ -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.32",
|
|
11
11
|
author="dqy-zhj",
|
|
12
12
|
author_email="1105417715@qq.com",
|
|
13
|
-
description="python modeling for qt 24/10/
|
|
13
|
+
description="python modeling for qt 24/10/31 ",
|
|
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
|