qtmodel 0.5.52__tar.gz → 0.5.53__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.52 → qtmodel-0.5.53}/PKG-INFO +56 -5
- {qtmodel-0.5.52 → qtmodel-0.5.53}/README.md +54 -3
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel/qt_mdb.py +85 -10
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel.egg-info/PKG-INFO +56 -5
- {qtmodel-0.5.52 → qtmodel-0.5.53}/setup.py +1 -1
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.52 → qtmodel-0.5.53}/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 2024-12-
|
|
3
|
+
Version: 0.5.53
|
|
4
|
+
Summary: python modeling for qt 2024-12-28
|
|
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.53 - 2024-12-28
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 增加边界更新接口
|
|
18
18
|
## 项目管理
|
|
@@ -399,6 +399,27 @@ mdb.add_structure_to_group(name="现有结构组1",node_ids=[1,2,3,4],element_id
|
|
|
399
399
|
```
|
|
400
400
|
Returns: 无
|
|
401
401
|
## 单元操作
|
|
402
|
+
### update_local_orientation
|
|
403
|
+
反转杆系单元局部方向
|
|
404
|
+
> 参数:
|
|
405
|
+
> ele_id: 杆系单元编号
|
|
406
|
+
```Python
|
|
407
|
+
# 示例代码
|
|
408
|
+
from qtmodel import *
|
|
409
|
+
mdb.update_local_orientation(1)
|
|
410
|
+
```
|
|
411
|
+
Returns: 无
|
|
412
|
+
### update_element_id
|
|
413
|
+
更改单元编号
|
|
414
|
+
> 参数:
|
|
415
|
+
> old_id: 单元编号
|
|
416
|
+
> new_id: 新单元编号
|
|
417
|
+
```Python
|
|
418
|
+
# 示例代码
|
|
419
|
+
from qtmodel import *
|
|
420
|
+
mdb.update_element_id(1,2)
|
|
421
|
+
```
|
|
422
|
+
Returns: 无
|
|
402
423
|
### add_element
|
|
403
424
|
根据单元编号和单元类型添加单元
|
|
404
425
|
> 参数:
|
|
@@ -408,14 +429,34 @@ Returns: 无
|
|
|
408
429
|
> beta_angle:贝塔角
|
|
409
430
|
> mat_id:材料编号
|
|
410
431
|
> sec_id:截面编号
|
|
411
|
-
> initial_type:索单元初始参数类型
|
|
432
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
412
433
|
> initial_value:索单元初始始参数值
|
|
434
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
413
435
|
```Python
|
|
414
436
|
# 示例代码
|
|
415
437
|
from qtmodel import *
|
|
416
438
|
mdb.add_element(index=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
417
439
|
```
|
|
418
440
|
Returns: 无
|
|
441
|
+
### update_element
|
|
442
|
+
根据单元编号和单元类型添加单元
|
|
443
|
+
> 参数:
|
|
444
|
+
> old_id:原单元编号
|
|
445
|
+
> new_id:现单元编号,默认不修改原单元Id
|
|
446
|
+
> ele_type:单元类型 1-梁 2-杆 3-索 4-板
|
|
447
|
+
> node_ids:单元对应的节点列表 [i,j] 或 [i,j,k,l]
|
|
448
|
+
> beta_angle:贝塔角
|
|
449
|
+
> mat_id:材料编号
|
|
450
|
+
> sec_id:截面编号
|
|
451
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
452
|
+
> initial_value:索单元初始始参数值
|
|
453
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
454
|
+
```Python
|
|
455
|
+
# 示例代码
|
|
456
|
+
from qtmodel import *
|
|
457
|
+
mdb.update_element(old_id=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
458
|
+
```
|
|
459
|
+
Returns: 无
|
|
419
460
|
### add_elements
|
|
420
461
|
根据单元编号和单元类型添加单元
|
|
421
462
|
> 参数:
|
|
@@ -433,6 +474,16 @@ mdb.add_elements(ele_data=[
|
|
|
433
474
|
[4,4,1,1,0,1,2,3,4]])
|
|
434
475
|
```
|
|
435
476
|
Returns: 无
|
|
477
|
+
### update_element_local_orientation
|
|
478
|
+
更新指定单元的单元局部坐标系
|
|
479
|
+
> 参数:
|
|
480
|
+
> index: 单元编号
|
|
481
|
+
```Python
|
|
482
|
+
# 示例代码
|
|
483
|
+
from qtmodel import *
|
|
484
|
+
mdb.update_element_local_orientation(index=1)
|
|
485
|
+
```
|
|
486
|
+
Returns: 无
|
|
436
487
|
### update_element_material
|
|
437
488
|
更新指定单元的材料号
|
|
438
489
|
> 参数:
|
|
@@ -493,7 +544,7 @@ Returns: 无
|
|
|
493
544
|
### add_material
|
|
494
545
|
添加材料
|
|
495
546
|
> 参数:
|
|
496
|
-
> index
|
|
547
|
+
> index:材料编号,默认为最大Id+1
|
|
497
548
|
> name:材料名称
|
|
498
549
|
> mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
499
550
|
> standard:规范序号,参考UI 默认从1开始
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.53 - 2024-12-28
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 增加边界更新接口
|
|
4
4
|
## 项目管理
|
|
@@ -385,6 +385,27 @@ mdb.add_structure_to_group(name="现有结构组1",node_ids=[1,2,3,4],element_id
|
|
|
385
385
|
```
|
|
386
386
|
Returns: 无
|
|
387
387
|
## 单元操作
|
|
388
|
+
### update_local_orientation
|
|
389
|
+
反转杆系单元局部方向
|
|
390
|
+
> 参数:
|
|
391
|
+
> ele_id: 杆系单元编号
|
|
392
|
+
```Python
|
|
393
|
+
# 示例代码
|
|
394
|
+
from qtmodel import *
|
|
395
|
+
mdb.update_local_orientation(1)
|
|
396
|
+
```
|
|
397
|
+
Returns: 无
|
|
398
|
+
### update_element_id
|
|
399
|
+
更改单元编号
|
|
400
|
+
> 参数:
|
|
401
|
+
> old_id: 单元编号
|
|
402
|
+
> new_id: 新单元编号
|
|
403
|
+
```Python
|
|
404
|
+
# 示例代码
|
|
405
|
+
from qtmodel import *
|
|
406
|
+
mdb.update_element_id(1,2)
|
|
407
|
+
```
|
|
408
|
+
Returns: 无
|
|
388
409
|
### add_element
|
|
389
410
|
根据单元编号和单元类型添加单元
|
|
390
411
|
> 参数:
|
|
@@ -394,14 +415,34 @@ Returns: 无
|
|
|
394
415
|
> beta_angle:贝塔角
|
|
395
416
|
> mat_id:材料编号
|
|
396
417
|
> sec_id:截面编号
|
|
397
|
-
> initial_type:索单元初始参数类型
|
|
418
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
398
419
|
> initial_value:索单元初始始参数值
|
|
420
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
399
421
|
```Python
|
|
400
422
|
# 示例代码
|
|
401
423
|
from qtmodel import *
|
|
402
424
|
mdb.add_element(index=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
403
425
|
```
|
|
404
426
|
Returns: 无
|
|
427
|
+
### update_element
|
|
428
|
+
根据单元编号和单元类型添加单元
|
|
429
|
+
> 参数:
|
|
430
|
+
> old_id:原单元编号
|
|
431
|
+
> new_id:现单元编号,默认不修改原单元Id
|
|
432
|
+
> ele_type:单元类型 1-梁 2-杆 3-索 4-板
|
|
433
|
+
> node_ids:单元对应的节点列表 [i,j] 或 [i,j,k,l]
|
|
434
|
+
> beta_angle:贝塔角
|
|
435
|
+
> mat_id:材料编号
|
|
436
|
+
> sec_id:截面编号
|
|
437
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
438
|
+
> initial_value:索单元初始始参数值
|
|
439
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
440
|
+
```Python
|
|
441
|
+
# 示例代码
|
|
442
|
+
from qtmodel import *
|
|
443
|
+
mdb.update_element(old_id=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
444
|
+
```
|
|
445
|
+
Returns: 无
|
|
405
446
|
### add_elements
|
|
406
447
|
根据单元编号和单元类型添加单元
|
|
407
448
|
> 参数:
|
|
@@ -419,6 +460,16 @@ mdb.add_elements(ele_data=[
|
|
|
419
460
|
[4,4,1,1,0,1,2,3,4]])
|
|
420
461
|
```
|
|
421
462
|
Returns: 无
|
|
463
|
+
### update_element_local_orientation
|
|
464
|
+
更新指定单元的单元局部坐标系
|
|
465
|
+
> 参数:
|
|
466
|
+
> index: 单元编号
|
|
467
|
+
```Python
|
|
468
|
+
# 示例代码
|
|
469
|
+
from qtmodel import *
|
|
470
|
+
mdb.update_element_local_orientation(index=1)
|
|
471
|
+
```
|
|
472
|
+
Returns: 无
|
|
422
473
|
### update_element_material
|
|
423
474
|
更新指定单元的材料号
|
|
424
475
|
> 参数:
|
|
@@ -479,7 +530,7 @@ Returns: 无
|
|
|
479
530
|
### add_material
|
|
480
531
|
添加材料
|
|
481
532
|
> 参数:
|
|
482
|
-
> index
|
|
533
|
+
> index:材料编号,默认为最大Id+1
|
|
483
534
|
> name:材料名称
|
|
484
535
|
> mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
485
536
|
> standard:规范序号,参考UI 默认从1开始
|
|
@@ -612,9 +612,40 @@ class Mdb:
|
|
|
612
612
|
# endregion
|
|
613
613
|
|
|
614
614
|
# region 单元操作
|
|
615
|
+
@staticmethod
|
|
616
|
+
def update_local_orientation(ele_id: int):
|
|
617
|
+
"""
|
|
618
|
+
反转杆系单元局部方向
|
|
619
|
+
Args:
|
|
620
|
+
ele_id: 杆系单元编号
|
|
621
|
+
Example:
|
|
622
|
+
mdb.update_local_orientation(1)
|
|
623
|
+
Returns: 无
|
|
624
|
+
"""
|
|
625
|
+
try:
|
|
626
|
+
qt_model.UpdateLocalOrientation(elementId=ele_id)
|
|
627
|
+
except Exception as ex:
|
|
628
|
+
raise Exception(ex)
|
|
629
|
+
|
|
630
|
+
@staticmethod
|
|
631
|
+
def update_element_id(old_id: int, new_id: int):
|
|
632
|
+
"""
|
|
633
|
+
更改单元编号
|
|
634
|
+
Args:
|
|
635
|
+
old_id: 单元编号
|
|
636
|
+
new_id: 新单元编号
|
|
637
|
+
Example:
|
|
638
|
+
mdb.update_element_id(1,2)
|
|
639
|
+
Returns: 无
|
|
640
|
+
"""
|
|
641
|
+
try:
|
|
642
|
+
qt_model.UpdateElementId(oldId=old_id, newId=new_id)
|
|
643
|
+
except Exception as ex:
|
|
644
|
+
raise Exception(ex)
|
|
645
|
+
|
|
615
646
|
@staticmethod
|
|
616
647
|
def add_element(index: int = 1, ele_type: int = 1, node_ids: list[int] = None, beta_angle: float = 0,
|
|
617
|
-
mat_id: int = -1, sec_id: int = -1, initial_type: int = 1, initial_value: float = 0):
|
|
648
|
+
mat_id: int = -1, sec_id: int = -1, initial_type: int = 1, initial_value: float = 0, plate_type: int = 0):
|
|
618
649
|
"""
|
|
619
650
|
根据单元编号和单元类型添加单元
|
|
620
651
|
Args:
|
|
@@ -624,8 +655,9 @@ class Mdb:
|
|
|
624
655
|
beta_angle:贝塔角
|
|
625
656
|
mat_id:材料编号
|
|
626
657
|
sec_id:截面编号
|
|
627
|
-
initial_type:索单元初始参数类型
|
|
658
|
+
initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
628
659
|
initial_value:索单元初始始参数值
|
|
660
|
+
plate_type:板单元类型 0-薄板 1-厚板
|
|
629
661
|
Example:
|
|
630
662
|
mdb.add_element(index=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
631
663
|
Returns: 无
|
|
@@ -644,9 +676,37 @@ class Mdb:
|
|
|
644
676
|
initialType=initial_type, initialValue=initial_value)
|
|
645
677
|
else:
|
|
646
678
|
qt_model.AddPlate(id=index, idI=node_ids[0], idJ=node_ids[1], idK=node_ids[2], idL=node_ids[3], betaAngle=beta_angle,
|
|
647
|
-
materialId=mat_id,
|
|
648
|
-
|
|
679
|
+
materialId=mat_id, sectionId=sec_id, type=plate_type)
|
|
680
|
+
except Exception as ex:
|
|
681
|
+
raise Exception(ex)
|
|
649
682
|
|
|
683
|
+
@staticmethod
|
|
684
|
+
def update_element(old_id: int, new_id: int = -1, ele_type: int = 1, node_ids: list[int] = None, beta_angle: float = 0,
|
|
685
|
+
mat_id: int = -1, sec_id: int = -1, initial_type: int = 1, initial_value: float = 0, plate_type: int = 0):
|
|
686
|
+
"""
|
|
687
|
+
根据单元编号和单元类型添加单元
|
|
688
|
+
Args:
|
|
689
|
+
old_id:原单元编号
|
|
690
|
+
new_id:现单元编号,默认不修改原单元Id
|
|
691
|
+
ele_type:单元类型 1-梁 2-杆 3-索 4-板
|
|
692
|
+
node_ids:单元对应的节点列表 [i,j] 或 [i,j,k,l]
|
|
693
|
+
beta_angle:贝塔角
|
|
694
|
+
mat_id:材料编号
|
|
695
|
+
sec_id:截面编号
|
|
696
|
+
initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
697
|
+
initial_value:索单元初始始参数值
|
|
698
|
+
plate_type:板单元类型 0-薄板 1-厚板
|
|
699
|
+
Example:
|
|
700
|
+
mdb.update_element(old_id=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
701
|
+
Returns: 无
|
|
702
|
+
"""
|
|
703
|
+
try:
|
|
704
|
+
if node_ids is None and ele_type != 4:
|
|
705
|
+
raise Exception("操作错误,请输入此单元所需节点列表,[i,j]")
|
|
706
|
+
if node_ids is None and ele_type == 4:
|
|
707
|
+
raise Exception("操作错误,请输入此板单元所需节点列表,[i,j,k,l]")
|
|
708
|
+
qt_model.UpdateElement(oldId=old_id, newId=new_id, nodeIds=node_ids, betaAngle=beta_angle, initialType=initial_type,
|
|
709
|
+
initialValue=initial_value, materialId=mat_id, sectionId=sec_id, type=plate_type)
|
|
650
710
|
except Exception as ex:
|
|
651
711
|
raise Exception(ex)
|
|
652
712
|
|
|
@@ -674,7 +734,22 @@ class Mdb:
|
|
|
674
734
|
raise Exception(ex)
|
|
675
735
|
|
|
676
736
|
@staticmethod
|
|
677
|
-
def
|
|
737
|
+
def update_element_local_orientation(index: Union[int, List[int]]):
|
|
738
|
+
"""
|
|
739
|
+
更新指定单元的单元局部坐标系
|
|
740
|
+
Args:
|
|
741
|
+
index: 单元编号
|
|
742
|
+
Example:
|
|
743
|
+
mdb.update_element_local_orientation(index=1)
|
|
744
|
+
Returns: 无
|
|
745
|
+
"""
|
|
746
|
+
try:
|
|
747
|
+
qt_model.UpdateElementLocalOrientation(elementId=index)
|
|
748
|
+
except Exception as ex:
|
|
749
|
+
raise Exception(ex)
|
|
750
|
+
|
|
751
|
+
@staticmethod
|
|
752
|
+
def update_element_material(index: Union[int, List[int]], mat_id: int):
|
|
678
753
|
"""
|
|
679
754
|
更新指定单元的材料号
|
|
680
755
|
Args:
|
|
@@ -690,7 +765,7 @@ class Mdb:
|
|
|
690
765
|
raise Exception(ex)
|
|
691
766
|
|
|
692
767
|
@staticmethod
|
|
693
|
-
def update_element_beta_angle(index: int, beta_angle: float):
|
|
768
|
+
def update_element_beta_angle(index: Union[int, List[int]], beta_angle: float):
|
|
694
769
|
"""
|
|
695
770
|
更新指定单元的贝塔角
|
|
696
771
|
Args:
|
|
@@ -706,7 +781,7 @@ class Mdb:
|
|
|
706
781
|
raise Exception(ex)
|
|
707
782
|
|
|
708
783
|
@staticmethod
|
|
709
|
-
def update_element_section(index: int, sec_id: int):
|
|
784
|
+
def update_element_section(index: Union[int, List[int]], sec_id: int):
|
|
710
785
|
"""
|
|
711
786
|
更新杆系单元截面或板单元板厚
|
|
712
787
|
Args:
|
|
@@ -717,7 +792,7 @@ class Mdb:
|
|
|
717
792
|
Returns: 无
|
|
718
793
|
"""
|
|
719
794
|
try:
|
|
720
|
-
if qt_model.
|
|
795
|
+
if qt_model.GetElemntType(index) == "PLATE":
|
|
721
796
|
qt_model.UpdatePlateThickness(elementId=index, thicknessId=sec_id)
|
|
722
797
|
else:
|
|
723
798
|
qt_model.UpdateFrameSection(elementId=index, sectionId=sec_id)
|
|
@@ -742,7 +817,7 @@ class Mdb:
|
|
|
742
817
|
raise Exception(ex)
|
|
743
818
|
|
|
744
819
|
@staticmethod
|
|
745
|
-
def remove_element(index: int = None):
|
|
820
|
+
def remove_element(index: (Union[int, List[int]]) = None):
|
|
746
821
|
"""
|
|
747
822
|
删除指定编号的单元
|
|
748
823
|
Args:
|
|
@@ -770,7 +845,7 @@ class Mdb:
|
|
|
770
845
|
"""
|
|
771
846
|
添加材料
|
|
772
847
|
Args:
|
|
773
|
-
index
|
|
848
|
+
index:材料编号,默认为最大Id+1
|
|
774
849
|
name:材料名称
|
|
775
850
|
mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
776
851
|
standard:规范序号,参考UI 默认从1开始
|
|
@@ -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.53
|
|
4
|
+
Summary: python modeling for qt 2024-12-28
|
|
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.53 - 2024-12-28
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 增加边界更新接口
|
|
18
18
|
## 项目管理
|
|
@@ -399,6 +399,27 @@ mdb.add_structure_to_group(name="现有结构组1",node_ids=[1,2,3,4],element_id
|
|
|
399
399
|
```
|
|
400
400
|
Returns: 无
|
|
401
401
|
## 单元操作
|
|
402
|
+
### update_local_orientation
|
|
403
|
+
反转杆系单元局部方向
|
|
404
|
+
> 参数:
|
|
405
|
+
> ele_id: 杆系单元编号
|
|
406
|
+
```Python
|
|
407
|
+
# 示例代码
|
|
408
|
+
from qtmodel import *
|
|
409
|
+
mdb.update_local_orientation(1)
|
|
410
|
+
```
|
|
411
|
+
Returns: 无
|
|
412
|
+
### update_element_id
|
|
413
|
+
更改单元编号
|
|
414
|
+
> 参数:
|
|
415
|
+
> old_id: 单元编号
|
|
416
|
+
> new_id: 新单元编号
|
|
417
|
+
```Python
|
|
418
|
+
# 示例代码
|
|
419
|
+
from qtmodel import *
|
|
420
|
+
mdb.update_element_id(1,2)
|
|
421
|
+
```
|
|
422
|
+
Returns: 无
|
|
402
423
|
### add_element
|
|
403
424
|
根据单元编号和单元类型添加单元
|
|
404
425
|
> 参数:
|
|
@@ -408,14 +429,34 @@ Returns: 无
|
|
|
408
429
|
> beta_angle:贝塔角
|
|
409
430
|
> mat_id:材料编号
|
|
410
431
|
> sec_id:截面编号
|
|
411
|
-
> initial_type:索单元初始参数类型
|
|
432
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
412
433
|
> initial_value:索单元初始始参数值
|
|
434
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
413
435
|
```Python
|
|
414
436
|
# 示例代码
|
|
415
437
|
from qtmodel import *
|
|
416
438
|
mdb.add_element(index=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
417
439
|
```
|
|
418
440
|
Returns: 无
|
|
441
|
+
### update_element
|
|
442
|
+
根据单元编号和单元类型添加单元
|
|
443
|
+
> 参数:
|
|
444
|
+
> old_id:原单元编号
|
|
445
|
+
> new_id:现单元编号,默认不修改原单元Id
|
|
446
|
+
> ele_type:单元类型 1-梁 2-杆 3-索 4-板
|
|
447
|
+
> node_ids:单元对应的节点列表 [i,j] 或 [i,j,k,l]
|
|
448
|
+
> beta_angle:贝塔角
|
|
449
|
+
> mat_id:材料编号
|
|
450
|
+
> sec_id:截面编号
|
|
451
|
+
> initial_type:索单元初始参数类型 1-初始拉力 2-初始水平力 3-无应力长度
|
|
452
|
+
> initial_value:索单元初始始参数值
|
|
453
|
+
> plate_type:板单元类型 0-薄板 1-厚板
|
|
454
|
+
```Python
|
|
455
|
+
# 示例代码
|
|
456
|
+
from qtmodel import *
|
|
457
|
+
mdb.update_element(old_id=1,ele_type=1,node_ids=[1,2],beta_angle=1,mat_id=1,sec_id=1)
|
|
458
|
+
```
|
|
459
|
+
Returns: 无
|
|
419
460
|
### add_elements
|
|
420
461
|
根据单元编号和单元类型添加单元
|
|
421
462
|
> 参数:
|
|
@@ -433,6 +474,16 @@ mdb.add_elements(ele_data=[
|
|
|
433
474
|
[4,4,1,1,0,1,2,3,4]])
|
|
434
475
|
```
|
|
435
476
|
Returns: 无
|
|
477
|
+
### update_element_local_orientation
|
|
478
|
+
更新指定单元的单元局部坐标系
|
|
479
|
+
> 参数:
|
|
480
|
+
> index: 单元编号
|
|
481
|
+
```Python
|
|
482
|
+
# 示例代码
|
|
483
|
+
from qtmodel import *
|
|
484
|
+
mdb.update_element_local_orientation(index=1)
|
|
485
|
+
```
|
|
486
|
+
Returns: 无
|
|
436
487
|
### update_element_material
|
|
437
488
|
更新指定单元的材料号
|
|
438
489
|
> 参数:
|
|
@@ -493,7 +544,7 @@ Returns: 无
|
|
|
493
544
|
### add_material
|
|
494
545
|
添加材料
|
|
495
546
|
> 参数:
|
|
496
|
-
> index
|
|
547
|
+
> index:材料编号,默认为最大Id+1
|
|
497
548
|
> name:材料名称
|
|
498
549
|
> mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
499
550
|
> standard:规范序号,参考UI 默认从1开始
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|