qtmodel 0.7.2__tar.gz → 0.8.1__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.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.7.2
4
- Summary: python modeling for qt 2025-06-27
3
+ Version: 0.8.1
4
+ Summary: python modeling for qt 2025-06-30
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.7.2 - 2025-06-27
15
+ > 最新版本 V0.8.1 - 2025-06-30
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3179,38 +3179,24 @@ Returns:无
3179
3179
  ### add_load_combine
3180
3180
  添加荷载组合
3181
3181
  > 参数:
3182
+ > index:荷载组合编号,默认自动识别为最大编号加1
3182
3183
  > name:荷载组合名
3183
3184
  > combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
3184
3185
  > describe:描述
3185
3186
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3186
3187
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3187
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
3188
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
3188
3189
  ```Python
3189
3190
  # 示例代码
3190
3191
  from qtmodel import *
3191
3192
  mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3192
3193
  ```
3193
3194
  Returns: 无
3194
- ### update_load_combine
3195
- 更新荷载组合
3196
- > 参数:
3197
- > name:荷载组合名
3198
- > new_name:新荷载组合名,默认不修改
3199
- > combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
3200
- > describe:描述
3201
- > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3202
- > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3203
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况
3204
- ```Python
3205
- # 示例代码
3206
- from qtmodel import *
3207
- mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3208
- ```
3209
- Returns: 无
3210
3195
  ### remove_load_combine
3211
3196
  删除荷载组合
3212
3197
  > 参数:
3213
- > name:指定删除荷载组合名,默认时则删除所有荷载组合
3198
+ > index: 默认时则按照name删除荷载组合
3199
+ > name:指定删除荷载组合名
3214
3200
  ```Python
3215
3201
  # 示例代码
3216
3202
  from qtmodel import *
@@ -1,4 +1,4 @@
1
- > 最新版本 V0.7.2 - 2025-06-27
1
+ > 最新版本 V0.8.1 - 2025-06-30
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 新增更新结构组接口
4
4
  # 建模操作
@@ -3165,38 +3165,24 @@ Returns:无
3165
3165
  ### add_load_combine
3166
3166
  添加荷载组合
3167
3167
  > 参数:
3168
+ > index:荷载组合编号,默认自动识别为最大编号加1
3168
3169
  > name:荷载组合名
3169
3170
  > combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
3170
3171
  > describe:描述
3171
3172
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3172
3173
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3173
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
3174
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
3174
3175
  ```Python
3175
3176
  # 示例代码
3176
3177
  from qtmodel import *
3177
3178
  mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3178
3179
  ```
3179
3180
  Returns: 无
3180
- ### update_load_combine
3181
- 更新荷载组合
3182
- > 参数:
3183
- > name:荷载组合名
3184
- > new_name:新荷载组合名,默认不修改
3185
- > combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
3186
- > describe:描述
3187
- > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3188
- > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3189
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况
3190
- ```Python
3191
- # 示例代码
3192
- from qtmodel import *
3193
- mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3194
- ```
3195
- Returns: 无
3196
3181
  ### remove_load_combine
3197
3182
  删除荷载组合
3198
3183
  > 参数:
3199
- > name:指定删除荷载组合名,默认时则删除所有荷载组合
3184
+ > index: 默认时则按照name删除荷载组合
3185
+ > name:指定删除荷载组合名
3200
3186
  ```Python
3201
3187
  # 示例代码
3202
3188
  from qtmodel import *
@@ -1487,8 +1487,8 @@ class Mdb:
1487
1487
  charm_right: list[str] = None,
1488
1488
  box_num: int = 3,
1489
1489
  box_height: float = 2,
1490
- box_other_info:list[dict]=None,
1491
- box_other_right:list[dict]=None,
1490
+ box_other_info:dict[str, list[float]]=None,
1491
+ box_other_right:dict[str, list[float]]=None,
1492
1492
  mat_combine: list[float] = None,
1493
1493
  rib_info: dict[str, list[float]] = None,
1494
1494
  rib_place: list[tuple[int, int, float, str, int, str]] = None,
@@ -1547,7 +1547,8 @@ class Mdb:
1547
1547
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info, charmInfo=charm_info,
1548
1548
  symmetry=symmetry, boxNum=box_num, boxHeight=box_height, charmRight=charm_right, secRight=sec_right,
1549
1549
  biasType=bias_type, centerType=center_type, shearConsider=shear_consider,
1550
- biasX=bias_x, biasY=bias_y, secProperty=sec_property)
1550
+ biasX=bias_x, biasY=bias_y, secProperty=sec_property,
1551
+ boxOtherInfo=box_other_info,boxOtherRight=box_other_right)
1551
1552
  elif sec_type == "工字钢梁" or sec_type == "箱型钢梁":
1552
1553
  qt_model.AddSection(id=index, name=name, secType=sec_type, secInfo=sec_info,
1553
1554
  ribInfo=rib_info, ribPlace=rib_place, biasType=bias_type, centerType=center_type,
@@ -5035,16 +5036,17 @@ class Mdb:
5035
5036
 
5036
5037
  # region 荷载组合操作
5037
5038
  @staticmethod
5038
- def add_load_combine(name: str = "", combine_type: int = 1, describe: str = "", combine_info: list[tuple[str, str, float]] = None):
5039
+ def add_load_combine(index:int = -1, name: str = "", combine_type: int = 1, describe: str = "", combine_info: list[tuple[str, str, float]] = None):
5039
5040
  """
5040
5041
  添加荷载组合
5041
5042
  Args:
5043
+ index:荷载组合编号,默认自动识别为最大编号加1
5042
5044
  name:荷载组合名
5043
5045
  combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
5044
5046
  describe:描述
5045
5047
  combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
5046
5048
  _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
5047
- _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
5049
+ _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
5048
5050
  Example:
5049
5051
  mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
5050
5052
  Returns: 无
@@ -5052,49 +5054,23 @@ class Mdb:
5052
5054
  try:
5053
5055
  if combine_info is None:
5054
5056
  combine_info = []
5055
- qt_model.AddLoadCombine(name=name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
5057
+ qt_model.AddLoadCombine(index=index, name=name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
5056
5058
  except Exception as ex:
5057
5059
  raise Exception(ex)
5058
5060
 
5059
5061
  @staticmethod
5060
- def update_load_combine(name: str = "", new_name: str = "", combine_type: int = 1, describe: str = "",
5061
- combine_info: list[tuple[str, str, float]] = None):
5062
- """
5063
- 更新荷载组合
5064
- Args:
5065
- name:荷载组合名
5066
- new_name:新荷载组合名,默认不修改
5067
- combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
5068
- describe:描述
5069
- combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
5070
- _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
5071
- _"MV"-移动荷载工况 "SM"-沉降荷载工况
5072
- Example:
5073
- mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
5074
- Returns: 无
5075
- """
5076
- try:
5077
- if combine_info is None:
5078
- combine_info = []
5079
- qt_model.UpdateLoadCombine(name=name, newName=new_name, loadCombineType=combine_type, describe=describe, caseAndFactor=combine_info)
5080
- except Exception as ex:
5081
- raise Exception(ex)
5082
-
5083
- @staticmethod
5084
- def remove_load_combine(name: str = ""):
5062
+ def remove_load_combine(index :int = -1,name: str = ""):
5085
5063
  """
5086
5064
  删除荷载组合
5087
5065
  Args:
5088
- name:指定删除荷载组合名,默认时则删除所有荷载组合
5066
+ index: 默认时则按照name删除荷载组合
5067
+ name:指定删除荷载组合名
5089
5068
  Example:
5090
5069
  mdb.remove_load_combine(name="荷载组合1")
5091
5070
  Returns: 无
5092
5071
  """
5093
5072
  try:
5094
- if name != "":
5095
- qt_model.DeleteLoadCombine(name=name)
5096
- else:
5097
- qt_model.DeleteAllLoadCombine()
5073
+ qt_model.RemoveLoadCombine(index=index,name=name)
5098
5074
  except Exception as ex:
5099
5075
  raise Exception(ex)
5100
5076
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.7.2
4
- Summary: python modeling for qt 2025-06-27
3
+ Version: 0.8.1
4
+ Summary: python modeling for qt 2025-06-30
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.7.2 - 2025-06-27
15
+ > 最新版本 V0.8.1 - 2025-06-30
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 新增更新结构组接口
18
18
  # 建模操作
@@ -3179,38 +3179,24 @@ Returns:无
3179
3179
  ### add_load_combine
3180
3180
  添加荷载组合
3181
3181
  > 参数:
3182
+ > index:荷载组合编号,默认自动识别为最大编号加1
3182
3183
  > name:荷载组合名
3183
3184
  > combine_type:荷载组合类型 1-叠加 2-判别 3-包络 4-SRss 5-AbsSum
3184
3185
  > describe:描述
3185
3186
  > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3186
3187
  > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3187
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况
3188
+ > _"MV"-移动荷载工况 "SM"-沉降荷载工况_ "RS"-反应谱工况 "TH"-时程分析
3188
3189
  ```Python
3189
3190
  # 示例代码
3190
3191
  from qtmodel import *
3191
3192
  mdb.add_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3192
3193
  ```
3193
3194
  Returns: 无
3194
- ### update_load_combine
3195
- 更新荷载组合
3196
- > 参数:
3197
- > name:荷载组合名
3198
- > new_name:新荷载组合名,默认不修改
3199
- > combine_type:荷载组合类型 (1-叠加 2-判别 3-包络)
3200
- > describe:描述
3201
- > combine_info:荷载组合信息 [(荷载工况类型,工况名,系数)...] 工况类型如下
3202
- > _"ST"-静力荷载工况 "CS"-施工阶段荷载工况 "CB"-荷载组合
3203
- > _"MV"-移动荷载工况 "SM"-沉降荷载工况
3204
- ```Python
3205
- # 示例代码
3206
- from qtmodel import *
3207
- mdb.update_load_combine(name="荷载组合1",combine_type=1,describe="无",combine_info=[("CS","合计值",1),("CS","恒载",1)])
3208
- ```
3209
- Returns: 无
3210
3195
  ### remove_load_combine
3211
3196
  删除荷载组合
3212
3197
  > 参数:
3213
- > name:指定删除荷载组合名,默认时则删除所有荷载组合
3198
+ > index: 默认时则按照name删除荷载组合
3199
+ > name:指定删除荷载组合名
3214
3200
  ```Python
3215
3201
  # 示例代码
3216
3202
  from qtmodel import *
@@ -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.7.2",
14
+ version=f"V0.8.1",
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
File without changes