qtmodel 0.5.49__tar.gz → 0.5.50__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.5.49 → qtmodel-0.5.50}/PKG-INFO +10 -9
- {qtmodel-0.5.49 → qtmodel-0.5.50}/README.md +8 -7
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel/qt_mdb.py +19 -20
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel.egg-info/PKG-INFO +10 -9
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/setup.cfg +0 -0
- {qtmodel-0.5.49 → qtmodel-0.5.50}/setup.py +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 2024-12-
|
|
3
|
+
Version: 0.5.50
|
|
4
|
+
Summary: python modeling for qt 2024-12-19
|
|
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.5.
|
|
15
|
+
# 最新版本 V0.5.50 - 2024-12-19
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 增加两个获取单元接口
|
|
18
18
|
## 项目管理
|
|
@@ -744,16 +744,16 @@ mdb.remove_all_boundary()
|
|
|
744
744
|
```
|
|
745
745
|
Returns: 无
|
|
746
746
|
### remove_boundary
|
|
747
|
-
|
|
747
|
+
根据节点号删除一般支撑、弹性支承/根据弹性连接号删除弹性连接/根据单元号删除梁端约束/根据从节点号和约束方程名删除约束方程/根据从节点号删除主从约束
|
|
748
748
|
> 参数:
|
|
749
|
-
> remove_id:节点号 or 单元号
|
|
750
|
-
> bd_type:边界类型
|
|
751
|
-
> _1-一般支承 2-弹性支承 3-主从约束 4-弹性连接 5-约束方程 6-梁端约束_
|
|
749
|
+
> remove_id:节点号 or 单元号 or 从节点号
|
|
750
|
+
> bd_type:边界类型 ["一般支承", "弹性支承","一般弹性支承", "主从约束", "弹性连接", "约束方程", "梁端约束"]
|
|
752
751
|
> group:边界所处边界组名
|
|
752
|
+
> constrain_name:约束方程名,仅删除约束方程时需要
|
|
753
753
|
```Python
|
|
754
754
|
# 示例代码
|
|
755
755
|
from qtmodel import *
|
|
756
|
-
mdb.remove_boundary(remove_id
|
|
756
|
+
mdb.remove_boundary(remove_id=1, bd_type="弹性支承",group="边界组1")
|
|
757
757
|
```
|
|
758
758
|
Returns: 无
|
|
759
759
|
### add_general_elastic_support_property
|
|
@@ -807,8 +807,9 @@ mdb.add_elastic_support(node_id=1,support_type=3,boundary_info=[1,1e6])
|
|
|
807
807
|
```
|
|
808
808
|
Returns: 无
|
|
809
809
|
### add_elastic_link
|
|
810
|
-
|
|
810
|
+
添加弹性连接,建议指定index(弹性连接编号)
|
|
811
811
|
> 参数:
|
|
812
|
+
> index:弹性连接编号,默认自动识别
|
|
812
813
|
> link_type:节点类型 1-一般弹性连接 2-刚性连接 3-受拉弹性连接 4-受压弹性连接
|
|
813
814
|
> start_id:起始节点号
|
|
814
815
|
> end_id:终节点号
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.50 - 2024-12-19
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 增加两个获取单元接口
|
|
4
4
|
## 项目管理
|
|
@@ -730,16 +730,16 @@ mdb.remove_all_boundary()
|
|
|
730
730
|
```
|
|
731
731
|
Returns: 无
|
|
732
732
|
### remove_boundary
|
|
733
|
-
|
|
733
|
+
根据节点号删除一般支撑、弹性支承/根据弹性连接号删除弹性连接/根据单元号删除梁端约束/根据从节点号和约束方程名删除约束方程/根据从节点号删除主从约束
|
|
734
734
|
> 参数:
|
|
735
|
-
> remove_id:节点号 or 单元号
|
|
736
|
-
> bd_type:边界类型
|
|
737
|
-
> _1-一般支承 2-弹性支承 3-主从约束 4-弹性连接 5-约束方程 6-梁端约束_
|
|
735
|
+
> remove_id:节点号 or 单元号 or 从节点号
|
|
736
|
+
> bd_type:边界类型 ["一般支承", "弹性支承","一般弹性支承", "主从约束", "弹性连接", "约束方程", "梁端约束"]
|
|
738
737
|
> group:边界所处边界组名
|
|
738
|
+
> constrain_name:约束方程名,仅删除约束方程时需要
|
|
739
739
|
```Python
|
|
740
740
|
# 示例代码
|
|
741
741
|
from qtmodel import *
|
|
742
|
-
mdb.remove_boundary(remove_id
|
|
742
|
+
mdb.remove_boundary(remove_id=1, bd_type="弹性支承",group="边界组1")
|
|
743
743
|
```
|
|
744
744
|
Returns: 无
|
|
745
745
|
### add_general_elastic_support_property
|
|
@@ -793,8 +793,9 @@ mdb.add_elastic_support(node_id=1,support_type=3,boundary_info=[1,1e6])
|
|
|
793
793
|
```
|
|
794
794
|
Returns: 无
|
|
795
795
|
### add_elastic_link
|
|
796
|
-
|
|
796
|
+
添加弹性连接,建议指定index(弹性连接编号)
|
|
797
797
|
> 参数:
|
|
798
|
+
> index:弹性连接编号,默认自动识别
|
|
798
799
|
> link_type:节点类型 1-一般弹性连接 2-刚性连接 3-受拉弹性连接 4-受压弹性连接
|
|
799
800
|
> start_id:起始节点号
|
|
800
801
|
> end_id:终节点号
|
|
@@ -1221,22 +1221,20 @@ class Mdb:
|
|
|
1221
1221
|
raise Exception(ex)
|
|
1222
1222
|
|
|
1223
1223
|
@staticmethod
|
|
1224
|
-
def remove_boundary(remove_id: int, bd_type:
|
|
1224
|
+
def remove_boundary(remove_id: int, bd_type: str, group: str = "默认边界组", constrain_name=""):
|
|
1225
1225
|
"""
|
|
1226
|
-
|
|
1226
|
+
根据节点号删除一般支撑、弹性支承/根据弹性连接号删除弹性连接/根据单元号删除梁端约束/根据从节点号和约束方程名删除约束方程/根据从节点号删除主从约束
|
|
1227
1227
|
Args:
|
|
1228
|
-
remove_id:节点号 or 单元号
|
|
1229
|
-
bd_type:边界类型
|
|
1230
|
-
_1-一般支承 2-弹性支承 3-主从约束 4-弹性连接 5-约束方程 6-梁端约束_
|
|
1228
|
+
remove_id:节点号 or 单元号 or 从节点号
|
|
1229
|
+
bd_type:边界类型 ["一般支承", "弹性支承","一般弹性支承", "主从约束", "弹性连接", "约束方程", "梁端约束"]
|
|
1231
1230
|
group:边界所处边界组名
|
|
1231
|
+
constrain_name:约束方程名,仅删除约束方程时需要
|
|
1232
1232
|
Example:
|
|
1233
|
-
mdb.remove_boundary(remove_id
|
|
1233
|
+
mdb.remove_boundary(remove_id=1, bd_type="弹性支承",group="边界组1")
|
|
1234
1234
|
Returns: 无
|
|
1235
1235
|
"""
|
|
1236
1236
|
try:
|
|
1237
|
-
|
|
1238
|
-
bd_name = type_list[bd_type - 1]
|
|
1239
|
-
qt_model.RemoveBoundary(controlId=remove_id, type=bd_name, group=group)
|
|
1237
|
+
qt_model.RemoveBoundary(controlId=remove_id, type=bd_type, group=group,constrainName=constrain_name)
|
|
1240
1238
|
except Exception as ex:
|
|
1241
1239
|
raise Exception(ex)
|
|
1242
1240
|
|
|
@@ -1317,20 +1315,21 @@ class Mdb:
|
|
|
1317
1315
|
raise Exception(ex)
|
|
1318
1316
|
|
|
1319
1317
|
@staticmethod
|
|
1320
|
-
def add_elastic_link(link_type: int = 1, start_id: int = 1, end_id: int = 2, beta_angle: float = 0,
|
|
1318
|
+
def add_elastic_link(index = -1,link_type: int = 1, start_id: int = 1, end_id: int = 2, beta_angle: float = 0,
|
|
1321
1319
|
boundary_info: list[float] = None,
|
|
1322
1320
|
group_name: str = "默认边界组", dis_ratio: float = 0.5, kx: float = 0):
|
|
1323
1321
|
"""
|
|
1324
|
-
|
|
1322
|
+
添加弹性连接,建议指定index(弹性连接编号)
|
|
1325
1323
|
Args:
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1324
|
+
index:弹性连接编号,默认自动识别
|
|
1325
|
+
link_type:节点类型 1-一般弹性连接 2-刚性连接 3-受拉弹性连接 4-受压弹性连接
|
|
1326
|
+
start_id:起始节点号
|
|
1327
|
+
end_id:终节点号
|
|
1328
|
+
beta_angle:贝塔角
|
|
1329
|
+
boundary_info:边界信息
|
|
1330
|
+
group_name:边界组名
|
|
1331
|
+
dis_ratio:距i端距离比 (仅一般弹性连接需要)
|
|
1332
|
+
kx:受拉或受压刚度
|
|
1334
1333
|
Example:
|
|
1335
1334
|
mdb.add_elastic_link(link_type=1,start_id=1,end_id=2,boundary_info=[1e6,1e6,1e6,0,0,0])
|
|
1336
1335
|
mdb.add_elastic_link(link_type=2,start_id=1,end_id=2)
|
|
@@ -1338,7 +1337,7 @@ class Mdb:
|
|
|
1338
1337
|
Returns: 无
|
|
1339
1338
|
"""
|
|
1340
1339
|
try:
|
|
1341
|
-
qt_model.AddElasticLink(linkType=link_type, startId=start_id, endId=end_id, beta=beta_angle,
|
|
1340
|
+
qt_model.AddElasticLink(id= index,linkType=link_type, startId=start_id, endId=end_id, beta=beta_angle,
|
|
1342
1341
|
boundaryInfo=boundary_info, groupName=group_name, disRatio=dis_ratio, kDx=kx)
|
|
1343
1342
|
except Exception as ex:
|
|
1344
1343
|
raise Exception(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 2024-12-
|
|
3
|
+
Version: 0.5.50
|
|
4
|
+
Summary: python modeling for qt 2024-12-19
|
|
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.5.
|
|
15
|
+
# 最新版本 V0.5.50 - 2024-12-19
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 增加两个获取单元接口
|
|
18
18
|
## 项目管理
|
|
@@ -744,16 +744,16 @@ mdb.remove_all_boundary()
|
|
|
744
744
|
```
|
|
745
745
|
Returns: 无
|
|
746
746
|
### remove_boundary
|
|
747
|
-
|
|
747
|
+
根据节点号删除一般支撑、弹性支承/根据弹性连接号删除弹性连接/根据单元号删除梁端约束/根据从节点号和约束方程名删除约束方程/根据从节点号删除主从约束
|
|
748
748
|
> 参数:
|
|
749
|
-
> remove_id:节点号 or 单元号
|
|
750
|
-
> bd_type:边界类型
|
|
751
|
-
> _1-一般支承 2-弹性支承 3-主从约束 4-弹性连接 5-约束方程 6-梁端约束_
|
|
749
|
+
> remove_id:节点号 or 单元号 or 从节点号
|
|
750
|
+
> bd_type:边界类型 ["一般支承", "弹性支承","一般弹性支承", "主从约束", "弹性连接", "约束方程", "梁端约束"]
|
|
752
751
|
> group:边界所处边界组名
|
|
752
|
+
> constrain_name:约束方程名,仅删除约束方程时需要
|
|
753
753
|
```Python
|
|
754
754
|
# 示例代码
|
|
755
755
|
from qtmodel import *
|
|
756
|
-
mdb.remove_boundary(remove_id
|
|
756
|
+
mdb.remove_boundary(remove_id=1, bd_type="弹性支承",group="边界组1")
|
|
757
757
|
```
|
|
758
758
|
Returns: 无
|
|
759
759
|
### add_general_elastic_support_property
|
|
@@ -807,8 +807,9 @@ mdb.add_elastic_support(node_id=1,support_type=3,boundary_info=[1,1e6])
|
|
|
807
807
|
```
|
|
808
808
|
Returns: 无
|
|
809
809
|
### add_elastic_link
|
|
810
|
-
|
|
810
|
+
添加弹性连接,建议指定index(弹性连接编号)
|
|
811
811
|
> 参数:
|
|
812
|
+
> index:弹性连接编号,默认自动识别
|
|
812
813
|
> link_type:节点类型 1-一般弹性连接 2-刚性连接 3-受拉弹性连接 4-受压弹性连接
|
|
813
814
|
> start_id:起始节点号
|
|
814
815
|
> end_id:终节点号
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|