qtmodel 0.5.30__tar.gz → 0.5.31__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.30 → qtmodel-0.5.31}/PKG-INFO +8 -3
- {qtmodel-0.5.30 → qtmodel-0.5.31}/README.md +7 -2
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel/qt_mdb.py +12 -5
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel.egg-info/PKG-INFO +8 -3
- {qtmodel-0.5.30 → qtmodel-0.5.31}/setup.py +1 -1
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel/__init__.py +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel/qt_db.py +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel/qt_odb.py +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel.egg-info/SOURCES.txt +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel.egg-info/dependency_links.txt +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/qtmodel.egg-info/top_level.txt +0 -0
- {qtmodel-0.5.30 → qtmodel-0.5.31}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.31
|
|
4
4
|
Summary: python modeling for qt 24/10/29
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
@@ -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.
|
|
15
|
+
# 最新版本 V0.5.31 - 2024.10.29
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 修改帮助文档
|
|
18
18
|
## 项目管理
|
|
@@ -117,7 +117,10 @@ Returns: 无
|
|
|
117
117
|
### export_file
|
|
118
118
|
导入命令
|
|
119
119
|
> 参数:
|
|
120
|
-
> file_path:导出文件全路径,支持格式(.mct/.qdat/.
|
|
120
|
+
> file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
|
|
121
|
+
> convert_sec_group:是否将变截面组转换为变截面
|
|
122
|
+
> type_kind:输出文件类型 1-详细文件 2-计算文件
|
|
123
|
+
> group_name:obj与 APDL导出时指定结构组导出
|
|
121
124
|
```Python
|
|
122
125
|
# 示例代码
|
|
123
126
|
from qtmodel import *
|
|
@@ -557,6 +560,8 @@ Returns: 无
|
|
|
557
560
|
> sec_type:截面类型
|
|
558
561
|
> sec_begin:截面始端编号
|
|
559
562
|
> sec_end:截面末端编号
|
|
563
|
+
> shear_consider:考虑剪切变形
|
|
564
|
+
> sec_normalize:变截面线段线圈重新排序
|
|
560
565
|
```Python
|
|
561
566
|
# 示例代码
|
|
562
567
|
from qtmodel import *
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 最新版本 V0.5.
|
|
1
|
+
# 最新版本 V0.5.31 - 2024.10.29
|
|
2
2
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
3
3
|
- 修改帮助文档
|
|
4
4
|
## 项目管理
|
|
@@ -103,7 +103,10 @@ Returns: 无
|
|
|
103
103
|
### export_file
|
|
104
104
|
导入命令
|
|
105
105
|
> 参数:
|
|
106
|
-
> file_path:导出文件全路径,支持格式(.mct/.qdat/.
|
|
106
|
+
> file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
|
|
107
|
+
> convert_sec_group:是否将变截面组转换为变截面
|
|
108
|
+
> type_kind:输出文件类型 1-详细文件 2-计算文件
|
|
109
|
+
> group_name:obj与 APDL导出时指定结构组导出
|
|
107
110
|
```Python
|
|
108
111
|
# 示例代码
|
|
109
112
|
from qtmodel import *
|
|
@@ -543,6 +546,8 @@ Returns: 无
|
|
|
543
546
|
> sec_type:截面类型
|
|
544
547
|
> sec_begin:截面始端编号
|
|
545
548
|
> sec_end:截面末端编号
|
|
549
|
+
> shear_consider:考虑剪切变形
|
|
550
|
+
> sec_normalize:变截面线段线圈重新排序
|
|
546
551
|
```Python
|
|
547
552
|
# 示例代码
|
|
548
553
|
from qtmodel import *
|
|
@@ -162,17 +162,20 @@ class Mdb:
|
|
|
162
162
|
raise Exception(ex)
|
|
163
163
|
|
|
164
164
|
@staticmethod
|
|
165
|
-
def export_file(file_path: str):
|
|
165
|
+
def export_file(file_path: str, convert_sec_group: bool = False, type_kind: int = 1, group_name: (Union[str, List[str]]) = None):
|
|
166
166
|
"""
|
|
167
167
|
导入命令
|
|
168
168
|
Args:
|
|
169
|
-
file_path:导出文件全路径,支持格式(.mct/.qdat/.
|
|
169
|
+
file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
|
|
170
|
+
convert_sec_group:是否将变截面组转换为变截面
|
|
171
|
+
type_kind:输出文件类型 1-详细文件 2-计算文件
|
|
172
|
+
group_name:obj与 APDL导出时指定结构组导出
|
|
170
173
|
Example:
|
|
171
174
|
mdb.export_file(file_path="a.mct")
|
|
172
175
|
Returns: 无
|
|
173
176
|
"""
|
|
174
177
|
try:
|
|
175
|
-
qt_model.ExportFile(file_path)
|
|
178
|
+
qt_model.ExportFile(filePath=file_path, convertSectionGroup=convert_sec_group, typeKind=type_kind, groupName=group_name)
|
|
176
179
|
except Exception as ex:
|
|
177
180
|
raise Exception(ex)
|
|
178
181
|
|
|
@@ -907,7 +910,8 @@ class Mdb:
|
|
|
907
910
|
raise Exception(ex)
|
|
908
911
|
|
|
909
912
|
@staticmethod
|
|
910
|
-
def add_tapper_section(index: int = -1, name: str = "", sec_type: str = "矩形", sec_begin: dict = None, sec_end: dict = None
|
|
913
|
+
def add_tapper_section(index: int = -1, name: str = "", sec_type: str = "矩形", sec_begin: dict = None, sec_end: dict = None,
|
|
914
|
+
shear_consider: bool = True, sec_normalize: bool = False):
|
|
911
915
|
"""
|
|
912
916
|
添加变截面,字典参数参考单一截面,如果截面存在则自动覆盖
|
|
913
917
|
Args:
|
|
@@ -916,6 +920,8 @@ class Mdb:
|
|
|
916
920
|
sec_type:截面类型
|
|
917
921
|
sec_begin:截面始端编号
|
|
918
922
|
sec_end:截面末端编号
|
|
923
|
+
shear_consider:考虑剪切变形
|
|
924
|
+
sec_normalize:变截面线段线圈重新排序
|
|
919
925
|
Example:
|
|
920
926
|
mdb.add_tapper_section(index=1,name="变截面1",sec_type="矩形",
|
|
921
927
|
sec_begin={"sec_info":[1,2],"bias_type":"中心"},
|
|
@@ -923,7 +929,8 @@ class Mdb:
|
|
|
923
929
|
Returns: 无
|
|
924
930
|
"""
|
|
925
931
|
try:
|
|
926
|
-
qt_model.AddTapperSection(id=index, name=name, secType=sec_type, secBegin=sec_begin, secEnd=sec_end
|
|
932
|
+
qt_model.AddTapperSection(id=index, name=name, secType=sec_type, secBegin=sec_begin, secEnd=sec_end,
|
|
933
|
+
shearConsider=shear_consider,secNormalize=sec_normalize)
|
|
927
934
|
except Exception as ex:
|
|
928
935
|
raise Exception(ex)
|
|
929
936
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qtmodel
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.31
|
|
4
4
|
Summary: python modeling for qt 24/10/29
|
|
5
5
|
Home-page: https://github.com/Inface0443/pyqt
|
|
6
6
|
Author: dqy-zhj
|
|
@@ -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.
|
|
15
|
+
# 最新版本 V0.5.31 - 2024.10.29
|
|
16
16
|
> pip install --upgrade qtmodel -i https://pypi.org/simple
|
|
17
17
|
- 修改帮助文档
|
|
18
18
|
## 项目管理
|
|
@@ -117,7 +117,10 @@ Returns: 无
|
|
|
117
117
|
### export_file
|
|
118
118
|
导入命令
|
|
119
119
|
> 参数:
|
|
120
|
-
> file_path:导出文件全路径,支持格式(.mct/.qdat/.
|
|
120
|
+
> file_path:导出文件全路径,支持格式(.mct/.qdat/.obj/.txt/.py)
|
|
121
|
+
> convert_sec_group:是否将变截面组转换为变截面
|
|
122
|
+
> type_kind:输出文件类型 1-详细文件 2-计算文件
|
|
123
|
+
> group_name:obj与 APDL导出时指定结构组导出
|
|
121
124
|
```Python
|
|
122
125
|
# 示例代码
|
|
123
126
|
from qtmodel import *
|
|
@@ -557,6 +560,8 @@ Returns: 无
|
|
|
557
560
|
> sec_type:截面类型
|
|
558
561
|
> sec_begin:截面始端编号
|
|
559
562
|
> sec_end:截面末端编号
|
|
563
|
+
> shear_consider:考虑剪切变形
|
|
564
|
+
> sec_normalize:变截面线段线圈重新排序
|
|
560
565
|
```Python
|
|
561
566
|
# 示例代码
|
|
562
567
|
from qtmodel import *
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|