qtmodel 1.1.4__tar.gz → 1.1.6__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-1.1.4 → qtmodel-1.1.6}/PKG-INFO +166 -58
- {qtmodel-1.1.4 → qtmodel-1.1.6}/README.md +164 -56
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/core/data_helper.py +2 -2
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/core/qt_server.py +3 -2
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_boundary.py +19 -13
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_section.py +45 -46
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_result.py +45 -43
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_result_plot.py +44 -44
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel.egg-info/PKG-INFO +166 -58
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel.egg-info/SOURCES.txt +1 -2
- {qtmodel-1.1.4 → qtmodel-1.1.6}/setup.py +1 -1
- qtmodel-1.1.4/test/test.py +0 -164
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/__init__.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/core/__init__.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/core/model_db.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/core/result_db.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/__init__.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_analysis_setting.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_assistant.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_construction_stage.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_dynamic_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_live_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_project.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_property.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_sink_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_static_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_structure.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_temperature_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/mdb/mdb_tendon.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/__init__.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_model.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_model_boundary.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_model_load.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_model_section.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel/odb/odb_view.py +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-1.1.4 → qtmodel-1.1.6}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 1.1.
|
|
4
|
-
Summary: python modeling for qt 2025-09-
|
|
3
|
+
Version: 1.1.6
|
|
4
|
+
Summary: python modeling for qt 2025-09-28
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
7
7
|
Author-email: 1105417715@qq.com
|
|
@@ -17,7 +17,7 @@ Dynamic: description-content-type
|
|
|
17
17
|
Dynamic: home-page
|
|
18
18
|
Dynamic: summary
|
|
19
19
|
|
|
20
|
-
> 最新版本 V1.1.
|
|
20
|
+
> 最新版本 V1.1.6 - 2025-09-28
|
|
21
21
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
22
22
|
- 新增更新结构组接口
|
|
23
23
|
# 建模操作
|
|
@@ -681,10 +681,10 @@ mdb.add_tapper_section_by_id(name="变截面1",begin_id=1,end_id=2)
|
|
|
681
681
|
#Returns: 无
|
|
682
682
|
```
|
|
683
683
|
### update_single_section
|
|
684
|
-
以字典形式添加单一截面
|
|
684
|
+
todo 以字典形式添加单一截面
|
|
685
685
|
> 参数:
|
|
686
686
|
> index:截面编号
|
|
687
|
-
> new_id
|
|
687
|
+
> new_id:新截面编号,默认为-1时不修改截面编号
|
|
688
688
|
> name:截面名称
|
|
689
689
|
> sec_type:截面类型
|
|
690
690
|
> sec_data:截面信息字典,键值参考添加add_section方法参数
|
|
@@ -696,7 +696,7 @@ sec_data={"sec_info":[1,2],"bias_type":"中心"})
|
|
|
696
696
|
#Returns: 无
|
|
697
697
|
```
|
|
698
698
|
### update_tapper_section
|
|
699
|
-
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
699
|
+
todo 添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
700
700
|
> 参数:
|
|
701
701
|
> index:截面编号
|
|
702
702
|
> new_id:新截面编号,默认不修改截面编号
|
|
@@ -715,7 +715,7 @@ sec_end={"sec_info":[2,2],"bias_type":"中心"})
|
|
|
715
715
|
#Returns: 无
|
|
716
716
|
```
|
|
717
717
|
### update_section_bias
|
|
718
|
-
更新截面偏心
|
|
718
|
+
todo 更新截面偏心
|
|
719
719
|
> 参数:
|
|
720
720
|
> index:截面编号
|
|
721
721
|
> bias_type:偏心类型
|
|
@@ -731,7 +731,7 @@ mdb.update_section_bias(index=1,bias_type="自定义",bias_point=[0.1,0.2])
|
|
|
731
731
|
#Returns: 无
|
|
732
732
|
```
|
|
733
733
|
### update_section_property
|
|
734
|
-
更新截面特性
|
|
734
|
+
todo 更新截面特性
|
|
735
735
|
> 参数:
|
|
736
736
|
> index:截面号
|
|
737
737
|
> sec_property:截面特性值参考UI共计26个数值
|
|
@@ -743,7 +743,7 @@ mdb.update_section_property(index=1,sec_property=[i for i in range(1,27)])
|
|
|
743
743
|
#Returns: 无
|
|
744
744
|
```
|
|
745
745
|
### update_section_id
|
|
746
|
-
更新截面编号
|
|
746
|
+
todo 更新截面编号
|
|
747
747
|
> 参数:
|
|
748
748
|
> index: 原编号
|
|
749
749
|
> new_id: 新编号
|
|
@@ -753,30 +753,10 @@ from qtmodel import *
|
|
|
753
753
|
mdb.update_section_id(index=1,new_id=2)
|
|
754
754
|
#Returns:无
|
|
755
755
|
```
|
|
756
|
-
### remove_tapper_section_group
|
|
757
|
-
删除变截面组,默认删除所有变截面组
|
|
758
|
-
> 参数:
|
|
759
|
-
> name:变截面组名称
|
|
760
|
-
```Python
|
|
761
|
-
# 示例代码
|
|
762
|
-
from qtmodel import *
|
|
763
|
-
mdb.remove_tapper_section_group()
|
|
764
|
-
mdb.remove_tapper_section_group("变截面组1")
|
|
765
|
-
#Returns:无
|
|
766
|
-
```
|
|
767
|
-
### remove_all_section
|
|
768
|
-
删除全部截面信息
|
|
769
|
-
> 参数:
|
|
770
|
-
```Python
|
|
771
|
-
# 示例代码
|
|
772
|
-
from qtmodel import *
|
|
773
|
-
mdb.remove_all_section()
|
|
774
|
-
#Returns: 无
|
|
775
|
-
```
|
|
776
756
|
### remove_section
|
|
777
|
-
|
|
757
|
+
删除截面信息,默认则删除所有截面
|
|
778
758
|
> 参数:
|
|
779
|
-
>
|
|
759
|
+
> ids: 截面编号
|
|
780
760
|
```Python
|
|
781
761
|
# 示例代码
|
|
782
762
|
from qtmodel import *
|
|
@@ -842,6 +822,10 @@ mdb.add_tapper_section_from_group("变截面组1")
|
|
|
842
822
|
> ref_h: 高度方向参考点 0-i 1-j
|
|
843
823
|
> dis_w: 宽度方向距离
|
|
844
824
|
> dis_h: 高度方向距离
|
|
825
|
+
> parameter_info:参数化变截面组信息,键为参数名(参考UI)值为如下三种类型
|
|
826
|
+
> 1(非线性),指数,参考点(I/J),距离
|
|
827
|
+
> 2(自定义),变化长1,终点值1,变化长2,终点值2...
|
|
828
|
+
> 3(圆弧),半径,参考点(I/J)
|
|
845
829
|
```Python
|
|
846
830
|
# 示例代码
|
|
847
831
|
from qtmodel import *
|
|
@@ -849,6 +833,17 @@ mdb.update_tapper_section_group(name="变截面组1",ids=[1,2,3,4])
|
|
|
849
833
|
mdb.update_tapper_section_group(name="变截面组2",ids="1t0100")
|
|
850
834
|
#Returns: 无
|
|
851
835
|
```
|
|
836
|
+
### remove_tapper_section_group
|
|
837
|
+
删除变截面组,默认删除所有变截面组
|
|
838
|
+
> 参数:
|
|
839
|
+
> name:变截面组名称
|
|
840
|
+
```Python
|
|
841
|
+
# 示例代码
|
|
842
|
+
from qtmodel import *
|
|
843
|
+
mdb.remove_tapper_section_group()
|
|
844
|
+
mdb.remove_tapper_section_group("变截面组1")
|
|
845
|
+
#Returns:无
|
|
846
|
+
```
|
|
852
847
|
## 边界操作
|
|
853
848
|
### add_effective_width
|
|
854
849
|
添加有效宽度系数
|
|
@@ -903,13 +898,14 @@ mdb.add_general_elastic_support(node_id=1, property_name = "特性1",group_name=
|
|
|
903
898
|
添加一般支承
|
|
904
899
|
> 参数:
|
|
905
900
|
> node_id:节点编号,支持整数或整数型列表且支持XtoYbyN形式字符串
|
|
906
|
-
> boundary_info:边界信息 [X,Y,Z,Rx,Ry,Rz] ture-固定 false-自由
|
|
901
|
+
> boundary_info:边界信息 [X,Y,Z,Rx,Ry,Rz] ture-固定 false-自由,也可传数值列表(0-自由 1-固定)
|
|
907
902
|
> group_name:边界组名,默认为默认边界组
|
|
908
903
|
```Python
|
|
909
904
|
# 示例代码
|
|
910
905
|
from qtmodel import *
|
|
911
906
|
mdb.add_general_support(node_id=1, boundary_info=[True,True,True,False,False,False])
|
|
912
907
|
mdb.add_general_support(node_id="1to100", boundary_info=[True,True,True,False,False,False])
|
|
908
|
+
mdb.add_general_support(node_id="1to100", boundary_info=[1,1,1,0,0,0])
|
|
913
909
|
#Returns: 无
|
|
914
910
|
```
|
|
915
911
|
### add_elastic_support
|
|
@@ -3417,7 +3413,7 @@ odb.get_section_ids()
|
|
|
3417
3413
|
```
|
|
3418
3414
|
## 结果表格
|
|
3419
3415
|
### get_reaction
|
|
3420
|
-
|
|
3416
|
+
获取制作反力
|
|
3421
3417
|
> 参数:
|
|
3422
3418
|
> ids: 节点编号,支持整数或整数型列表支持XtoYbyN形式字符串
|
|
3423
3419
|
> envelop_type: 施工阶段包络类型 1-最大 2-最小
|
|
@@ -3433,7 +3429,7 @@ odb.get_reaction(ids=1,stage_id=1)
|
|
|
3433
3429
|
odb.get_reaction(ids=[1,2,3],stage_id=1)
|
|
3434
3430
|
odb.get_reaction(ids="1to3",stage_id=1)
|
|
3435
3431
|
odb.get_reaction(ids=1,stage_id=-1,case_name="工况名")
|
|
3436
|
-
#Returns:
|
|
3432
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3437
3433
|
```
|
|
3438
3434
|
### get_deformation
|
|
3439
3435
|
获取节点变形结果,支持单个节点和节点列表
|
|
@@ -3445,6 +3441,7 @@ odb.get_reaction(ids=1,stage_id=-1,case_name="工况名")
|
|
|
3445
3441
|
> increment_type: 1-全量 2-增量
|
|
3446
3442
|
> case_name: 运营阶段所需荷载工况名
|
|
3447
3443
|
> is_time_history: 是否为时程分析
|
|
3444
|
+
> is_local: 是否为输出局部坐标系
|
|
3448
3445
|
```Python
|
|
3449
3446
|
# 示例代码
|
|
3450
3447
|
from qtmodel import *
|
|
@@ -3452,7 +3449,7 @@ odb.get_deformation(ids=1,stage_id=1)
|
|
|
3452
3449
|
odb.get_deformation(ids=[1,2,3],stage_id=1)
|
|
3453
3450
|
odb.get_deformation(ids="1to3",stage_id=1)
|
|
3454
3451
|
odb.get_deformation(ids=1,stage_id=-1,case_name="工况名")
|
|
3455
|
-
#Returns:
|
|
3452
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3456
3453
|
```
|
|
3457
3454
|
### get_element_stress
|
|
3458
3455
|
获取单元应力,支持单个单元和单元列表
|
|
@@ -3469,7 +3466,7 @@ from qtmodel import *
|
|
|
3469
3466
|
odb.get_element_stress(ids=1,stage_id=1)
|
|
3470
3467
|
odb.get_element_stress(ids=[1,2,3],stage_id=1)
|
|
3471
3468
|
odb.get_element_stress(ids=1,stage_id=-1,case_name="工况名")
|
|
3472
|
-
#Returns:
|
|
3469
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3473
3470
|
```
|
|
3474
3471
|
### get_element_force
|
|
3475
3472
|
获取单元内力,支持单个单元和单元列表
|
|
@@ -3488,7 +3485,7 @@ from qtmodel import *
|
|
|
3488
3485
|
odb.get_element_force(ids=1,stage_id=1)
|
|
3489
3486
|
odb.get_element_force(ids=[1,2,3],stage_id=1)
|
|
3490
3487
|
odb.get_element_force(ids=1,stage_id=-1,case_name="工况名")
|
|
3491
|
-
#Returns:
|
|
3488
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3492
3489
|
```
|
|
3493
3490
|
### get_self_concurrent_reaction
|
|
3494
3491
|
获取自并发反力
|
|
@@ -3499,7 +3496,7 @@ odb.get_element_force(ids=1,stage_id=-1,case_name="工况名")
|
|
|
3499
3496
|
# 示例代码
|
|
3500
3497
|
from qtmodel import *
|
|
3501
3498
|
odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
3502
|
-
#Returns:
|
|
3499
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3503
3500
|
```
|
|
3504
3501
|
### get_all_concurrent_reaction
|
|
3505
3502
|
获取完全并发反力
|
|
@@ -3510,7 +3507,7 @@ odb.get_self_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
|
3510
3507
|
# 示例代码
|
|
3511
3508
|
from qtmodel import *
|
|
3512
3509
|
odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
3513
|
-
#Returns: 包含信息为list[dict]
|
|
3510
|
+
#Returns: 返回json字符串, 包含信息为list[dict]
|
|
3514
3511
|
```
|
|
3515
3512
|
### get_concurrent_force
|
|
3516
3513
|
获取单元并发内力
|
|
@@ -3522,7 +3519,7 @@ odb.get_all_concurrent_reaction(node_id=1,case_name="工况1_Fx最大")
|
|
|
3522
3519
|
from qtmodel import *
|
|
3523
3520
|
odb.get_concurrent_force(ids=1,case_name="工况1_Fx最大")
|
|
3524
3521
|
odb.get_concurrent_force(ids="1to19",case_name="工况1_Fx最大")
|
|
3525
|
-
#Returns: 包含信息为list[dict]
|
|
3522
|
+
#Returns: 返回json字符串, 包含信息为list[dict]
|
|
3526
3523
|
```
|
|
3527
3524
|
### get_elastic_link_force
|
|
3528
3525
|
获取弹性连接内力
|
|
@@ -3537,7 +3534,7 @@ odb.get_concurrent_force(ids="1to19",case_name="工况1_Fx最大")
|
|
|
3537
3534
|
# 示例代码
|
|
3538
3535
|
from qtmodel import *
|
|
3539
3536
|
odb.get_elastic_link_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
3540
|
-
#Returns:
|
|
3537
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3541
3538
|
```
|
|
3542
3539
|
### get_constrain_equation_force
|
|
3543
3540
|
查询约束方程内力
|
|
@@ -3552,7 +3549,7 @@ odb.get_elastic_link_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
|
3552
3549
|
# 示例代码
|
|
3553
3550
|
from qtmodel import *
|
|
3554
3551
|
odb.get_constrain_equation_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
3555
|
-
#Returns:
|
|
3552
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3556
3553
|
```
|
|
3557
3554
|
### get_cable_element_length
|
|
3558
3555
|
查询无应力索长
|
|
@@ -3564,7 +3561,7 @@ odb.get_constrain_equation_force(ids=[1,2,3], result_kind=1, stage_id=1)
|
|
|
3564
3561
|
# 示例代码
|
|
3565
3562
|
from qtmodel import *
|
|
3566
3563
|
odb.get_cable_element_length(ids=[1,2,3], stage_id=1)
|
|
3567
|
-
#Returns:
|
|
3564
|
+
#Returns: 返回json字符串, 内部为list[dict]
|
|
3568
3565
|
```
|
|
3569
3566
|
### get_period_and_vibration_results
|
|
3570
3567
|
获取自振分析角频率和振型参与质量等结果
|
|
@@ -3573,7 +3570,7 @@ odb.get_cable_element_length(ids=[1,2,3], stage_id=1)
|
|
|
3573
3570
|
# 示例代码
|
|
3574
3571
|
from qtmodel import *
|
|
3575
3572
|
odb.get_period_and_vibration_results()
|
|
3576
|
-
#Returns:list[dict]包含各模态周期和频率的列表
|
|
3573
|
+
#Returns: 返回json字符串,list[dict]包含各模态周期和频率的列表
|
|
3577
3574
|
```
|
|
3578
3575
|
### get_vibration_modal_results
|
|
3579
3576
|
获取自振分析振型向量
|
|
@@ -3583,7 +3580,7 @@ odb.get_period_and_vibration_results()
|
|
|
3583
3580
|
# 示例代码
|
|
3584
3581
|
from qtmodel import *
|
|
3585
3582
|
odb.get_vibration_modal_results(mode=1)
|
|
3586
|
-
#Returns:list[dict]包含该模态下节点位移向量列表
|
|
3583
|
+
#Returns: 返回json字符串,list[dict]包含该模态下节点位移向量列表
|
|
3587
3584
|
```
|
|
3588
3585
|
### get_buckling_eigenvalue
|
|
3589
3586
|
获取屈曲分析特征值
|
|
@@ -3592,7 +3589,7 @@ odb.get_vibration_modal_results(mode=1)
|
|
|
3592
3589
|
# 示例代码
|
|
3593
3590
|
from qtmodel import *
|
|
3594
3591
|
odb.get_buckling_eigenvalue()
|
|
3595
|
-
#Returns: list[dict]包含各模态下特征值
|
|
3592
|
+
#Returns: 返回json字符串, list[dict]包含各模态下特征值
|
|
3596
3593
|
```
|
|
3597
3594
|
### get_buckling_modal_results
|
|
3598
3595
|
获取屈曲模态向量
|
|
@@ -3602,7 +3599,7 @@ odb.get_buckling_eigenvalue()
|
|
|
3602
3599
|
# 示例代码
|
|
3603
3600
|
from qtmodel import *
|
|
3604
3601
|
odb.get_buckling_modal_results(mode=1)
|
|
3605
|
-
#Returns:list[dict]包含该模态下屈曲模态向量列表
|
|
3602
|
+
#Returns: 返回json字符串,list[dict]包含该模态下屈曲模态向量列表
|
|
3606
3603
|
```
|
|
3607
3604
|
## 绘制模型结果
|
|
3608
3605
|
### plot_reaction_result
|
|
@@ -3628,7 +3625,7 @@ odb.get_buckling_modal_results(mode=1)
|
|
|
3628
3625
|
# 示例代码
|
|
3629
3626
|
from qtmodel import *
|
|
3630
3627
|
odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3631
|
-
#Returns:
|
|
3628
|
+
#Returns: Base64字符串
|
|
3632
3629
|
```
|
|
3633
3630
|
### plot_displacement_result
|
|
3634
3631
|
保存结果图片到指定文件甲
|
|
@@ -3657,7 +3654,7 @@ odb.plot_reaction_result(file_path=r"D:\\图片\\反力图.png",component=1,case
|
|
|
3657
3654
|
# 示例代码
|
|
3658
3655
|
from qtmodel import *
|
|
3659
3656
|
odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3660
|
-
#Returns:
|
|
3657
|
+
#Returns: Base64字符串
|
|
3661
3658
|
```
|
|
3662
3659
|
### plot_beam_element_force
|
|
3663
3660
|
绘制梁单元结果图并保存到指定文件
|
|
@@ -3689,7 +3686,7 @@ odb.plot_displacement_result(file_path=r"D:\\图片\\变形图.png",component=1,
|
|
|
3689
3686
|
# 示例代码
|
|
3690
3687
|
from qtmodel import *
|
|
3691
3688
|
odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3692
|
-
#Returns:
|
|
3689
|
+
#Returns: Base64字符串
|
|
3693
3690
|
```
|
|
3694
3691
|
### plot_truss_element_force
|
|
3695
3692
|
绘制杆单元结果图并保存到指定文件
|
|
@@ -3721,7 +3718,7 @@ odb.plot_beam_element_force(file_path=r"D:\\图片\\梁内力.png",component=1,c
|
|
|
3721
3718
|
# 示例代码
|
|
3722
3719
|
from qtmodel import *
|
|
3723
3720
|
odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3724
|
-
#Returns:
|
|
3721
|
+
#Returns: Base64字符串
|
|
3725
3722
|
```
|
|
3726
3723
|
### plot_plate_element_force
|
|
3727
3724
|
绘制板单元结果图并保存到指定文件
|
|
@@ -3750,7 +3747,7 @@ odb.plot_truss_element_force(file_path=r"D:\\图片\\杆内力.png",case_name="C
|
|
|
3750
3747
|
# 示例代码
|
|
3751
3748
|
from qtmodel import *
|
|
3752
3749
|
odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3753
|
-
#Returns:
|
|
3750
|
+
#Returns: Base64字符串
|
|
3754
3751
|
```
|
|
3755
3752
|
### plot_composite_beam_force
|
|
3756
3753
|
绘制组合梁单元结果图并保存到指定文件
|
|
@@ -3780,7 +3777,7 @@ odb.plot_plate_element_force(file_path=r"D:\\图片\\板内力.png",component=1,
|
|
|
3780
3777
|
# 示例代码
|
|
3781
3778
|
from qtmodel import *
|
|
3782
3779
|
odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_type=0,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3783
|
-
#Returns:
|
|
3780
|
+
#Returns: Base64字符串
|
|
3784
3781
|
```
|
|
3785
3782
|
### plot_beam_element_stress
|
|
3786
3783
|
绘制梁单元应力结果图并保存到指定文件
|
|
@@ -3809,7 +3806,7 @@ odb.plot_composite_beam_force(file_path=r"D:\\图片\\组合梁内力.png",mat_t
|
|
|
3809
3806
|
# 示例代码
|
|
3810
3807
|
from qtmodel import *
|
|
3811
3808
|
odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_chart=False,component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3812
|
-
#Returns:
|
|
3809
|
+
#Returns: Base64字符串
|
|
3813
3810
|
```
|
|
3814
3811
|
### plot_truss_element_stress
|
|
3815
3812
|
绘制杆单元结果图并保存到指定文件
|
|
@@ -3837,7 +3834,7 @@ odb.plot_beam_element_stress(file_path=r"D:\\图片\\梁应力.png",show_line_ch
|
|
|
3837
3834
|
# 示例代码
|
|
3838
3835
|
from qtmodel import *
|
|
3839
3836
|
odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3840
|
-
#Returns:
|
|
3837
|
+
#Returns: Base64字符串
|
|
3841
3838
|
```
|
|
3842
3839
|
### plot_composite_beam_stress
|
|
3843
3840
|
绘制组合梁单元结果图并保存到指定文件
|
|
@@ -3867,7 +3864,7 @@ odb.plot_truss_element_stress(file_path=r"D:\\图片\\杆应力.png",case_name="
|
|
|
3867
3864
|
# 示例代码
|
|
3868
3865
|
from qtmodel import *
|
|
3869
3866
|
odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3870
|
-
#Returns:
|
|
3867
|
+
#Returns: Base64字符串
|
|
3871
3868
|
```
|
|
3872
3869
|
### plot_plate_element_stress
|
|
3873
3870
|
绘制板单元结果图并保存到指定文件
|
|
@@ -3894,7 +3891,7 @@ odb.plot_composite_beam_stress(file_path=r"D:\\图片\\组合梁应力.png",comp
|
|
|
3894
3891
|
# 示例代码
|
|
3895
3892
|
from qtmodel import *
|
|
3896
3893
|
odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1,case_name="CQ:成桥(合计)",stage_id=-1)
|
|
3897
|
-
#Returns:
|
|
3894
|
+
#Returns: Base64字符串
|
|
3898
3895
|
```
|
|
3899
3896
|
### plot_modal_result
|
|
3900
3897
|
绘制模态结果,可选择自振模态和屈曲模态结果
|
|
@@ -3914,7 +3911,7 @@ odb.plot_plate_element_stress(file_path=r"D:\\图片\\板应力.png",component=1
|
|
|
3914
3911
|
from qtmodel import *
|
|
3915
3912
|
odb.plot_modal_result(file_path=r"D:\\图片\\自振模态.png",mode=1)
|
|
3916
3913
|
odb.plot_modal_result(file_path=r"D:\\图片\\屈曲模态.png",mode=1,mode_kind=2)
|
|
3917
|
-
#Returns:
|
|
3914
|
+
#Returns: Base64字符串
|
|
3918
3915
|
```
|
|
3919
3916
|
### get_current_png
|
|
3920
3917
|
获取当前窗口Base64格式(图形)字符串
|
|
@@ -3925,3 +3922,114 @@ from qtmodel import *
|
|
|
3925
3922
|
odb.get_current_png()
|
|
3926
3923
|
#Returns: Base64格式(图形)字符串
|
|
3927
3924
|
```
|
|
3925
|
+
## 视图控制
|
|
3926
|
+
### display_node_id
|
|
3927
|
+
设置节点号显示
|
|
3928
|
+
> 参数:
|
|
3929
|
+
> show_id:是否打开节点号显示
|
|
3930
|
+
```Python
|
|
3931
|
+
# 示例代码
|
|
3932
|
+
from qtmodel import *
|
|
3933
|
+
odb.display_node_id()
|
|
3934
|
+
odb.display_node_id(False)
|
|
3935
|
+
#Returns: 无
|
|
3936
|
+
```
|
|
3937
|
+
### display_element_id
|
|
3938
|
+
设置单元号显示
|
|
3939
|
+
> 参数:
|
|
3940
|
+
> show_id:是否打开单元号显示
|
|
3941
|
+
```Python
|
|
3942
|
+
# 示例代码
|
|
3943
|
+
from qtmodel import *
|
|
3944
|
+
odb.display_element_id()
|
|
3945
|
+
odb.display_element_id(False)
|
|
3946
|
+
#Returns: 无
|
|
3947
|
+
```
|
|
3948
|
+
### set_view_camera
|
|
3949
|
+
更改三维显示相机设置
|
|
3950
|
+
> 参数:
|
|
3951
|
+
> camera_point: 相机坐标点
|
|
3952
|
+
> focus_point: 相机焦点
|
|
3953
|
+
> camera_rotate:相机绕XYZ旋转角度
|
|
3954
|
+
> scale: 缩放系数
|
|
3955
|
+
```Python
|
|
3956
|
+
# 示例代码
|
|
3957
|
+
from qtmodel import *
|
|
3958
|
+
odb.set_view_camera(camera_point=(-100,-100,100),focus_point=(0,0,0))
|
|
3959
|
+
#Returns: 无
|
|
3960
|
+
```
|
|
3961
|
+
### set_view_direction
|
|
3962
|
+
更改三维显示默认视图
|
|
3963
|
+
> 参数:
|
|
3964
|
+
> direction: 1-空间视图1 2-前视图 3-三维视图2 4-左视图 5-顶视图 6-右视图 7-空间视图3 8-后视图 9-空间视图4 10-底视图
|
|
3965
|
+
> horizontal_degree:水平向旋转角度
|
|
3966
|
+
> vertical_degree:竖向旋转角度
|
|
3967
|
+
> scale:缩放系数
|
|
3968
|
+
```Python
|
|
3969
|
+
# 示例代码
|
|
3970
|
+
from qtmodel import *
|
|
3971
|
+
odb.set_view_direction(direction=1,scale=1.2)
|
|
3972
|
+
#Returns: 无
|
|
3973
|
+
```
|
|
3974
|
+
### activate_structure
|
|
3975
|
+
激活指定阶段和单元,默认激活所有
|
|
3976
|
+
> 参数:
|
|
3977
|
+
> node_ids: 节点集合支持XtoYbyN形式字符串
|
|
3978
|
+
> element_ids: 单元集合支持XtoYbyN形式字符串
|
|
3979
|
+
```Python
|
|
3980
|
+
# 示例代码
|
|
3981
|
+
from qtmodel import *
|
|
3982
|
+
odb.activate_structure(node_ids=[1,2,3],element_ids=[1,2,3])
|
|
3983
|
+
#Returns: 无
|
|
3984
|
+
```
|
|
3985
|
+
### set_unit
|
|
3986
|
+
修改视图显示时单位制,不影响建模
|
|
3987
|
+
> 参数:
|
|
3988
|
+
> unit_force: 支持 N KN TONF KIPS LBF
|
|
3989
|
+
> unit_length: 支持 M MM CM IN FT
|
|
3990
|
+
```Python
|
|
3991
|
+
# 示例代码
|
|
3992
|
+
from qtmodel import *
|
|
3993
|
+
odb.set_unit(unit_force="N",unit_length="M")
|
|
3994
|
+
#Returns: 无
|
|
3995
|
+
```
|
|
3996
|
+
### remove_display
|
|
3997
|
+
删除当前所有显示,包括边界荷载钢束等全部显示
|
|
3998
|
+
> 参数:
|
|
3999
|
+
```Python
|
|
4000
|
+
# 示例代码
|
|
4001
|
+
from qtmodel import *
|
|
4002
|
+
odb.remove_display()
|
|
4003
|
+
#Returns: 无
|
|
4004
|
+
```
|
|
4005
|
+
### save_png
|
|
4006
|
+
保存当前模型窗口图形信息
|
|
4007
|
+
> 参数:
|
|
4008
|
+
> file_path: 文件全路径
|
|
4009
|
+
```Python
|
|
4010
|
+
# 示例代码
|
|
4011
|
+
from qtmodel import *
|
|
4012
|
+
odb.save_png(file_path=r"D:\\QT\\aa.png")
|
|
4013
|
+
#Returns: 无
|
|
4014
|
+
```
|
|
4015
|
+
### set_render
|
|
4016
|
+
消隐设置开关
|
|
4017
|
+
> 参数:
|
|
4018
|
+
> flag: 默认设置打开消隐
|
|
4019
|
+
```Python
|
|
4020
|
+
# 示例代码
|
|
4021
|
+
from qtmodel import *
|
|
4022
|
+
odb.set_render(flag=True)
|
|
4023
|
+
#Returns: 无
|
|
4024
|
+
```
|
|
4025
|
+
### change_construct_stage
|
|
4026
|
+
消隐设置开关
|
|
4027
|
+
> 参数:
|
|
4028
|
+
> stage: 施工阶段名称或施工阶段号 0-基本
|
|
4029
|
+
```Python
|
|
4030
|
+
# 示例代码
|
|
4031
|
+
from qtmodel import *
|
|
4032
|
+
odb.change_construct_stage(0)
|
|
4033
|
+
odb.change_construct_stage(stage=1)
|
|
4034
|
+
#Returns: 无
|
|
4035
|
+
```
|