qtmodel 0.9.6__tar.gz → 0.9.7__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.9.6
4
- Summary: python modeling for qt 2025-07-11
3
+ Version: 0.9.7
4
+ Summary: python modeling for qt 2025-07-14
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.9.6 - 2025-07-11
15
+ > 最新版本 V0.9.7 - 2025-07-14
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3071,6 +3071,8 @@ Returns: 无
3071
3071
  > _时间 0-开始 1-结束
3072
3072
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3073
3073
  > index:施工阶段插入位置,从0开始,默认添加到最后
3074
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3075
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3074
3076
  ```Python
3075
3077
  # 示例代码
3076
3078
  from qtmodel import *
@@ -3096,6 +3098,8 @@ Returns: 无
3096
3098
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3097
3099
  > _时间 0-开始 1-结束
3098
3100
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3101
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3102
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3099
3103
  ```Python
3100
3104
  # 示例代码
3101
3105
  from qtmodel import *
@@ -3200,6 +3204,23 @@ from qtmodel import *
3200
3204
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3201
3205
  ```
3202
3206
  Returns:无
3207
+ ### merge_all_stages
3208
+ 合并当前所有施工阶段
3209
+ > 参数:
3210
+ > name: 阶段名称
3211
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3212
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3213
+ > age: 加载龄期,默认为5
3214
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3215
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3216
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3217
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3218
+ ```Python
3219
+ # 示例代码
3220
+ from qtmodel import *
3221
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3222
+ ```
3223
+ Returns: 无
3203
3224
  ## 荷载组合操作
3204
3225
  ### add_load_combine
3205
3226
  添加荷载组合
@@ -1,4 +1,4 @@
1
- > 最新版本 V0.9.6 - 2025-07-11
1
+ > 最新版本 V0.9.7 - 2025-07-14
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 新增更新结构组接口
4
4
  # 建模操作
@@ -3057,6 +3057,8 @@ Returns: 无
3057
3057
  > _时间 0-开始 1-结束
3058
3058
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3059
3059
  > index:施工阶段插入位置,从0开始,默认添加到最后
3060
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3061
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3060
3062
  ```Python
3061
3063
  # 示例代码
3062
3064
  from qtmodel import *
@@ -3082,6 +3084,8 @@ Returns: 无
3082
3084
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3083
3085
  > _时间 0-开始 1-结束
3084
3086
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3087
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3088
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3085
3089
  ```Python
3086
3090
  # 示例代码
3087
3091
  from qtmodel import *
@@ -3186,6 +3190,23 @@ from qtmodel import *
3186
3190
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3187
3191
  ```
3188
3192
  Returns:无
3193
+ ### merge_all_stages
3194
+ 合并当前所有施工阶段
3195
+ > 参数:
3196
+ > name: 阶段名称
3197
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3198
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3199
+ > age: 加载龄期,默认为5
3200
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3201
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3202
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3203
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3204
+ ```Python
3205
+ # 示例代码
3206
+ from qtmodel import *
3207
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3208
+ ```
3209
+ Returns: 无
3189
3210
  ## 荷载组合操作
3190
3211
  ### add_load_combine
3191
3212
  添加荷载组合
@@ -242,7 +242,7 @@ class Mdb:
242
242
  """
243
243
  try:
244
244
  qt_model.UpdateProjectSetting(project=project, company=company, designer=designer, reviewer=reviewer,
245
- dateTime=date_time, gravity=gravity, temperature=temperature, description=description)
245
+ dateTime=date_time, gravity=gravity, temperature=temperature, description=description)
246
246
  except Exception as ex:
247
247
  raise Exception(ex)
248
248
 
@@ -4864,7 +4864,9 @@ class Mdb:
4864
4864
  delete_boundaries: list[str] = None,
4865
4865
  active_loads: list[tuple[str, int]] = None,
4866
4866
  delete_loads: list[tuple[str, int]] = None,
4867
- temp_loads: list[str] = None, index=-1):
4867
+ temp_loads: list[str] = None, index=-1,
4868
+ tendon_cancel_loss: float = 0,
4869
+ constraint_cancel_type: int = 2):
4868
4870
  """
4869
4871
  添加施工阶段信息
4870
4872
  Args:
@@ -4883,6 +4885,8 @@ class Mdb:
4883
4885
  _时间 0-开始 1-结束
4884
4886
  temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
4885
4887
  index:施工阶段插入位置,从0开始,默认添加到最后
4888
+ tendon_cancel_loss:钝化预应力单元后预应力损失
4889
+ constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
4886
4890
  Example:
4887
4891
  mdb.add_construction_stage(name="施工阶段1",duration=5,active_structures=[("结构组1",5,1,1),("结构组2",5,1,1)],
4888
4892
  active_boundaries=[("默认边界组",1)],active_loads=[("默认荷载组1",0)])
@@ -4891,7 +4895,8 @@ class Mdb:
4891
4895
  try:
4892
4896
  qt_model.AddConstructionStage(name=name, duration=duration, activeStructures=active_structures, inActiveStructures=delete_structures,
4893
4897
  activeBoundaries=active_boundaries, inActiveBoundaries=delete_boundaries, activeLoads=active_loads,
4894
- inActiveLoads=delete_loads, tempLoads=temp_loads, id=index)
4898
+ inActiveLoads=delete_loads, tempLoads=temp_loads, id=index,
4899
+ tendonCancelLoss=tendon_cancel_loss, constrainCancelType=constraint_cancel_type)
4895
4900
  except Exception as ex:
4896
4901
  raise Exception(f"添加施工阶段:{name}错误,{ex}")
4897
4902
 
@@ -4903,7 +4908,9 @@ class Mdb:
4903
4908
  delete_boundaries: list[str] = None,
4904
4909
  active_loads: list[tuple[str, int]] = None,
4905
4910
  delete_loads: list[tuple[str, int]] = None,
4906
- temp_loads: list[str] = None):
4911
+ temp_loads: list[str] = None,
4912
+ tendon_cancel_loss: float = 0,
4913
+ constraint_cancel_type: int = 2):
4907
4914
  """
4908
4915
  添加施工阶段信息
4909
4916
  Args:
@@ -4922,6 +4929,8 @@ class Mdb:
4922
4929
  delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
4923
4930
  _时间 0-开始 1-结束
4924
4931
  temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
4932
+ tendon_cancel_loss:钝化预应力单元后预应力损失
4933
+ constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
4925
4934
  Example:
4926
4935
  mdb.update_construction_stage(name="施工阶段1",duration=5,active_structures=[("结构组1",5,1,1),("结构组2",5,1,1)],
4927
4936
  active_boundaries=[("默认边界组",1)],active_loads=[("默认荷载组1",0)])
@@ -4931,7 +4940,8 @@ class Mdb:
4931
4940
  qt_model.UpdateConstructionStage(name=name, newName=new_name, duration=duration, activeStructures=active_structures,
4932
4941
  inActiveStructures=delete_structures,
4933
4942
  activeBoundaries=active_boundaries, inActiveBoundaries=delete_boundaries, activeLoads=active_loads,
4934
- inActiveLoads=delete_loads, tempLoads=temp_loads)
4943
+ inActiveLoads=delete_loads, tempLoads=temp_loads,
4944
+ tendonCancelLoss=tendon_cancel_loss, constrainCancelType=constraint_cancel_type)
4935
4945
  except Exception as ex:
4936
4946
  raise Exception(f"更新施工阶段:{name}错误,{ex}")
4937
4947
 
@@ -5078,6 +5088,39 @@ class Mdb:
5078
5088
  except Exception as ex:
5079
5089
  raise Exception(f"添加单元到施工阶段联合截面失败:{name}错误,{ex}")
5080
5090
 
5091
+ @staticmethod
5092
+ def merge_all_stages(name: str = "一次成桥", setting_type: int = 1, weight_type: int = 1, age: float = 5,
5093
+ boundary_type: int = 0, load_type: int = 0, tendon_cancel_loss: float = 0,
5094
+ constraint_cancel_type: int = 1) -> None:
5095
+ """
5096
+ 合并当前所有施工阶段
5097
+ Args:
5098
+ name: 阶段名称
5099
+ setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
5100
+ weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
5101
+ age: 加载龄期,默认为5
5102
+ boundary_type: 边界类型 0-变形前 1-变形后,默认为0
5103
+ load_type: 荷载类型 0-开始 1-结束,默认为0
5104
+ tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
5105
+ constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
5106
+ Example:
5107
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
5108
+ Returns: 无
5109
+ """
5110
+ try:
5111
+ qt_model.MergeAllStages(
5112
+ name=name,
5113
+ settingType=setting_type,
5114
+ weightType=weight_type,
5115
+ age=age,
5116
+ boundaryType=boundary_type,
5117
+ loadType=load_type,
5118
+ tendonCancelLoss=tendon_cancel_loss,
5119
+ constraintCancelType=constraint_cancel_type
5120
+ )
5121
+ except Exception as ex:
5122
+ raise Exception(ex)
5123
+
5081
5124
  # endregion
5082
5125
 
5083
5126
  # region 荷载组合操作
@@ -189,7 +189,7 @@ class Odb:
189
189
  # region 结果表格
190
190
  @staticmethod
191
191
  def get_reaction(ids, envelop_type=1, stage_id: int = 1, result_kind: int = 1,
192
- increment_type: int = 1, case_name="", is_time_history: bool = True):
192
+ increment_type: int = 1, case_name="", is_time_history: bool = False):
193
193
  """
194
194
  获取节点反力
195
195
  Args:
@@ -221,7 +221,7 @@ class Odb:
221
221
  @staticmethod
222
222
  def get_deformation(ids, envelop_type=1,
223
223
  stage_id: int = 1, result_kind: int = 1, increment_type: int = 1,
224
- case_name="", is_time_history: bool = True):
224
+ case_name="", is_time_history: bool = False):
225
225
  """
226
226
  获取节点变形结果,支持单个节点和节点列表
227
227
  Args:
@@ -619,7 +619,7 @@ class Odb:
619
619
  envelop_type: int = 1, component: int = 1,
620
620
  show_number: bool = True, text_rotation=0, max_min_kind: int = -1,
621
621
  show_legend: bool = True, digital_count=3, text_exponential: bool = True, arrow_scale: float = 1,
622
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
622
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
623
623
  """
624
624
  保存结果图片到指定文件甲
625
625
  Args:
@@ -659,7 +659,7 @@ class Odb:
659
659
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
660
660
  show_number: bool = True, text_rotation=0, max_min_kind: int = 1,
661
661
  show_legend: bool = True, digital_count=3, text_exponential: bool = True, show_undeformed: bool = True,
662
- is_time_history: bool = True, deform_kind: int = 1, time_kind: int = 1, time_tick: float = 1.0):
662
+ is_time_history: bool = False, deform_kind: int = 1, time_kind: int = 1, time_tick: float = 1.0):
663
663
  """
664
664
  保存结果图片到指定文件甲
665
665
  Args:
@@ -706,7 +706,7 @@ class Odb:
706
706
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
707
707
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
708
708
  show_undeformed: bool = False, position: int = 1,
709
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
709
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
710
710
  """
711
711
  绘制梁单元结果图并保存到指定文件
712
712
  Args:
@@ -758,7 +758,7 @@ class Odb:
758
758
  show_number: bool = False, text_rotation: int = 0, max_min_kind: int = 1,
759
759
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
760
760
  show_undeformed: bool = False, position: int = 1,
761
- is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
761
+ is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
762
762
  """
763
763
  绘制杆单元结果图并保存到指定文件
764
764
  Args:
@@ -808,7 +808,7 @@ class Odb:
808
808
  show_number: bool = False, text_rotate: int = 0, max_min_kind: int = 1,
809
809
  show_deformed: bool = True, deformed_scale: float = 1.0, deformed_actual: bool = False,
810
810
  show_legend: bool = True, digital_count: int = 3, text_exponential: bool = True,
811
- show_undeformed: bool = False, is_time_history: bool = True, time_kind: int = 1, time_tick: float = 1.0):
811
+ show_undeformed: bool = False, is_time_history: bool = False, time_kind: int = 1, time_tick: float = 1.0):
812
812
  """
813
813
  绘制板单元结果图并保存到指定文件
814
814
  Args:
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.9.6
4
- Summary: python modeling for qt 2025-07-11
3
+ Version: 0.9.7
4
+ Summary: python modeling for qt 2025-07-14
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.9.6 - 2025-07-11
15
+ > 最新版本 V0.9.7 - 2025-07-14
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3071,6 +3071,8 @@ Returns: 无
3071
3071
  > _时间 0-开始 1-结束
3072
3072
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3073
3073
  > index:施工阶段插入位置,从0开始,默认添加到最后
3074
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3075
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3074
3076
  ```Python
3075
3077
  # 示例代码
3076
3078
  from qtmodel import *
@@ -3096,6 +3098,8 @@ Returns: 无
3096
3098
  > delete_loads:钝化荷载组信息 [(荷载组1,时间),...]
3097
3099
  > _时间 0-开始 1-结束
3098
3100
  > temp_loads:临时荷载信息 [荷载组1,荷载组2,..]
3101
+ > tendon_cancel_loss:钝化预应力单元后预应力损失
3102
+ > constraint_cancel_type:钝化梁端约束释放计算方法1-变形法 2-无应力法
3099
3103
  ```Python
3100
3104
  # 示例代码
3101
3105
  from qtmodel import *
@@ -3200,6 +3204,23 @@ from qtmodel import *
3200
3204
  mdb.add_element_to_connection_stage([1,2,3,4],"联合阶段")
3201
3205
  ```
3202
3206
  Returns:无
3207
+ ### merge_all_stages
3208
+ 合并当前所有施工阶段
3209
+ > 参数:
3210
+ > name: 阶段名称
3211
+ > setting_type: 安装方式 1-变形法安装 2-无应力安装,默认为1
3212
+ > weight_type: 自重类型 -1-其他结构考虑 0-不计自重 1-本阶段,默认为1
3213
+ > age: 加载龄期,默认为5
3214
+ > boundary_type: 边界类型 0-变形前 1-变形后,默认为0
3215
+ > load_type: 荷载类型 0-开始 1-结束,默认为0
3216
+ > tendon_cancel_loss: 钝化预应力单元后预应力损失率,默认为0
3217
+ > constraint_cancel_type: 钝化梁端约束释放计算方法 1-变形法 2-无应力法,默认为1
3218
+ ```Python
3219
+ # 示例代码
3220
+ from qtmodel import *
3221
+ mdb.merge_all_stages(name="合并阶段", setting_type=1, weight_type=1, age=5)
3222
+ ```
3223
+ Returns: 无
3203
3224
  ## 荷载组合操作
3204
3225
  ### add_load_combine
3205
3226
  添加荷载组合
@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
11
11
 
12
12
  setup(
13
13
  name="qtmodel",
14
- version=f"V0.9.6",
14
+ version=f"V0.9.7",
15
15
  author="dqy-zhj",
16
16
  author_email="1105417715@qq.com",
17
17
  description=f"python modeling for qt {datetime.now().date()} ",
File without changes
File without changes
File without changes