qtmodel 0.5.53__tar.gz → 0.5.54__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.53/qtmodel.egg-info → qtmodel-0.5.54}/PKG-INFO +223 -13
- qtmodel-0.5.53/PKG-INFO → qtmodel-0.5.54/README.md +221 -27
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel/qt_mdb.py +385 -26
- qtmodel-0.5.53/README.md → qtmodel-0.5.54/qtmodel.egg-info/PKG-INFO +237 -11
- {qtmodel-0.5.53 → qtmodel-0.5.54}/setup.py +1 -1
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.53 → qtmodel-0.5.54}/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
|
|
3
|
+
Version: 0.5.54
|
|
4
|
+
Summary: python modeling for qt 2025-01-03
|
|
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.54 - 2025-01-03
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
17
|
+
- 修改部分接口
|
|
18
18
|
## 项目管理
|
|
19
19
|
### update_bim
|
|
20
20
|
刷新Bim模型信息
|
|
@@ -541,6 +541,28 @@ mdb.remove_element(index=1)
|
|
|
541
541
|
```
|
|
542
542
|
Returns: 无
|
|
543
543
|
## 材料操作
|
|
544
|
+
### update_material
|
|
545
|
+
添加材料
|
|
546
|
+
> 参数:
|
|
547
|
+
> name:旧材料名称
|
|
548
|
+
> new_name:新材料名称,默认不更改名称
|
|
549
|
+
> new_id:新材料Id,默认不更改Id
|
|
550
|
+
> mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
551
|
+
> standard:规范序号,参考UI 默认从1开始
|
|
552
|
+
> database:数据库名称
|
|
553
|
+
> construct_factor:构造系数
|
|
554
|
+
> modified:是否修改默认材料参数,默认不修改 (可选参数)
|
|
555
|
+
> data_info:材料参数列表[弹性模量,容重,泊松比,热膨胀系数] (可选参数)
|
|
556
|
+
> creep_id:徐变材料id (可选参数)
|
|
557
|
+
> f_cuk: 立方体抗压强度标准值 (可选参数)
|
|
558
|
+
> composite_info: 主材名和辅材名 (仅组合材料需要)
|
|
559
|
+
```Python
|
|
560
|
+
# 示例代码
|
|
561
|
+
from qtmodel import *
|
|
562
|
+
mdb.update_material(name="混凝土材料1",mat_type=1,standard=1,database="C50")
|
|
563
|
+
mdb.update_material(name="自定义材料1",mat_type=5,data_info=[3.5e10,2.5e4,0.2,1.5e-5])
|
|
564
|
+
```
|
|
565
|
+
Returns: 无
|
|
544
566
|
### add_material
|
|
545
567
|
添加材料
|
|
546
568
|
> 参数:
|
|
@@ -562,35 +584,136 @@ mdb.add_material(index=1,name="混凝土材料1",mat_type=1,standard=1,database=
|
|
|
562
584
|
mdb.add_material(index=1,name="自定义材料1",mat_type=5,data_info=[3.5e10,2.5e4,0.2,1.5e-5])
|
|
563
585
|
```
|
|
564
586
|
Returns: 无
|
|
565
|
-
###
|
|
587
|
+
### add_time_parameter
|
|
566
588
|
添加收缩徐变材料
|
|
567
589
|
> 参数:
|
|
568
|
-
> index: 指定收缩徐变编号,默认则自动识别 (可选参数)
|
|
569
590
|
> name: 收缩徐变名
|
|
570
591
|
> code_index: 收缩徐变规范索引
|
|
571
592
|
> time_parameter: 对应规范的收缩徐变参数列表,默认不改变规范中信息 (可选参数)
|
|
593
|
+
> creep_data: 徐变数据 [(函数名,龄期)...]
|
|
594
|
+
> shrink_data: 收缩函数名
|
|
595
|
+
```Python
|
|
596
|
+
# 示例代码
|
|
597
|
+
from qtmodel import *
|
|
598
|
+
mdb.add_time_parameter(name="收缩徐变材料1",code_index=1)
|
|
599
|
+
```
|
|
600
|
+
Returns: 无
|
|
601
|
+
### update_time_parameter
|
|
602
|
+
添加收缩徐变材料
|
|
603
|
+
> 参数:
|
|
604
|
+
> name: 收缩徐变名
|
|
605
|
+
> new_name: 新收缩徐变名,默认不改变名称
|
|
606
|
+
> code_index: 收缩徐变规范索引
|
|
607
|
+
> time_parameter: 对应规范的收缩徐变参数列表,默认不改变规范中信息 (可选参数)
|
|
608
|
+
> creep_data: 徐变数据 [(函数名,龄期)...]
|
|
609
|
+
> shrink_data: 收缩函数名
|
|
610
|
+
```Python
|
|
611
|
+
# 示例代码
|
|
612
|
+
from qtmodel import *
|
|
613
|
+
mdb.update_time_parameter(name="收缩徐变材料1",new_name="新收缩徐变材料1",code_index=1)
|
|
614
|
+
```
|
|
615
|
+
Returns: 无
|
|
616
|
+
### add_creep_function
|
|
617
|
+
添加徐变函数
|
|
618
|
+
> 参数:
|
|
619
|
+
> name:徐变函数名
|
|
620
|
+
> creep_data:徐变数据[(时间,徐变系数)...]
|
|
621
|
+
> scale_factor:缩放系数
|
|
572
622
|
```Python
|
|
573
623
|
# 示例代码
|
|
574
624
|
from qtmodel import *
|
|
575
|
-
mdb.
|
|
625
|
+
mdb.add_creep_function(name="徐变函数名",creep_data=[(5,0.5),(100,0.75)])
|
|
576
626
|
```
|
|
577
627
|
Returns: 无
|
|
578
|
-
###
|
|
628
|
+
### update_creep_function
|
|
629
|
+
添加徐变函数
|
|
630
|
+
> 参数:
|
|
631
|
+
> name:徐变函数名
|
|
632
|
+
> new_name: 新徐变函数名,默认不改变函数名
|
|
633
|
+
> creep_data:徐变数据,默认不改变函数名 [(时间,徐变系数)...]
|
|
634
|
+
> scale_factor:缩放系数
|
|
635
|
+
```Python
|
|
636
|
+
# 示例代码
|
|
637
|
+
from qtmodel import *
|
|
638
|
+
mdb.add_creep_function(name="徐变函数名",creep_data=[(5,0.5),(100,0.75)])
|
|
639
|
+
```
|
|
640
|
+
Returns: 无
|
|
641
|
+
### add_shrink_function
|
|
642
|
+
添加收缩函数
|
|
643
|
+
> 参数:
|
|
644
|
+
> name:收缩函数名
|
|
645
|
+
> shrink_data:收缩数据[(时间,收缩系数)...]
|
|
646
|
+
> scale_factor:缩放系数
|
|
647
|
+
```Python
|
|
648
|
+
# 示例代码
|
|
649
|
+
from qtmodel import *
|
|
650
|
+
mdb.add_shrink_function(name="收缩函数名",shrink_data=[(5,0.5),(100,0.75)])
|
|
651
|
+
mdb.add_shrink_function(name="收缩函数名",scale_factor=1.2)
|
|
652
|
+
```
|
|
653
|
+
Returns: 无
|
|
654
|
+
### update_shrink_function
|
|
655
|
+
添加收缩函数
|
|
656
|
+
> 参数:
|
|
657
|
+
> name:收缩函数名
|
|
658
|
+
> new_name:收缩函数名
|
|
659
|
+
> shrink_data:收缩数据,默认不改变数据 [(时间,收缩系数)...]
|
|
660
|
+
> scale_factor:缩放系数
|
|
661
|
+
```Python
|
|
662
|
+
# 示例代码
|
|
663
|
+
from qtmodel import *
|
|
664
|
+
mdb.update_shrink_function(name="收缩函数名",new_name="函数名2")
|
|
665
|
+
mdb.update_shrink_function(name="收缩函数名",shrink_data=[(5,0.5),(100,0.75)])
|
|
666
|
+
mdb.update_shrink_function(name="收缩函数名",scale_factor=1.2)
|
|
667
|
+
```
|
|
668
|
+
Returns: 无
|
|
669
|
+
### remove_shrink_function
|
|
670
|
+
删除收缩函数
|
|
671
|
+
> 参数:
|
|
672
|
+
> name:收缩函数名
|
|
673
|
+
```Python
|
|
674
|
+
# 示例代码
|
|
675
|
+
from qtmodel import *
|
|
676
|
+
mdb.remove_shrink_function(name="收缩函数名")
|
|
677
|
+
```
|
|
678
|
+
Returns: 无
|
|
679
|
+
### remove_creep_function
|
|
680
|
+
删除徐变函数
|
|
681
|
+
> 参数:
|
|
682
|
+
> name:徐变函数名
|
|
683
|
+
```Python
|
|
684
|
+
# 示例代码
|
|
685
|
+
from qtmodel import *
|
|
686
|
+
mdb.remove_creep_function(name="徐变函数名")
|
|
687
|
+
```
|
|
688
|
+
Returns: 无
|
|
689
|
+
### update_material_time_parameter
|
|
579
690
|
将收缩徐变参数连接到材料
|
|
580
691
|
> 参数:
|
|
581
|
-
>
|
|
582
|
-
>
|
|
692
|
+
> name: 材料名
|
|
693
|
+
> time_parameter_name: 收缩徐变名称
|
|
583
694
|
> f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
584
695
|
```Python
|
|
585
696
|
# 示例代码
|
|
586
697
|
from qtmodel import *
|
|
587
|
-
mdb.
|
|
698
|
+
mdb.update_material_time_parameter(name="C60",time_parameter_name="收缩徐变1",f_cuk=5e7)
|
|
699
|
+
```
|
|
700
|
+
Returns: 无
|
|
701
|
+
### update_material_id
|
|
702
|
+
更新材料编号
|
|
703
|
+
> 参数:
|
|
704
|
+
> name:材料名称
|
|
705
|
+
> new_id:新编号
|
|
706
|
+
```Python
|
|
707
|
+
# 示例代码
|
|
708
|
+
from qtmodel import *
|
|
709
|
+
mdb.update_material_id(name="材料1",new_id=2)
|
|
588
710
|
```
|
|
589
711
|
Returns: 无
|
|
590
712
|
### remove_material
|
|
591
713
|
删除指定材料
|
|
592
714
|
> 参数:
|
|
593
715
|
> index:指定材料编号,默认则删除所有材料
|
|
716
|
+
> name: 指定材料名,材料名为空时按照index删除
|
|
594
717
|
```Python
|
|
595
718
|
# 示例代码
|
|
596
719
|
from qtmodel import *
|
|
@@ -598,7 +721,28 @@ mdb.remove_material()
|
|
|
598
721
|
mdb.remove_material(index=1)
|
|
599
722
|
```
|
|
600
723
|
Returns: 无
|
|
601
|
-
|
|
724
|
+
### update_material_construction_factor
|
|
725
|
+
更新材料构造系数
|
|
726
|
+
> 参数:
|
|
727
|
+
> name:指定材料编号,默认则删除所有材料
|
|
728
|
+
> factor:指定材料编号,默认则删除所有材料
|
|
729
|
+
```Python
|
|
730
|
+
# 示例代码
|
|
731
|
+
from qtmodel import *
|
|
732
|
+
mdb.update_material_construction_factor(name="材料1",factor=1.0)
|
|
733
|
+
```
|
|
734
|
+
Returns: 无
|
|
735
|
+
### remove_time_parameter
|
|
736
|
+
删除指定时间依存材料
|
|
737
|
+
> 参数:
|
|
738
|
+
> name: 指定收缩徐变材料名
|
|
739
|
+
```Python
|
|
740
|
+
# 示例代码
|
|
741
|
+
from qtmodel import *
|
|
742
|
+
mdb.remove_time_parameter("收缩徐变材料1")
|
|
743
|
+
```
|
|
744
|
+
Returns: 无
|
|
745
|
+
## 截面板厚操作
|
|
602
746
|
### add_section
|
|
603
747
|
添加单一截面信息,如果截面存在则自动覆盖
|
|
604
748
|
> 参数:
|
|
@@ -655,6 +799,21 @@ mdb.add_single_section(index=1,name="变截面1",sec_type="矩形",
|
|
|
655
799
|
sec_dict={"sec_info":[1,2],"bias_type":"中心"})
|
|
656
800
|
```
|
|
657
801
|
Returns: 无
|
|
802
|
+
### update_single_section
|
|
803
|
+
以字典形式添加单一截面
|
|
804
|
+
> 参数:
|
|
805
|
+
> index:截面编号
|
|
806
|
+
> new_id:新截面编号,默认不修改截面编号
|
|
807
|
+
> name:截面名称
|
|
808
|
+
> sec_type:截面类型
|
|
809
|
+
> sec_dict:截面始端编号
|
|
810
|
+
```Python
|
|
811
|
+
# 示例代码
|
|
812
|
+
from qtmodel import *
|
|
813
|
+
mdb.update_single_section(index=1,name="变截面1",sec_type="矩形",
|
|
814
|
+
sec_dict={"sec_info":[1,2],"bias_type":"中心"})
|
|
815
|
+
```
|
|
816
|
+
Returns: 无
|
|
658
817
|
### add_tapper_section
|
|
659
818
|
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
660
819
|
> 参数:
|
|
@@ -673,6 +832,25 @@ sec_begin={"sec_info":[1,2],"bias_type":"中心"},
|
|
|
673
832
|
sec_end={"sec_info":[2,2],"bias_type":"中心"})
|
|
674
833
|
```
|
|
675
834
|
Returns: 无
|
|
835
|
+
### update_tapper_section
|
|
836
|
+
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
837
|
+
> 参数:
|
|
838
|
+
> index:截面编号
|
|
839
|
+
> new_id:新截面编号,默认不修改截面编号
|
|
840
|
+
> name:截面名称
|
|
841
|
+
> sec_type:截面类型
|
|
842
|
+
> sec_begin:截面始端编号
|
|
843
|
+
> sec_end:截面末端编号
|
|
844
|
+
> shear_consider:考虑剪切变形
|
|
845
|
+
> sec_normalize:变截面线段线圈重新排序
|
|
846
|
+
```Python
|
|
847
|
+
# 示例代码
|
|
848
|
+
from qtmodel import *
|
|
849
|
+
mdb.add_tapper_section(index=1,name="变截面1",sec_type="矩形",
|
|
850
|
+
sec_begin={"sec_info":[1,2],"bias_type":"中心"},
|
|
851
|
+
sec_end={"sec_info":[2,2],"bias_type":"中心"})
|
|
852
|
+
```
|
|
853
|
+
Returns: 无
|
|
676
854
|
### add_tapper_section_by_id
|
|
677
855
|
添加变截面,需先建立单一截面
|
|
678
856
|
> 参数:
|
|
@@ -699,7 +877,6 @@ mdb.remove_section()
|
|
|
699
877
|
mdb.remove_section(1)
|
|
700
878
|
```
|
|
701
879
|
Returns: 无
|
|
702
|
-
## 板厚操作
|
|
703
880
|
### add_thickness
|
|
704
881
|
添加板厚
|
|
705
882
|
> 参数:
|
|
@@ -1835,6 +2012,39 @@ from qtmodel import *
|
|
|
1835
2012
|
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1836
2013
|
```
|
|
1837
2014
|
Returns: 无
|
|
2015
|
+
### add_plane_load_type
|
|
2016
|
+
添加分配面荷载类型
|
|
2017
|
+
> 参数:
|
|
2018
|
+
> name:荷载类型名称
|
|
2019
|
+
> load_type:荷载类型 1-集中荷载 2-线荷载 3-面荷载
|
|
2020
|
+
> point_list:点列表,集中力时为列表内元素为 [x,y,force] 线荷载与面荷载时为 [x,y]
|
|
2021
|
+
> load:荷载值,仅线荷载与面荷载需要
|
|
2022
|
+
> copy_x:复制到x轴距离,与UI一致,支持3@2形式字符串,逗号分隔
|
|
2023
|
+
> copy_y:复制到y轴距离,与UI一致,支持3@2形式字符串,逗号分隔
|
|
2024
|
+
> describe:描述
|
|
2025
|
+
```Python
|
|
2026
|
+
# 示例代码
|
|
2027
|
+
from qtmodel import *
|
|
2028
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2029
|
+
```
|
|
2030
|
+
Returns: 无
|
|
2031
|
+
### add_plane_load
|
|
2032
|
+
添加分配面荷载类型
|
|
2033
|
+
> 参数:
|
|
2034
|
+
> case_name:工况名
|
|
2035
|
+
> type_name:荷载类型 1-集中荷载 2-线荷载 3-面荷载
|
|
2036
|
+
> point1:第一点(原点)
|
|
2037
|
+
> point2:第一点(在x轴上)
|
|
2038
|
+
> point3:第一点(在y轴上)
|
|
2039
|
+
> plate_ids:指定板单元。默认时为全部板单元
|
|
2040
|
+
> coord_system:描述
|
|
2041
|
+
> group_name:描述
|
|
2042
|
+
```Python
|
|
2043
|
+
# 示例代码
|
|
2044
|
+
from qtmodel import *
|
|
2045
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2046
|
+
```
|
|
2047
|
+
Returns: 无
|
|
1838
2048
|
## 沉降操作
|
|
1839
2049
|
### add_sink_group
|
|
1840
2050
|
添加沉降组
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Name: qtmodel
|
|
3
|
-
Version: 0.5.53
|
|
4
|
-
Summary: python modeling for qt 2024-12-28
|
|
5
|
-
Home-page: https://github.com/Inface0443/pyqt
|
|
6
|
-
Author: dqy-zhj
|
|
7
|
-
Author-email: 1105417715@qq.com
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
# 最新版本 V0.5.53 - 2024-12-28
|
|
1
|
+
# 最新版本 V0.5.54 - 2025-01-03
|
|
16
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
|
-
-
|
|
3
|
+
- 修改部分接口
|
|
18
4
|
## 项目管理
|
|
19
5
|
### update_bim
|
|
20
6
|
刷新Bim模型信息
|
|
@@ -541,6 +527,28 @@ mdb.remove_element(index=1)
|
|
|
541
527
|
```
|
|
542
528
|
Returns: 无
|
|
543
529
|
## 材料操作
|
|
530
|
+
### update_material
|
|
531
|
+
添加材料
|
|
532
|
+
> 参数:
|
|
533
|
+
> name:旧材料名称
|
|
534
|
+
> new_name:新材料名称,默认不更改名称
|
|
535
|
+
> new_id:新材料Id,默认不更改Id
|
|
536
|
+
> mat_type: 材料类型,1-混凝土 2-钢材 3-预应力 4-钢筋 5-自定义 6-组合材料
|
|
537
|
+
> standard:规范序号,参考UI 默认从1开始
|
|
538
|
+
> database:数据库名称
|
|
539
|
+
> construct_factor:构造系数
|
|
540
|
+
> modified:是否修改默认材料参数,默认不修改 (可选参数)
|
|
541
|
+
> data_info:材料参数列表[弹性模量,容重,泊松比,热膨胀系数] (可选参数)
|
|
542
|
+
> creep_id:徐变材料id (可选参数)
|
|
543
|
+
> f_cuk: 立方体抗压强度标准值 (可选参数)
|
|
544
|
+
> composite_info: 主材名和辅材名 (仅组合材料需要)
|
|
545
|
+
```Python
|
|
546
|
+
# 示例代码
|
|
547
|
+
from qtmodel import *
|
|
548
|
+
mdb.update_material(name="混凝土材料1",mat_type=1,standard=1,database="C50")
|
|
549
|
+
mdb.update_material(name="自定义材料1",mat_type=5,data_info=[3.5e10,2.5e4,0.2,1.5e-5])
|
|
550
|
+
```
|
|
551
|
+
Returns: 无
|
|
544
552
|
### add_material
|
|
545
553
|
添加材料
|
|
546
554
|
> 参数:
|
|
@@ -562,35 +570,136 @@ mdb.add_material(index=1,name="混凝土材料1",mat_type=1,standard=1,database=
|
|
|
562
570
|
mdb.add_material(index=1,name="自定义材料1",mat_type=5,data_info=[3.5e10,2.5e4,0.2,1.5e-5])
|
|
563
571
|
```
|
|
564
572
|
Returns: 无
|
|
565
|
-
###
|
|
573
|
+
### add_time_parameter
|
|
566
574
|
添加收缩徐变材料
|
|
567
575
|
> 参数:
|
|
568
|
-
> index: 指定收缩徐变编号,默认则自动识别 (可选参数)
|
|
569
576
|
> name: 收缩徐变名
|
|
570
577
|
> code_index: 收缩徐变规范索引
|
|
571
578
|
> time_parameter: 对应规范的收缩徐变参数列表,默认不改变规范中信息 (可选参数)
|
|
579
|
+
> creep_data: 徐变数据 [(函数名,龄期)...]
|
|
580
|
+
> shrink_data: 收缩函数名
|
|
581
|
+
```Python
|
|
582
|
+
# 示例代码
|
|
583
|
+
from qtmodel import *
|
|
584
|
+
mdb.add_time_parameter(name="收缩徐变材料1",code_index=1)
|
|
585
|
+
```
|
|
586
|
+
Returns: 无
|
|
587
|
+
### update_time_parameter
|
|
588
|
+
添加收缩徐变材料
|
|
589
|
+
> 参数:
|
|
590
|
+
> name: 收缩徐变名
|
|
591
|
+
> new_name: 新收缩徐变名,默认不改变名称
|
|
592
|
+
> code_index: 收缩徐变规范索引
|
|
593
|
+
> time_parameter: 对应规范的收缩徐变参数列表,默认不改变规范中信息 (可选参数)
|
|
594
|
+
> creep_data: 徐变数据 [(函数名,龄期)...]
|
|
595
|
+
> shrink_data: 收缩函数名
|
|
596
|
+
```Python
|
|
597
|
+
# 示例代码
|
|
598
|
+
from qtmodel import *
|
|
599
|
+
mdb.update_time_parameter(name="收缩徐变材料1",new_name="新收缩徐变材料1",code_index=1)
|
|
600
|
+
```
|
|
601
|
+
Returns: 无
|
|
602
|
+
### add_creep_function
|
|
603
|
+
添加徐变函数
|
|
604
|
+
> 参数:
|
|
605
|
+
> name:徐变函数名
|
|
606
|
+
> creep_data:徐变数据[(时间,徐变系数)...]
|
|
607
|
+
> scale_factor:缩放系数
|
|
572
608
|
```Python
|
|
573
609
|
# 示例代码
|
|
574
610
|
from qtmodel import *
|
|
575
|
-
mdb.
|
|
611
|
+
mdb.add_creep_function(name="徐变函数名",creep_data=[(5,0.5),(100,0.75)])
|
|
576
612
|
```
|
|
577
613
|
Returns: 无
|
|
578
|
-
###
|
|
614
|
+
### update_creep_function
|
|
615
|
+
添加徐变函数
|
|
616
|
+
> 参数:
|
|
617
|
+
> name:徐变函数名
|
|
618
|
+
> new_name: 新徐变函数名,默认不改变函数名
|
|
619
|
+
> creep_data:徐变数据,默认不改变函数名 [(时间,徐变系数)...]
|
|
620
|
+
> scale_factor:缩放系数
|
|
621
|
+
```Python
|
|
622
|
+
# 示例代码
|
|
623
|
+
from qtmodel import *
|
|
624
|
+
mdb.add_creep_function(name="徐变函数名",creep_data=[(5,0.5),(100,0.75)])
|
|
625
|
+
```
|
|
626
|
+
Returns: 无
|
|
627
|
+
### add_shrink_function
|
|
628
|
+
添加收缩函数
|
|
629
|
+
> 参数:
|
|
630
|
+
> name:收缩函数名
|
|
631
|
+
> shrink_data:收缩数据[(时间,收缩系数)...]
|
|
632
|
+
> scale_factor:缩放系数
|
|
633
|
+
```Python
|
|
634
|
+
# 示例代码
|
|
635
|
+
from qtmodel import *
|
|
636
|
+
mdb.add_shrink_function(name="收缩函数名",shrink_data=[(5,0.5),(100,0.75)])
|
|
637
|
+
mdb.add_shrink_function(name="收缩函数名",scale_factor=1.2)
|
|
638
|
+
```
|
|
639
|
+
Returns: 无
|
|
640
|
+
### update_shrink_function
|
|
641
|
+
添加收缩函数
|
|
642
|
+
> 参数:
|
|
643
|
+
> name:收缩函数名
|
|
644
|
+
> new_name:收缩函数名
|
|
645
|
+
> shrink_data:收缩数据,默认不改变数据 [(时间,收缩系数)...]
|
|
646
|
+
> scale_factor:缩放系数
|
|
647
|
+
```Python
|
|
648
|
+
# 示例代码
|
|
649
|
+
from qtmodel import *
|
|
650
|
+
mdb.update_shrink_function(name="收缩函数名",new_name="函数名2")
|
|
651
|
+
mdb.update_shrink_function(name="收缩函数名",shrink_data=[(5,0.5),(100,0.75)])
|
|
652
|
+
mdb.update_shrink_function(name="收缩函数名",scale_factor=1.2)
|
|
653
|
+
```
|
|
654
|
+
Returns: 无
|
|
655
|
+
### remove_shrink_function
|
|
656
|
+
删除收缩函数
|
|
657
|
+
> 参数:
|
|
658
|
+
> name:收缩函数名
|
|
659
|
+
```Python
|
|
660
|
+
# 示例代码
|
|
661
|
+
from qtmodel import *
|
|
662
|
+
mdb.remove_shrink_function(name="收缩函数名")
|
|
663
|
+
```
|
|
664
|
+
Returns: 无
|
|
665
|
+
### remove_creep_function
|
|
666
|
+
删除徐变函数
|
|
667
|
+
> 参数:
|
|
668
|
+
> name:徐变函数名
|
|
669
|
+
```Python
|
|
670
|
+
# 示例代码
|
|
671
|
+
from qtmodel import *
|
|
672
|
+
mdb.remove_creep_function(name="徐变函数名")
|
|
673
|
+
```
|
|
674
|
+
Returns: 无
|
|
675
|
+
### update_material_time_parameter
|
|
579
676
|
将收缩徐变参数连接到材料
|
|
580
677
|
> 参数:
|
|
581
|
-
>
|
|
582
|
-
>
|
|
678
|
+
> name: 材料名
|
|
679
|
+
> time_parameter_name: 收缩徐变名称
|
|
583
680
|
> f_cuk: 材料标准抗压强度,仅自定义材料是需要输入
|
|
584
681
|
```Python
|
|
585
682
|
# 示例代码
|
|
586
683
|
from qtmodel import *
|
|
587
|
-
mdb.
|
|
684
|
+
mdb.update_material_time_parameter(name="C60",time_parameter_name="收缩徐变1",f_cuk=5e7)
|
|
685
|
+
```
|
|
686
|
+
Returns: 无
|
|
687
|
+
### update_material_id
|
|
688
|
+
更新材料编号
|
|
689
|
+
> 参数:
|
|
690
|
+
> name:材料名称
|
|
691
|
+
> new_id:新编号
|
|
692
|
+
```Python
|
|
693
|
+
# 示例代码
|
|
694
|
+
from qtmodel import *
|
|
695
|
+
mdb.update_material_id(name="材料1",new_id=2)
|
|
588
696
|
```
|
|
589
697
|
Returns: 无
|
|
590
698
|
### remove_material
|
|
591
699
|
删除指定材料
|
|
592
700
|
> 参数:
|
|
593
701
|
> index:指定材料编号,默认则删除所有材料
|
|
702
|
+
> name: 指定材料名,材料名为空时按照index删除
|
|
594
703
|
```Python
|
|
595
704
|
# 示例代码
|
|
596
705
|
from qtmodel import *
|
|
@@ -598,7 +707,28 @@ mdb.remove_material()
|
|
|
598
707
|
mdb.remove_material(index=1)
|
|
599
708
|
```
|
|
600
709
|
Returns: 无
|
|
601
|
-
|
|
710
|
+
### update_material_construction_factor
|
|
711
|
+
更新材料构造系数
|
|
712
|
+
> 参数:
|
|
713
|
+
> name:指定材料编号,默认则删除所有材料
|
|
714
|
+
> factor:指定材料编号,默认则删除所有材料
|
|
715
|
+
```Python
|
|
716
|
+
# 示例代码
|
|
717
|
+
from qtmodel import *
|
|
718
|
+
mdb.update_material_construction_factor(name="材料1",factor=1.0)
|
|
719
|
+
```
|
|
720
|
+
Returns: 无
|
|
721
|
+
### remove_time_parameter
|
|
722
|
+
删除指定时间依存材料
|
|
723
|
+
> 参数:
|
|
724
|
+
> name: 指定收缩徐变材料名
|
|
725
|
+
```Python
|
|
726
|
+
# 示例代码
|
|
727
|
+
from qtmodel import *
|
|
728
|
+
mdb.remove_time_parameter("收缩徐变材料1")
|
|
729
|
+
```
|
|
730
|
+
Returns: 无
|
|
731
|
+
## 截面板厚操作
|
|
602
732
|
### add_section
|
|
603
733
|
添加单一截面信息,如果截面存在则自动覆盖
|
|
604
734
|
> 参数:
|
|
@@ -655,6 +785,21 @@ mdb.add_single_section(index=1,name="变截面1",sec_type="矩形",
|
|
|
655
785
|
sec_dict={"sec_info":[1,2],"bias_type":"中心"})
|
|
656
786
|
```
|
|
657
787
|
Returns: 无
|
|
788
|
+
### update_single_section
|
|
789
|
+
以字典形式添加单一截面
|
|
790
|
+
> 参数:
|
|
791
|
+
> index:截面编号
|
|
792
|
+
> new_id:新截面编号,默认不修改截面编号
|
|
793
|
+
> name:截面名称
|
|
794
|
+
> sec_type:截面类型
|
|
795
|
+
> sec_dict:截面始端编号
|
|
796
|
+
```Python
|
|
797
|
+
# 示例代码
|
|
798
|
+
from qtmodel import *
|
|
799
|
+
mdb.update_single_section(index=1,name="变截面1",sec_type="矩形",
|
|
800
|
+
sec_dict={"sec_info":[1,2],"bias_type":"中心"})
|
|
801
|
+
```
|
|
802
|
+
Returns: 无
|
|
658
803
|
### add_tapper_section
|
|
659
804
|
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
660
805
|
> 参数:
|
|
@@ -673,6 +818,25 @@ sec_begin={"sec_info":[1,2],"bias_type":"中心"},
|
|
|
673
818
|
sec_end={"sec_info":[2,2],"bias_type":"中心"})
|
|
674
819
|
```
|
|
675
820
|
Returns: 无
|
|
821
|
+
### update_tapper_section
|
|
822
|
+
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
823
|
+
> 参数:
|
|
824
|
+
> index:截面编号
|
|
825
|
+
> new_id:新截面编号,默认不修改截面编号
|
|
826
|
+
> name:截面名称
|
|
827
|
+
> sec_type:截面类型
|
|
828
|
+
> sec_begin:截面始端编号
|
|
829
|
+
> sec_end:截面末端编号
|
|
830
|
+
> shear_consider:考虑剪切变形
|
|
831
|
+
> sec_normalize:变截面线段线圈重新排序
|
|
832
|
+
```Python
|
|
833
|
+
# 示例代码
|
|
834
|
+
from qtmodel import *
|
|
835
|
+
mdb.add_tapper_section(index=1,name="变截面1",sec_type="矩形",
|
|
836
|
+
sec_begin={"sec_info":[1,2],"bias_type":"中心"},
|
|
837
|
+
sec_end={"sec_info":[2,2],"bias_type":"中心"})
|
|
838
|
+
```
|
|
839
|
+
Returns: 无
|
|
676
840
|
### add_tapper_section_by_id
|
|
677
841
|
添加变截面,需先建立单一截面
|
|
678
842
|
> 参数:
|
|
@@ -699,7 +863,6 @@ mdb.remove_section()
|
|
|
699
863
|
mdb.remove_section(1)
|
|
700
864
|
```
|
|
701
865
|
Returns: 无
|
|
702
|
-
## 板厚操作
|
|
703
866
|
### add_thickness
|
|
704
867
|
添加板厚
|
|
705
868
|
> 参数:
|
|
@@ -1835,6 +1998,39 @@ from qtmodel import *
|
|
|
1835
1998
|
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
1836
1999
|
```
|
|
1837
2000
|
Returns: 无
|
|
2001
|
+
### add_plane_load_type
|
|
2002
|
+
添加分配面荷载类型
|
|
2003
|
+
> 参数:
|
|
2004
|
+
> name:荷载类型名称
|
|
2005
|
+
> load_type:荷载类型 1-集中荷载 2-线荷载 3-面荷载
|
|
2006
|
+
> point_list:点列表,集中力时为列表内元素为 [x,y,force] 线荷载与面荷载时为 [x,y]
|
|
2007
|
+
> load:荷载值,仅线荷载与面荷载需要
|
|
2008
|
+
> copy_x:复制到x轴距离,与UI一致,支持3@2形式字符串,逗号分隔
|
|
2009
|
+
> copy_y:复制到y轴距离,与UI一致,支持3@2形式字符串,逗号分隔
|
|
2010
|
+
> describe:描述
|
|
2011
|
+
```Python
|
|
2012
|
+
# 示例代码
|
|
2013
|
+
from qtmodel import *
|
|
2014
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2015
|
+
```
|
|
2016
|
+
Returns: 无
|
|
2017
|
+
### add_plane_load
|
|
2018
|
+
添加分配面荷载类型
|
|
2019
|
+
> 参数:
|
|
2020
|
+
> case_name:工况名
|
|
2021
|
+
> type_name:荷载类型 1-集中荷载 2-线荷载 3-面荷载
|
|
2022
|
+
> point1:第一点(原点)
|
|
2023
|
+
> point2:第一点(在x轴上)
|
|
2024
|
+
> point3:第一点(在y轴上)
|
|
2025
|
+
> plate_ids:指定板单元。默认时为全部板单元
|
|
2026
|
+
> coord_system:描述
|
|
2027
|
+
> group_name:描述
|
|
2028
|
+
```Python
|
|
2029
|
+
# 示例代码
|
|
2030
|
+
from qtmodel import *
|
|
2031
|
+
mdb.remove_custom_temperature(case_name="工况1",element_id=1,group_name="默认荷载组")
|
|
2032
|
+
```
|
|
2033
|
+
Returns: 无
|
|
1838
2034
|
## 沉降操作
|
|
1839
2035
|
### add_sink_group
|
|
1840
2036
|
添加沉降组
|
|
@@ -3016,5 +3212,3 @@ from qtmodel import *
|
|
|
3016
3212
|
odb.get_deviation_load(case_name="荷载工况1")
|
|
3017
3213
|
```
|
|
3018
3214
|
Returns: json字符串,包含信息为list[dict]
|
|
3019
|
-
|
|
3020
|
-
|