qtmodel 2.6.2__tar.gz → 2.6.4__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.
Files changed (97) hide show
  1. {qtmodel-2.6.2 → qtmodel-2.6.4}/PKG-INFO +15 -15
  2. {qtmodel-2.6.2 → qtmodel-2.6.4}/README.md +39 -41
  3. {qtmodel-2.6.2 → qtmodel-2.6.4}/pyproject.toml +9 -7
  4. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/__init__.py +41 -28
  5. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/cdb/__init__.py +1 -2
  6. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/cdb/cdb_concrete_check.py +62 -62
  7. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/cdb/cdb_steel_truss_check.py +0 -34
  8. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/model_db.py +190 -186
  9. qtmodel-2.6.4/src/qtmodel/core/qt_server.py +287 -0
  10. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/section_db.py +833 -767
  11. qtmodel-2.6.4/src/qtmodel/mdb/__init__.py +49 -0
  12. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_analysis_setting.py +79 -63
  13. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_boundary.py +77 -5
  14. qtmodel-2.6.4/src/qtmodel/mdb/mdb_model_delete.py +36 -0
  15. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_project.py +148 -80
  16. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_property.py +64 -0
  17. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_section.py +490 -256
  18. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_sink_load.py +75 -34
  19. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_static_load.py +75 -5
  20. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_structure.py +15 -0
  21. qtmodel-2.6.4/src/qtmodel/odb/__init__.py +36 -0
  22. qtmodel-2.6.4/src/qtmodel/odb/odb_model_boundary.py +193 -0
  23. qtmodel-2.6.4/src/qtmodel/odb/odb_model_load.py +250 -0
  24. qtmodel-2.6.4/src/qtmodel/odb/odb_model_material.py +54 -0
  25. qtmodel-2.6.4/src/qtmodel/odb/odb_model_overview.py +25 -0
  26. qtmodel-2.6.4/src/qtmodel/odb/odb_model_section.py +163 -0
  27. qtmodel-2.6.4/src/qtmodel/odb/odb_model_section_mcp.py +749 -0
  28. qtmodel-2.6.4/src/qtmodel/odb/odb_model_stage.py +66 -0
  29. qtmodel-2.6.4/src/qtmodel/odb/odb_model_structure.py +433 -0
  30. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/odb/odb_result_data.py +169 -75
  31. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/odb/odb_result_plot.py +15 -7
  32. qtmodel-2.6.4/src/qtmodel/odb/odb_view.py +236 -0
  33. qtmodel-2.6.4/src/qtmodel/report/__init__.py +32 -0
  34. qtmodel-2.6.4/src/qtmodel/report/bookmarks.py +304 -0
  35. qtmodel-2.6.4/src/qtmodel/report/client.py +310 -0
  36. qtmodel-2.6.4/src/qtmodel/report/docx.py +759 -0
  37. qtmodel-2.6.4/src/qtmodel/report/facade.py +231 -0
  38. qtmodel-2.6.4/src/qtmodel/report/models.py +100 -0
  39. qtmodel-2.6.4/src/qtmodel/report/plotting.py +120 -0
  40. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel.egg-info/PKG-INFO +15 -15
  41. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel.egg-info/SOURCES.txt +28 -2
  42. qtmodel-2.6.4/src/qtmodel.egg-info/requires.txt +4 -0
  43. qtmodel-2.6.4/tests/test_code_check_report_contract.py +183 -0
  44. qtmodel-2.6.4/tests/test_element_contract.py +27 -0
  45. qtmodel-2.6.4/tests/test_http_contract.py +211 -0
  46. qtmodel-2.6.4/tests/test_mdb_boundary_contract.py +56 -0
  47. qtmodel-2.6.4/tests/test_mdb_model_delete_contract.py +24 -0
  48. qtmodel-2.6.4/tests/test_mdb_project.py +47 -0
  49. qtmodel-2.6.4/tests/test_mdb_property_contract.py +55 -0
  50. qtmodel-2.6.4/tests/test_mdb_section_contract.py +52 -0
  51. qtmodel-2.6.4/tests/test_mdb_static_load_contract.py +51 -0
  52. qtmodel-2.6.4/tests/test_mdb_structure_contract.py +33 -0
  53. qtmodel-2.6.4/tests/test_odb_model_boundary_query_contract.py +66 -0
  54. qtmodel-2.6.4/tests/test_odb_model_load_query_contract.py +33 -0
  55. qtmodel-2.6.4/tests/test_odb_model_overview.py +95 -0
  56. qtmodel-2.6.4/tests/test_odb_model_section_mcp.py +317 -0
  57. qtmodel-2.6.4/tests/test_odb_model_section_query_contract.py +30 -0
  58. qtmodel-2.6.4/tests/test_odb_model_structure_query_contract.py +110 -0
  59. qtmodel-2.6.4/tests/test_qt_server.py +82 -0
  60. qtmodel-2.6.4/tests/test_report_generation.py +473 -0
  61. qtmodel-2.6.4/tests/test_report_golden_compare.py +71 -0
  62. {qtmodel-2.6.2 → qtmodel-2.6.4}/tests/test_section_db.py +184 -158
  63. {qtmodel-2.6.2 → qtmodel-2.6.4}/tests/test_section_geometry.py +190 -188
  64. qtmodel-2.6.2/src/qtmodel/cdb/cdb_anti_overturn_check.py +0 -42
  65. qtmodel-2.6.2/src/qtmodel/core/qt_server.py +0 -92
  66. qtmodel-2.6.2/src/qtmodel/mdb/__init__.py +0 -27
  67. qtmodel-2.6.2/src/qtmodel/mdb/mdb_assistant.py +0 -34
  68. qtmodel-2.6.2/src/qtmodel/odb/__init__.py +0 -19
  69. qtmodel-2.6.2/src/qtmodel/odb/odb_model_boundary.py +0 -109
  70. qtmodel-2.6.2/src/qtmodel/odb/odb_model_load.py +0 -154
  71. qtmodel-2.6.2/src/qtmodel/odb/odb_model_material.py +0 -30
  72. qtmodel-2.6.2/src/qtmodel/odb/odb_model_section.py +0 -104
  73. qtmodel-2.6.2/src/qtmodel/odb/odb_model_stage.py +0 -55
  74. qtmodel-2.6.2/src/qtmodel/odb/odb_model_structure.py +0 -282
  75. qtmodel-2.6.2/src/qtmodel/odb/odb_view.py +0 -203
  76. qtmodel-2.6.2/src/qtmodel.egg-info/requires.txt +0 -2
  77. qtmodel-2.6.2/tests/test_mdb_project.py +0 -34
  78. {qtmodel-2.6.2 → qtmodel-2.6.4}/setup.cfg +0 -0
  79. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/bridge.py +0 -0
  80. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/cdb/cdb_steel_box_check.py +0 -0
  81. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/__init__.py +0 -0
  82. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/concrete_check_db.py +0 -0
  83. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/data_helper.py +0 -0
  84. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/result_db.py +0 -0
  85. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/section_geometry.py +0 -0
  86. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/section_property_solver.py +0 -0
  87. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/core/section_shape.py +0 -0
  88. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_construction_stage.py +0 -0
  89. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_dynamic_load.py +0 -0
  90. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_live_load.py +0 -0
  91. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_load.py +0 -0
  92. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_temperature_load.py +0 -0
  93. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel/mdb/mdb_tendon.py +0 -0
  94. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel.egg-info/dependency_links.txt +0 -0
  95. {qtmodel-2.6.2 → qtmodel-2.6.4}/src/qtmodel.egg-info/top_level.txt +0 -0
  96. {qtmodel-2.6.2 → qtmodel-2.6.4}/tests/test_section_property_solver.py +0 -0
  97. {qtmodel-2.6.2 → qtmodel-2.6.4}/tests/test_section_shape.py +0 -0
@@ -1,18 +1,22 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qtmodel
3
- Version: 2.6.2
3
+ Version: 2.6.4
4
4
  Summary: qtmodel package
5
5
  Author: Your Name
6
6
  Requires-Python: >=3.9
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: requests>=2.28
9
9
  Requires-Dist: psutil>=5.9
10
+ Requires-Dist: matplotlib<4,>=3.8
11
+ Requires-Dist: python-docx<2,>=1.2
10
12
 
11
- > 最新qtmodel版本 2.6.2 - 2026-08-03
13
+ > 最新qtmodel版本 2.6.4 - 2026-08-17
12
14
  > pip install --upgrade qtmodel -i https://pypi.org/simple
15
+ - 完善 MCP 批量建模、局部查询与语义操作,新增事务化模型编辑接口。
16
+ - 在 MCP 中提供计算书脚本导出工具(`ReportClient`),声明 python-docx 文档依赖。
13
17
  - 调整 `mdb.do_solve()` 默认行为:显示求解窗口、等待求解完成,并默认使用同步求解。
14
- - 参数化截面字典键统一采用小写,同时兼容历史大小写写法;
15
- 完善混凝土箱梁、箱梁腹板及钢箱梁截面 Schema,便于 Agent 可靠建模。
18
+ - 参数化截面名称和参数简称严格对齐桥通 `SectionView/Views`,保留简称大小写并兼容历史写法;
19
+ 截面线圈生成严格对齐 `SectionView/Param` 的外圈、孔洞、圆弧和带肋路径。
16
20
  - 增加纯 Python 本地截面特性求解:面积、形心、Iy/Iz/Iyz、内外周长、
17
21
  包围框、四个控制点、组合截面换算特性和线宽截面特性。
18
22
 
@@ -723,22 +727,18 @@ mdb.update_to_post()
723
727
  #Returns: 无
724
728
  ```
725
729
  ### do_solve
726
- Run project analysis.
730
+ 运行项目分析计算。求解时固定显示模态分析窗口;用户可在窗口中终止分析,正常完成后窗口自动关闭。
727
731
  > 参数:
728
- > show_view: Show the Qt analysis prompt window while solving.
729
- > modal: Reserved for the Qt side when show_view=True.
730
- > auto_close: Auto close the prompt window after solving.
731
- > read_timeout: Timeout for the start request, in seconds.
732
- > wait: Poll and wait for the background solve to finish.
733
- > poll_interval: Poll interval when wait=True, in seconds.
734
- > max_wait: Max wait time when wait=True, in seconds.
735
- > status_read_timeout: Timeout for each status request, in seconds.
736
- > sync: Ask backend to run synchronously. Not recommended for large models.
732
+ > read_timeout: 启动求解请求的超时时间,单位为秒。
733
+ > wait: 是否轮询并等待后台求解完成。
734
+ > poll_interval: 当 wait=True 时,查询求解状态的时间间隔,单位为秒。
735
+ > max_wait: 当 wait=True 时,允许等待求解完成的最长时间,单位为秒。
736
+ > status_read_timeout: 每次查询求解状态请求的超时时间,单位为秒。
737
+ > sync: 是否要求后端同步执行求解。
737
738
  ```Python
738
739
  # 示例代码
739
740
  from qtmodel import *
740
741
  mdb.do_solve()
741
- mdb.do_solve(show_view=True)
742
742
  mdb.do_solve(wait=True, max_wait=1800)
743
743
  #Returns:
744
744
  ```
@@ -1,33 +1,35 @@
1
- > 最新qtmodel版本 2.6.2 - 2026-08-03
2
- > pip install --upgrade qtmodel -i https://pypi.org/simple
3
- - 调整 `mdb.do_solve()` 默认行为:显示求解窗口、等待求解完成,并默认使用同步求解。
4
- - 参数化截面字典键统一采用小写,同时兼容历史大小写写法;
5
- 完善混凝土箱梁、箱梁腹板及钢箱梁截面 Schema,便于 Agent 可靠建模。
6
- - 增加纯 Python 本地截面特性求解:面积、形心、Iy/Iz/Iyz、内外周长、
7
- 包围框、四个控制点、组合截面换算特性和线宽截面特性。
8
-
9
- ## 本地截面特性计算
10
-
11
- 本地求解不要求打开桥通,不发送 HTTP 请求。所有坐标和厚度单位为 m,
12
- 面积单位为 m²,惯性矩单位为 m⁴。
13
-
14
- ```Python
15
- from qtmodel import mdb
16
-
17
- result = mdb.get_parameter_section_property_local(
18
- sec_type="矩形",
19
- sec_info={"w": 2.0, "h": 1.0},
20
- )
21
- print(result.property.Ax, result.property.Iy, result.bounding_box.to_dict())
22
-
23
- line_result = mdb.get_section_property_local(
24
- sec_type="自定义线宽截面",
25
- sec_lines=[[0, 0, 2, 0, 0.02]],
26
- )
27
- ```
28
-
29
- 当前本地求解器仅填写可由二维几何严格积分的字段。``Ix``、``Ay``、``Az``、
30
- 剪心和静矩保持为零,完整截面求解仍使用 ``odb.get_section_property``。
1
+ > 最新qtmodel版本 2.6.4 - 2026-08-17
2
+ > pip install --upgrade qtmodel -i https://pypi.org/simple
3
+ - 完善 MCP 批量建模、局部查询与语义操作,新增事务化模型编辑接口。
4
+ - 在 MCP 中提供计算书脚本导出工具(`ReportClient`),声明 python-docx 文档依赖。
5
+ - 调整 `mdb.do_solve()` 默认行为:显示求解窗口、等待求解完成,并默认使用同步求解。
6
+ - 参数化截面名称和参数简称严格对齐桥通 `SectionView/Views`,保留简称大小写并兼容历史写法;
7
+ 截面线圈生成严格对齐 `SectionView/Param` 的外圈、孔洞、圆弧和带肋路径。
8
+ - 增加纯 Python 本地截面特性求解:面积、形心、Iy/Iz/Iyz、内外周长、
9
+ 包围框、四个控制点、组合截面换算特性和线宽截面特性。
10
+
11
+ ## 本地截面特性计算
12
+
13
+ 本地求解不要求打开桥通,不发送 HTTP 请求。所有坐标和厚度单位为 m,
14
+ 面积单位为 m²,惯性矩单位为 m⁴。
15
+
16
+ ```Python
17
+ from qtmodel import mdb
18
+
19
+ result = mdb.get_parameter_section_property_local(
20
+ sec_type="矩形",
21
+ sec_info={"w": 2.0, "h": 1.0},
22
+ )
23
+ print(result.property.Ax, result.property.Iy, result.bounding_box.to_dict())
24
+
25
+ line_result = mdb.get_section_property_local(
26
+ sec_type="自定义线宽截面",
27
+ sec_lines=[[0, 0, 2, 0, 0.02]],
28
+ )
29
+ ```
30
+
31
+ 当前本地求解器仅填写可由二维几何严格积分的字段。``Ix``、``Ay``、``Az``、
32
+ 剪心和静矩保持为零,完整截面求解仍使用 ``odb.get_section_property``。
31
33
  # 建模操作
32
34
  ## 节点操作
33
35
  ### generate_curve_node_data
@@ -713,22 +715,18 @@ mdb.update_to_post()
713
715
  #Returns: 无
714
716
  ```
715
717
  ### do_solve
716
- Run project analysis.
718
+ 运行项目分析计算。求解时固定显示模态分析窗口;用户可在窗口中终止分析,正常完成后窗口自动关闭。
717
719
  > 参数:
718
- > show_view: Show the Qt analysis prompt window while solving.
719
- > modal: Reserved for the Qt side when show_view=True.
720
- > auto_close: Auto close the prompt window after solving.
721
- > read_timeout: Timeout for the start request, in seconds.
722
- > wait: Poll and wait for the background solve to finish.
723
- > poll_interval: Poll interval when wait=True, in seconds.
724
- > max_wait: Max wait time when wait=True, in seconds.
725
- > status_read_timeout: Timeout for each status request, in seconds.
726
- > sync: Ask backend to run synchronously. Not recommended for large models.
720
+ > read_timeout: 启动求解请求的超时时间,单位为秒。
721
+ > wait: 是否轮询并等待后台求解完成。
722
+ > poll_interval: 当 wait=True 时,查询求解状态的时间间隔,单位为秒。
723
+ > max_wait: 当 wait=True 时,允许等待求解完成的最长时间,单位为秒。
724
+ > status_read_timeout: 每次查询求解状态请求的超时时间,单位为秒。
725
+ > sync: 是否要求后端同步执行求解。
727
726
  ```Python
728
727
  # 示例代码
729
728
  from qtmodel import *
730
729
  mdb.do_solve()
731
- mdb.do_solve(show_view=True)
732
730
  mdb.do_solve(wait=True, max_wait=1800)
733
731
  #Returns:
734
732
  ```
@@ -4,15 +4,17 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qtmodel"
7
- version = "2.6.2"
7
+ version = "2.6.4"
8
8
  description = "qtmodel package"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
- authors = [{name = "Your Name"}]
12
- dependencies = [
13
- "requests>=2.28",
14
- "psutil>=5.9",
15
- ]
11
+ authors = [{name = "Your Name"}]
12
+ dependencies = [
13
+ "requests>=2.28",
14
+ "psutil>=5.9",
15
+ "matplotlib>=3.8,<4",
16
+ "python-docx>=1.2,<2",
17
+ ]
16
18
 
17
19
  [tool.setuptools]
18
20
  package-dir = {"" = "src"}
@@ -26,4 +28,4 @@ where = ["src"]
26
28
  # py -m pip install -U pip build twine
27
29
  # py -m build
28
30
  # py -m twine check dist/*
29
- # py -m twine upload -r pypi --non-interactive --verbose dist/*
31
+ # py -m twine upload -r pypi --non-interactive --verbose dist/*
@@ -1,33 +1,46 @@
1
1
  from .bridge import bridge, Bridge
2
2
  from .cdb import cdb, Cdb
3
- from .core.qt_server import QtServer
4
- from .core.section_db import SectionDB, SectionParameter, SectionProperty, SectionSchema
5
- from .core.section_geometry import SectionGeometryDB
6
- from .core.section_property_solver import (
7
- SectionBoundingBox,
8
- SectionControlPoint,
9
- SectionPartProperty,
10
- SectionPropertyResult,
11
- SectionPropertySolver,
12
- )
13
- from .core.section_shape import (
14
- SectionLine,
15
- SectionLoopSegment,
16
- SectionPoint,
17
- SectionShape,
18
- SectionShapePart,
19
- )
3
+ from .core.qt_server import QtServer
4
+ from .core.section_db import SectionDB, SectionParameter, SectionProperty, SectionSchema
5
+ from .core.section_geometry import SectionGeometryDB
6
+ from .core.section_property_solver import (
7
+ SectionBoundingBox,
8
+ SectionControlPoint,
9
+ SectionPartProperty,
10
+ SectionPropertyResult,
11
+ SectionPropertySolver,
12
+ )
13
+ from .core.section_shape import (
14
+ SectionLine,
15
+ SectionLoopSegment,
16
+ SectionPoint,
17
+ SectionShape,
18
+ SectionShapePart,
19
+ )
20
20
  from .mdb import mdb, Mdb
21
21
  from .odb import odb, Odb
22
+ from .report import (
23
+ HighwayPcDocxGenerator,
24
+ MatplotlibPlotRenderer,
25
+ Report,
26
+ ReportClient,
27
+ ReportGenerationResult,
28
+ ReportOptions,
29
+ ReportProtocolError,
30
+ report,
31
+ )
22
32
 
23
- __version__ = QtServer.QT_VERSION
24
-
25
- __all__ = [
26
- "Bridge", "bridge", "Cdb", "cdb", "Mdb", "mdb", "Odb", "odb",
27
- "SectionDB", "SectionParameter", "SectionProperty", "SectionSchema",
28
- "SectionGeometryDB",
29
- "SectionBoundingBox", "SectionControlPoint", "SectionPartProperty",
30
- "SectionPropertyResult", "SectionPropertySolver",
31
- "SectionPoint", "SectionLoopSegment", "SectionLine", "SectionShapePart",
32
- "SectionShape",
33
- ]
33
+ __version__ = QtServer.QT_VERSION
34
+
35
+ __all__ = [
36
+ "Bridge", "bridge", "Cdb", "cdb", "Mdb", "mdb", "Odb", "odb",
37
+ "SectionDB", "SectionParameter", "SectionProperty", "SectionSchema",
38
+ "SectionGeometryDB",
39
+ "SectionBoundingBox", "SectionControlPoint", "SectionPartProperty",
40
+ "SectionPropertyResult", "SectionPropertySolver",
41
+ "SectionPoint", "SectionLoopSegment", "SectionLine", "SectionShapePart",
42
+ "SectionShape",
43
+ "HighwayPcDocxGenerator", "MatplotlibPlotRenderer",
44
+ "Report", "report", "ReportClient", "ReportGenerationResult",
45
+ "ReportOptions", "ReportProtocolError",
46
+ ]
@@ -2,9 +2,8 @@ from .cdb_concrete_check import CdbConcreteCheck
2
2
  from .cdb_steel_box_check import CdbSteelBoxCheck
3
3
  from .cdb_steel_truss_check import CdbSteelTrussCheck
4
4
  from qtmodel.core.qt_server import QtServer
5
- from .cdb_anti_overturn_check import CdbAntiOverturnCheck
6
5
 
7
- class Cdb(CdbConcreteCheck, CdbSteelBoxCheck, CdbSteelTrussCheck, CdbAntiOverturnCheck):
6
+ class Cdb(CdbConcreteCheck, CdbSteelBoxCheck, CdbSteelTrussCheck):
8
7
  """聚合所有 Cdb 能力的门面类(Facade)。"""
9
8
  @staticmethod
10
9
  def update_model():
@@ -1078,7 +1078,7 @@ class CdbConcreteCheck:
1078
1078
  Returns:
1079
1079
  list[ElementTorsionStirrupData]: 单元抗扭箍筋数据列表。
1080
1080
  """
1081
- json_str = QtServer.get_json_str("GET-ELEMENT-TORSION-DATA", {
1081
+ json_str = QtServer.get_json_str("GET-ELEMENT-TORSION-STIRRUP-DATA", {
1082
1082
  "ele_id": ele_id,
1083
1083
  "ele_ids": ele_ids or []
1084
1084
  })
@@ -1417,10 +1417,10 @@ class CdbConcreteCheck:
1417
1417
  element_id: 单元编号,可选参数,仅详表需要
1418
1418
  beam_end_mark: 梁端标记,0 为 I 端,1 为 J 端,2 为 IJ 端,可选参数,仅详表需要
1419
1419
  shear_direction_type: 剪切方向类型,可选参数,仅斜截面抗剪总表需要 0-Vertical 1-Lateral 2-Bidirectional
1420
- Example:
1421
- cdb.get_check_case_result_info(result_type="正截面承载力", table_type=1)
1422
- Returns:
1423
- QtServer.send_dict 的返回值。
1420
+ Example:
1421
+ cdb.get_check_case_result_info(result_type="正截面承载力", table_type=1)
1422
+ Returns:
1423
+ QtServer.send_dict 的返回值。
1424
1424
  """
1425
1425
  return CdbConcreteCheck._send("GET-CHECK-CASE-RESULT-INFO", {
1426
1426
  "result_type": result_type,
@@ -1461,13 +1461,13 @@ class CdbConcreteCheck:
1461
1461
 
1462
1462
  @staticmethod
1463
1463
  def get_normal_section_bearing_analysis_setting():
1464
- """
1465
- 获取正截面承载力分析设置。
1466
- Args: 无
1467
- Example:
1468
- setting = cdb.get_normal_section_bearing_analysis_setting()
1469
- Returns:
1470
- dict: 包含 normal_section_bearing_calculation_type,枚举取值含义与对应更新接口一致。
1464
+ """
1465
+ 获取正截面承载力分析设置。
1466
+ Args: 无
1467
+ Example:
1468
+ setting = cdb.get_normal_section_bearing_analysis_setting()
1469
+ Returns:
1470
+ dict: 包含 normal_section_bearing_calculation_type,枚举取值含义与对应更新接口一致。
1471
1471
  """
1472
1472
  return CdbConcreteCheck._send("GET-NORMAL-SECTION-BEARING-ANALYSIS-SETTING", {})
1473
1473
 
@@ -1503,14 +1503,14 @@ class CdbConcreteCheck:
1503
1503
 
1504
1504
  @staticmethod
1505
1505
  def get_oblique_section_shear_bearing_analysis_setting():
1506
- """
1507
- 获取斜截面抗剪承载力分析设置。
1508
- Args: 无
1509
- Example:
1510
- setting = cdb.get_oblique_section_shear_bearing_analysis_setting()
1511
- Returns:
1512
- dict: 包含 reinforcement_height_multiple、is_consider_as_simple_support、
1513
- shear_strength_material_factor、oblique_section_shear_direction_type。
1506
+ """
1507
+ 获取斜截面抗剪承载力分析设置。
1508
+ Args: 无
1509
+ Example:
1510
+ setting = cdb.get_oblique_section_shear_bearing_analysis_setting()
1511
+ Returns:
1512
+ dict: 包含 reinforcement_height_multiple、is_consider_as_simple_support、
1513
+ shear_strength_material_factor、oblique_section_shear_direction_type。
1514
1514
  """
1515
1515
  return CdbConcreteCheck._send("GET-OBLIQUE-SECTION-SHEAR-BEARING-ANALYSIS-SETTING", {})
1516
1516
 
@@ -1546,14 +1546,14 @@ class CdbConcreteCheck:
1546
1546
 
1547
1547
  @staticmethod
1548
1548
  def get_limit_state_method_analysis_setting():
1549
- """
1550
- 获取极限状态法分析设置。
1551
- Args: 无
1552
- Example:
1553
- setting = cdb.get_limit_state_method_analysis_setting()
1554
- Returns:
1555
- dict: 包含 cal_fatigue、fatigue_limit_steel_bar、fatigue_limit_prestress、
1556
- is_consider_as_simple_support、is_consider_construction_load。
1549
+ """
1550
+ 获取极限状态法分析设置。
1551
+ Args: 无
1552
+ Example:
1553
+ setting = cdb.get_limit_state_method_analysis_setting()
1554
+ Returns:
1555
+ dict: 包含 cal_fatigue、fatigue_limit_steel_bar、fatigue_limit_prestress、
1556
+ is_consider_as_simple_support、is_consider_construction_load。
1557
1557
  """
1558
1558
  return CdbConcreteCheck._send("GET-LIMIT-STATE-METHOD-ANALYSIS-SETTING", {})
1559
1559
 
@@ -1591,15 +1591,15 @@ class CdbConcreteCheck:
1591
1591
 
1592
1592
  @staticmethod
1593
1593
  def get_normal_stress_analysis_setting():
1594
- """
1595
- 获取正应力分析设置。
1596
- Args: 无
1597
- Example:
1598
- setting = cdb.get_normal_stress_analysis_setting()
1599
- Returns:
1600
- dict: 包含 aashto2020_normal_stress_rebar_type、tendon_allowable_stress_amplitude、
1601
- flange_web_slenderness_ratio、construction_stage_concrete_tensile_limit、
1602
- service_combination3_concrete_tension_limit。
1594
+ """
1595
+ 获取正应力分析设置。
1596
+ Args: 无
1597
+ Example:
1598
+ setting = cdb.get_normal_stress_analysis_setting()
1599
+ Returns:
1600
+ dict: 包含 aashto2020_normal_stress_rebar_type、tendon_allowable_stress_amplitude、
1601
+ flange_web_slenderness_ratio、construction_stage_concrete_tensile_limit、
1602
+ service_combination3_concrete_tension_limit。
1603
1603
  """
1604
1604
  return CdbConcreteCheck._send("GET-NORMAL-STRESS-ANALYSIS-SETTING", {})
1605
1605
 
@@ -1693,17 +1693,17 @@ class CdbConcreteCheck:
1693
1693
 
1694
1694
  @staticmethod
1695
1695
  def get_crack_width_analysis_setting():
1696
- """
1697
- 获取裂缝宽度分析设置。
1698
- Args: 无
1699
- Example:
1700
- setting = cdb.get_crack_width_analysis_setting()
1701
- Returns:
1702
- dict: 包含 highway_environment_category_type、railway_environment_category_type、
1703
- railway_limit_environment_category_type、crack_setting_type、clear_protective_thickness、
1704
- steel_bar_type、effect_coefficient_type、user_specified_effect_coefficient、
1705
- is_epoxy_resin_rebar、is_welded_rebar_skeleton、mq_mg、protective_thickness、
1706
- exposure_coefficient。
1696
+ """
1697
+ 获取裂缝宽度分析设置。
1698
+ Args: 无
1699
+ Example:
1700
+ setting = cdb.get_crack_width_analysis_setting()
1701
+ Returns:
1702
+ dict: 包含 highway_environment_category_type、railway_environment_category_type、
1703
+ railway_limit_environment_category_type、crack_setting_type、clear_protective_thickness、
1704
+ steel_bar_type、effect_coefficient_type、user_specified_effect_coefficient、
1705
+ is_epoxy_resin_rebar、is_welded_rebar_skeleton、mq_mg、protective_thickness、
1706
+ exposure_coefficient。
1707
1707
  """
1708
1708
  return CdbConcreteCheck._send("GET-CRACK-WIDTH-ANALYSIS-SETTING", {})
1709
1709
 
@@ -1734,13 +1734,13 @@ class CdbConcreteCheck:
1734
1734
 
1735
1735
  @staticmethod
1736
1736
  def get_moment_curvature_curve_analysis_setting():
1737
- """
1738
- 获取弯矩曲率曲线分析设置。
1739
- Args: 无
1740
- Example:
1741
- setting = cdb.get_moment_curvature_curve_analysis_setting()
1742
- Returns:
1743
- dict: 包含 moment_curvature_type、moment_curvature_model_type,枚举取值含义与对应更新接口一致。
1737
+ """
1738
+ 获取弯矩曲率曲线分析设置。
1739
+ Args: 无
1740
+ Example:
1741
+ setting = cdb.get_moment_curvature_curve_analysis_setting()
1742
+ Returns:
1743
+ dict: 包含 moment_curvature_type、moment_curvature_model_type,枚举取值含义与对应更新接口一致。
1744
1744
  """
1745
1745
  return CdbConcreteCheck._send("GET-MOMENT-CURVATURE-CURVE-ANALYSIS-SETTING", {})
1746
1746
 
@@ -1770,13 +1770,13 @@ class CdbConcreteCheck:
1770
1770
 
1771
1771
  @staticmethod
1772
1772
  def get_bearing_curve_analysis_setting():
1773
- """
1774
- 获取承载力曲线分析设置。
1775
- Args: 无
1776
- Example:
1777
- setting = cdb.get_bearing_curve_analysis_setting()
1778
- Returns:
1779
- dict: 包含 bearing_curve_count、angle_between_m_and_y_axis、force_p。
1773
+ """
1774
+ 获取承载力曲线分析设置。
1775
+ Args: 无
1776
+ Example:
1777
+ setting = cdb.get_bearing_curve_analysis_setting()
1778
+ Returns:
1779
+ dict: 包含 bearing_curve_count、angle_between_m_and_y_axis、force_p。
1780
1780
  """
1781
1781
  return CdbConcreteCheck._send("GET-BEARING-CURVE-ANALYSIS-SETTING", {})
1782
1782
 
@@ -6,40 +6,6 @@ class CdbSteelTrussCheck:
6
6
  用于钢桁架结构检查
7
7
  """
8
8
 
9
- # region 钢桁架检查
10
- @staticmethod
11
- def check_steel_truss_member():
12
- """
13
- 检查钢桁架杆件
14
- Args:无
15
- Example:
16
- cdb.check_steel_truss_member()
17
- Returns: 无
18
- """
19
- QtServer.send_dict(header="CHECK-STEEL-TRUSS-MEMBER")
20
-
21
- @staticmethod
22
- def check_steel_truss_joint():
23
- """
24
- 检查钢桁架节点
25
- Args:无
26
- Example:
27
- cdb.check_steel_truss_joint()
28
- Returns: 无
29
- """
30
- QtServer.send_dict(header="CHECK-STEEL-TRUSS-JOINT")
31
-
32
- @staticmethod
33
- def check_steel_truss_stability():
34
- """
35
- 检查钢桁架稳定性
36
- Args:无
37
- Example:
38
- cdb.check_steel_truss_stability()
39
- Returns: 无
40
- """
41
- QtServer.send_dict(header="CHECK-STEEL-TRUSS-STABILITY")
42
-
43
9
  @staticmethod
44
10
  def extract_member_design_data(member_ids: list[int], load_cases: list[str]):
45
11
  """