qtmodel 0.5.33__tar.gz → 0.5.35__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.5.33
4
- Summary: python modeling for qt 24/10/31
3
+ Version: 0.5.35
4
+ Summary: python modeling for qt 24/11/1
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.33 - 2024.10.31
15
+ # 最新版本 V0.5.35 - 2024.11.1
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 修改帮助文档
18
18
  ## 项目管理
@@ -716,6 +716,29 @@ from qtmodel import *
716
716
  mdb.remove_boundary(remove_id = 1, bd_type = 1,group="边界组1")
717
717
  ```
718
718
  Returns: 无
719
+ ### add_general_elastic_support_property
720
+ 添加一般弹性支承特性
721
+ > 参数:
722
+ > name:一般弹性支承特性名称
723
+ > data_matrix:一般弹性支承刚度矩阵(数据需按列输入至列表,共计21个参数)
724
+ ```Python
725
+ # 示例代码
726
+ from qtmodel import *
727
+ mdb.add_general_elastic_support_property(name = "特性1", data_matrix=[i for i in range(1,22)])
728
+ ```
729
+ Returns: 无
730
+ ### add_general_elastic_support
731
+ 添加一般弹性支承特性
732
+ > 参数:
733
+ > node_id:节点号
734
+ > property_name:一般弹性支承特性名
735
+ > group_name:一般弹性支承边界组名
736
+ ```Python
737
+ # 示例代码
738
+ from qtmodel import *
739
+ mdb.add_general_elastic_support(node_id = 1, property_name = "特性1",group_name="边界组1")
740
+ ```
741
+ Returns: 无
719
742
  ### add_general_support
720
743
  添加一般支承
721
744
  > 参数:
@@ -2737,5 +2760,6 @@ odb.get_deviation_load(case_name="荷载工况1")
2737
2760
  ```
2738
2761
  Returns: json字符串,包含信息为list[dict]
2739
2762
 
2763
+ Process finished with exit code 0
2740
2764
 
2741
2765
 
@@ -1,4 +1,4 @@
1
- # 最新版本 V0.5.33 - 2024.10.31
1
+ # 最新版本 V0.5.35 - 2024.11.1
2
2
  > pip install --upgrade qtmodel -i https://pypi.org/simple
3
3
  - 修改帮助文档
4
4
  ## 项目管理
@@ -702,6 +702,29 @@ from qtmodel import *
702
702
  mdb.remove_boundary(remove_id = 1, bd_type = 1,group="边界组1")
703
703
  ```
704
704
  Returns: 无
705
+ ### add_general_elastic_support_property
706
+ 添加一般弹性支承特性
707
+ > 参数:
708
+ > name:一般弹性支承特性名称
709
+ > data_matrix:一般弹性支承刚度矩阵(数据需按列输入至列表,共计21个参数)
710
+ ```Python
711
+ # 示例代码
712
+ from qtmodel import *
713
+ mdb.add_general_elastic_support_property(name = "特性1", data_matrix=[i for i in range(1,22)])
714
+ ```
715
+ Returns: 无
716
+ ### add_general_elastic_support
717
+ 添加一般弹性支承特性
718
+ > 参数:
719
+ > node_id:节点号
720
+ > property_name:一般弹性支承特性名
721
+ > group_name:一般弹性支承边界组名
722
+ ```Python
723
+ # 示例代码
724
+ from qtmodel import *
725
+ mdb.add_general_elastic_support(node_id = 1, property_name = "特性1",group_name="边界组1")
726
+ ```
727
+ Returns: 无
705
728
  ### add_general_support
706
729
  添加一般支承
707
730
  > 参数:
@@ -2723,3 +2746,4 @@ odb.get_deviation_load(case_name="荷载工况1")
2723
2746
  ```
2724
2747
  Returns: json字符串,包含信息为list[dict]
2725
2748
 
2749
+ Process finished with exit code 0
@@ -1184,6 +1184,41 @@ class Mdb:
1184
1184
  except Exception as ex:
1185
1185
  raise Exception(ex)
1186
1186
 
1187
+ @staticmethod
1188
+ def add_general_elastic_support_property(name: str = "", data_matrix: list[float] = None):
1189
+ """
1190
+ 添加一般弹性支承特性
1191
+ Args:
1192
+ name:一般弹性支承特性名称
1193
+ data_matrix:一般弹性支承刚度矩阵(数据需按列输入至列表,共计21个参数)
1194
+ Example:
1195
+ mdb.add_general_elastic_support_property(name = "特性1", data_matrix=[i for i in range(1,22)])
1196
+ Returns: 无
1197
+ """
1198
+ if data_matrix is None or len(data_matrix) is not 21:
1199
+ raise Exception("添加一般弹性支承失败,矩阵参数有误(数据需按列输入至列表)")
1200
+ try:
1201
+ qt_model.AddGeneralElasticSupportProperty(name=name, dataMatrix=data_matrix)
1202
+ except Exception as ex:
1203
+ raise Exception(ex)
1204
+
1205
+ @staticmethod
1206
+ def add_general_elastic_support(node_id: (Union[int, List[int]]) = 1, property_name: str = "", group_name: str = "默认边界组"):
1207
+ """
1208
+ 添加一般弹性支承特性
1209
+ Args:
1210
+ node_id:节点号
1211
+ property_name:一般弹性支承特性名
1212
+ group_name:一般弹性支承边界组名
1213
+ Example:
1214
+ mdb.add_general_elastic_support(node_id = 1, property_name = "特性1",group_name="边界组1")
1215
+ Returns: 无
1216
+ """
1217
+ try:
1218
+ qt_model.AddGeneralElasticSupport(nodeIds=node_id, propertyName=property_name, groupName=group_name)
1219
+ except Exception as ex:
1220
+ raise Exception(ex)
1221
+
1187
1222
  @staticmethod
1188
1223
  def add_general_support(node_id: (Union[int, List[int]]) = 1, boundary_info: list[bool] = None, group_name: str = "默认边界组"):
1189
1224
  """
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qtmodel
3
- Version: 0.5.33
4
- Summary: python modeling for qt 24/10/31
3
+ Version: 0.5.35
4
+ Summary: python modeling for qt 24/11/1
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.33 - 2024.10.31
15
+ # 最新版本 V0.5.35 - 2024.11.1
16
16
  > pip install --upgrade qtmodel -i https://pypi.org/simple
17
17
  - 修改帮助文档
18
18
  ## 项目管理
@@ -716,6 +716,29 @@ from qtmodel import *
716
716
  mdb.remove_boundary(remove_id = 1, bd_type = 1,group="边界组1")
717
717
  ```
718
718
  Returns: 无
719
+ ### add_general_elastic_support_property
720
+ 添加一般弹性支承特性
721
+ > 参数:
722
+ > name:一般弹性支承特性名称
723
+ > data_matrix:一般弹性支承刚度矩阵(数据需按列输入至列表,共计21个参数)
724
+ ```Python
725
+ # 示例代码
726
+ from qtmodel import *
727
+ mdb.add_general_elastic_support_property(name = "特性1", data_matrix=[i for i in range(1,22)])
728
+ ```
729
+ Returns: 无
730
+ ### add_general_elastic_support
731
+ 添加一般弹性支承特性
732
+ > 参数:
733
+ > node_id:节点号
734
+ > property_name:一般弹性支承特性名
735
+ > group_name:一般弹性支承边界组名
736
+ ```Python
737
+ # 示例代码
738
+ from qtmodel import *
739
+ mdb.add_general_elastic_support(node_id = 1, property_name = "特性1",group_name="边界组1")
740
+ ```
741
+ Returns: 无
719
742
  ### add_general_support
720
743
  添加一般支承
721
744
  > 参数:
@@ -2737,5 +2760,6 @@ odb.get_deviation_load(case_name="荷载工况1")
2737
2760
  ```
2738
2761
  Returns: json字符串,包含信息为list[dict]
2739
2762
 
2763
+ Process finished with exit code 0
2740
2764
 
2741
2765
 
@@ -7,10 +7,10 @@ with open("README.md", "r", encoding="utf-8") as fh:
7
7
  # twine upload dist/*
8
8
  setup(
9
9
  name="qtmodel",
10
- version="0.5.33",
10
+ version="0.5.35",
11
11
  author="dqy-zhj",
12
12
  author_email="1105417715@qq.com",
13
- description="python modeling for qt 24/10/31 ",
13
+ description="python modeling for qt 24/11/1 ",
14
14
  long_description=long_description, # 使用读取的 README.md 文件内容
15
15
  long_description_content_type="text/markdown", # 指明内容格式为markdown
16
16
  url="https://github.com/Inface0443/pyqt",
File without changes
File without changes
File without changes
File without changes