osis-python 0.9.2__tar.gz → 0.9.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 (124) hide show
  1. {osis_python-0.9.2/src/osis_python.egg-info → osis_python-0.9.4}/PKG-INFO +1 -1
  2. {osis_python-0.9.2 → osis_python-0.9.4/src/osis_python.egg-info}/PKG-INFO +1 -1
  3. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/__init__.py +1 -1
  4. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/material/interface.py +74 -11
  5. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/material/manager.py +95 -14
  6. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/manager.py +137 -24
  7. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/steel.py +97 -1
  8. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/routes.py +4 -0
  9. {osis_python-0.9.2 → osis_python-0.9.4}/tests/test_manager_field_layout.py +48 -0
  10. {osis_python-0.9.2 → osis_python-0.9.4}/tests/test_transfer.py +56 -0
  11. {osis_python-0.9.2 → osis_python-0.9.4}/LICENSE +0 -0
  12. {osis_python-0.9.2 → osis_python-0.9.4}/README.md +0 -0
  13. {osis_python-0.9.2 → osis_python-0.9.4}/pyproject.toml +0 -0
  14. {osis_python-0.9.2 → osis_python-0.9.4}/setup.cfg +0 -0
  15. {osis_python-0.9.2 → osis_python-0.9.4}/src/osis_python.egg-info/SOURCES.txt +0 -0
  16. {osis_python-0.9.2 → osis_python-0.9.4}/src/osis_python.egg-info/dependency_links.txt +0 -0
  17. {osis_python-0.9.2 → osis_python-0.9.4}/src/osis_python.egg-info/requires.txt +0 -0
  18. {osis_python-0.9.2 → osis_python-0.9.4}/src/osis_python.egg-info/top_level.txt +0 -0
  19. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/boundary/__init__.py +0 -0
  20. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/boundary/interface.py +0 -0
  21. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/boundary/manager.py +0 -0
  22. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/control/__init__.py +0 -0
  23. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/control/control.py +0 -0
  24. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/control/io.py +0 -0
  25. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/control/manager.py +0 -0
  26. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/control/nonlinear.py +0 -0
  27. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/__init__.py +0 -0
  28. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/all_func.py +0 -0
  29. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/apdl_sync.py +0 -0
  30. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/basic_manager.py +0 -0
  31. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/batch.py +0 -0
  32. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/client.py +0 -0
  33. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/command.py +0 -0
  34. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/engine.py +0 -0
  35. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/enums.py +0 -0
  36. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/exceptions.py +0 -0
  37. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/normalize.py +0 -0
  38. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/references.py +0 -0
  39. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/sdk.py +0 -0
  40. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/solver.py +0 -0
  41. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/core/sync_apdl_cli.py +0 -0
  42. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/display/__init__.py +0 -0
  43. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/display/interface.py +0 -0
  44. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/display/manager.py +0 -0
  45. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/dynamic/__init__.py +0 -0
  46. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/dynamic/load_to_mass.py +0 -0
  47. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/dynamic/manager.py +0 -0
  48. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/dynamic/modal.py +0 -0
  49. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/dynamic/seismic.py +0 -0
  50. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/element/__init__.py +0 -0
  51. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/element/interface.py +0 -0
  52. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/element/manager.py +0 -0
  53. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/general/__init__.py +0 -0
  54. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/general/interface.py +0 -0
  55. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/geometry/__init__.py +0 -0
  56. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/geometry/interface.py +0 -0
  57. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/geometry/manager.py +0 -0
  58. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/live/__init__.py +0 -0
  59. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/live/analysis.py +0 -0
  60. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/live/grade.py +0 -0
  61. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/live/lane.py +0 -0
  62. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/live/manager.py +0 -0
  63. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/__init__.py +0 -0
  64. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/environmental.py +0 -0
  65. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/loadcase.py +0 -0
  66. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/manager.py +0 -0
  67. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/static.py +0 -0
  68. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/load/tendon.py +0 -0
  69. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/material/__init__.py +0 -0
  70. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/node/__init__.py +0 -0
  71. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/node/interface.py +0 -0
  72. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/node/manager.py +0 -0
  73. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/post/__init__.py +0 -0
  74. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/post/combine.py +0 -0
  75. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/post/design_check.py +0 -0
  76. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/post/display.py +0 -0
  77. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/post/manager.py +0 -0
  78. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/project/__init__.py +0 -0
  79. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/project/interface.py +0 -0
  80. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/project/manager.py +0 -0
  81. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/__init__.py +0 -0
  82. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/component_thickness.py +0 -0
  83. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/coordinate.py +0 -0
  84. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/creep_shrink.py +0 -0
  85. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/damping.py +0 -0
  86. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/manager.py +0 -0
  87. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/pu_curve.py +0 -0
  88. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/property/strength_prog.py +0 -0
  89. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/quick_building/__init__.py +0 -0
  90. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/quick_building/interface.py +0 -0
  91. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/result/__init__.py +0 -0
  92. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/result/check.py +0 -0
  93. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/result/manager.py +0 -0
  94. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/result/routes.py +0 -0
  95. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/__init__.py +0 -0
  96. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/common.py +0 -0
  97. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/composite.py +0 -0
  98. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/numeric.py +0 -0
  99. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/param.py +0 -0
  100. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/rebar.py +0 -0
  101. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/rib.py +0 -0
  102. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/section/shaped_steel.py +0 -0
  103. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/settlement/__init__.py +0 -0
  104. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/settlement/interface.py +0 -0
  105. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/settlement/manager.py +0 -0
  106. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stability/__init__.py +0 -0
  107. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stability/buckling.py +0 -0
  108. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stability/manager.py +0 -0
  109. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stage/__init__.py +0 -0
  110. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stage/define.py +0 -0
  111. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stage/manager.py +0 -0
  112. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/stage/overall.py +0 -0
  113. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/thickness/__init__.py +0 -0
  114. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/thickness/interface.py +0 -0
  115. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/thickness/manager.py +0 -0
  116. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/__init__.py +0 -0
  117. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/generator.py +0 -0
  118. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/matrix.py +0 -0
  119. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/out_to_python.py +0 -0
  120. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/parser.py +0 -0
  121. {osis_python-0.9.2 → osis_python-0.9.4}/src/pyosis/transfer/split.py +0 -0
  122. {osis_python-0.9.2 → osis_python-0.9.4}/tests/test_batch.py +0 -0
  123. {osis_python-0.9.2 → osis_python-0.9.4}/tests/test_delete_occupied.py +0 -0
  124. {osis_python-0.9.2 → osis_python-0.9.4}/tests/test_project_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osis-python
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: A Python client library for Osis APDL
5
5
  Author-email: "CCCC Highway Consultant Co. Ltd." <support@osisbim.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osis-python
3
- Version: 0.9.2
3
+ Version: 0.9.4
4
4
  Summary: A Python client library for Osis APDL
5
5
  Author-email: "CCCC Highway Consultant Co. Ltd." <support@osisbim.com>
6
6
  License-Expression: MIT
@@ -7,7 +7,7 @@ A library for extending OSIS functionality.
7
7
  A library that allows users to use CAE with great flexibility.
8
8
  """
9
9
 
10
- __version__ = "0.9.2"
10
+ __version__ = "0.9.4"
11
11
 
12
12
  from .core.engine import OSISEngine
13
13
  from .core.batch import batch, flush, batch_state, BatchError
@@ -10,8 +10,8 @@ from ..core import REGISTRY
10
10
 
11
11
  @REGISTRY.register('Material')
12
12
  def osis_material_conc(nMat: int, strName: str, eMaterialType: Literal["CONC"],
13
- eCode: Literal["JTG3362_2018", "JTGD62_2004"],
14
- eGrade: Literal["C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80"],
13
+ eCode: Literal["JTG3362_2018", "JTGD62_2004", "GB50010_2002", "GB50010_2010", "Unassigned"],
14
+ eGrade: Literal["C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80"] | str = "",
15
15
  nCrepShrk: int | str = "", dDmp: float = 0.05, strStrengthPrg: str = None):
16
16
  """创建或修改混凝土材料
17
17
 
@@ -22,8 +22,12 @@ def osis_material_conc(nMat: int, strName: str, eMaterialType: Literal["CONC"],
22
22
  eCode (str): 材料标准代码,不区分大小写。可选值:
23
23
  * JTG3362_2018
24
24
  * JTGD62_2004
25
+ * GB50010_2002
26
+ * GB50010_2010
27
+ * Unassigned(无规范)
25
28
  eGrade (str): 材料等级牌号,不区分大小写。根据材料类型可选:
26
29
  * C15, C20, C25, C30, C35, C40, C45, C50, C55, C60, C65, C70, C75, C80
30
+ * 选择 Unassigned(无规范)时缺省
27
31
  nCrepShrk (int): 收缩徐变特性编号,可以缺省,缺省时设为 "", 不缺省时设置为1
28
32
  dDmp (float): 材料阻尼比
29
33
  strStrengthPrg (str): 强度进展特性名称(StrengthPrg 定义),可缺省,缺省时不带该列
@@ -36,7 +40,14 @@ def osis_material_conc(nMat: int, strName: str, eMaterialType: Literal["CONC"],
36
40
  pass
37
41
 
38
42
  @REGISTRY.register('Material')
39
- def osis_material_steel(nMat: int, strName: str, eMaterialType: Literal["STEEL"], eCode: Literal["JTGD64_2015"], eGrade: Literal["Q235", "Q345", "Q390", "Q420"], dDmp: float):
43
+ def osis_material_steel(nMat: int, strName: str, eMaterialType: Literal["STEEL"],
44
+ eCode: Literal["JTGD64_2015", "GB50017_2017", "GB50018_2002", "GBT50018_2025",
45
+ "GB50017_2003", "GBJ17_1988", "JGJ99_2015", "JGJ99_1998",
46
+ "JTJ025_86", "Unassigned"],
47
+ eGrade: Literal["Q235", "Q345", "Q345GJ", "Q355", "Q390", "Q420", "Q460", "Q550",
48
+ "S280", "S350", "S550", "Grade3", "16Mn", "16Mnq", "15MnV",
49
+ "15MnVq", "A3"] | str = "",
50
+ dDmp: float = 0.0):
40
51
  """创建或修改钢材
41
52
 
42
53
  Args:
@@ -45,11 +56,19 @@ def osis_material_steel(nMat: int, strName: str, eMaterialType: Literal["STEEL"]
45
56
  eMaterialType (str): 材料类型,不区分大小写。固定为 STEEL
46
57
  eCode (str): 材料标准代码,可选值:
47
58
  * JTGD64_2015
59
+ * GB50017_2017
60
+ * GB50018_2002
61
+ * GBT50018_2025
62
+ * GB50017_2003
63
+ * GBJ17_1988
64
+ * JGJ99_2015
65
+ * JGJ99_1998
66
+ * JTJ025_86
67
+ * Unassigned(无规范)
48
68
  eGrade (str): 材料等级牌号,根据材料类型可选:
49
- * Q235
50
- * Q345
51
- * Q390
52
- * Q420
69
+ * Q235, Q345, Q345GJ, Q355, Q390, Q420, Q460, Q550
70
+ * S280, S350, S550, Grade3, 16Mn, 16Mnq, 15MnV, 15MnVq, A3
71
+ * 选择 Unassigned(无规范)时缺省
53
72
  dDmp (float): 材料阻尼比
54
73
 
55
74
  Returns:
@@ -60,7 +79,9 @@ def osis_material_steel(nMat: int, strName: str, eMaterialType: Literal["STEEL"]
60
79
  pass
61
80
 
62
81
  @REGISTRY.register('Material')
63
- def osis_material_prestressed(nMat: int, strName: str, eMaterialType: Literal["PRESTRESSED"], eCode: Literal["JTG3362_2018", "JTGD62_2004"], eGrade: str, dDmp: float):
82
+ def osis_material_prestressed(nMat: int, strName: str, eMaterialType: Literal["PRESTRESSED"],
83
+ eCode: Literal["JTG3362_2018", "JTGD62_2004", "Unassigned"],
84
+ eGrade: str = "", dDmp: float = 0.0):
64
85
  """创建或修改预应力材料。
65
86
 
66
87
  Args:
@@ -70,10 +91,12 @@ def osis_material_prestressed(nMat: int, strName: str, eMaterialType: Literal["P
70
91
  eCode (str): 材料标准代码,可选值:
71
92
  * JTG3362_2018
72
93
  * JTGD62_2004
94
+ * Unassigned(无规范)
73
95
  eGrade (str): 材料等级牌号,根据材料类型可选:
74
- * JTG3362_2018: Strand1720, Strand1860, Strand1960, Wire1470, Wire1570,
96
+ * JTG3362_2018: Strand1720, Strand1860, Strand1960, Wire1470, Wire1570,
75
97
  Wire1770, Wire1860, Rebar785, Rebar930, Rebar1080
76
98
  * JTGD62_2004: Strand1860, Wire1670, Wire1770, Rebar785, Rebar930
99
+ * 选择 Unassigned(无规范)时缺省
77
100
  dDmp (float): 材料阻尼比
78
101
 
79
102
  Returns:
@@ -84,8 +107,11 @@ def osis_material_prestressed(nMat: int, strName: str, eMaterialType: Literal["P
84
107
  pass
85
108
 
86
109
  @REGISTRY.register('Material')
87
- def osis_material_rebar(nMat: int, strName: str, eMaterialType: Literal["REBAR"], eCode: Literal["JTG3362_2018", "JTGD62_2004"],
88
- eGrade: Literal["HPB300", "HRB400", "HRBF400", "RRB400", "HRB500"] | Literal["R235", "HRB335", "HRB400", "KL400"], dDmp: float):
110
+ def osis_material_rebar(nMat: int, strName: str, eMaterialType: Literal["REBAR"],
111
+ eCode: Literal["JTG3362_2018", "JTGD62_2004", "Unassigned"],
112
+ eGrade: Literal["HPB300", "HRB400", "HRBF400", "RRB400", "HRB500"]
113
+ | Literal["R235", "HRB335", "HRB400", "KL400"] | str = "",
114
+ dDmp: float = 0.0):
89
115
  """创建或修改普通钢筋材料
90
116
 
91
117
  Args:
@@ -95,9 +121,11 @@ def osis_material_rebar(nMat: int, strName: str, eMaterialType: Literal["REBAR"]
95
121
  eCode (str): 材料标准代码,可选值:
96
122
  * JTG3362_2018
97
123
  * JTGD62_2004
124
+ * Unassigned(无规范)
98
125
  eGrade (str): 材料等级牌号,根据材料类型可选(不按照规定填写可能会有错误):
99
126
  * JTG3362_2018: HPB300, HRB400, HRBF400, RRB400, HRB500
100
127
  * JTGD62_2004: R235, HRB335, HRB400, KL400
128
+ * 选择 Unassigned(无规范)时缺省
101
129
  dDmp (float): 材料阻尼比
102
130
 
103
131
  Returns:
@@ -130,6 +158,41 @@ def osis_material_custom(nMat: int, strName: str, eMaterialType: Literal["CUSTOM
130
158
  """
131
159
  pass
132
160
 
161
+ @REGISTRY.register('MaterialMP')
162
+ def osis_material_modify_para(nMat: int, strOP: str,
163
+ eMaterialType: Literal["CONC", "STEEL", "PRESTRESSED", "REBAR"],
164
+ dE: float, dG: float, dMu: float, dExpCoeff: float,
165
+ dUnitWeight: float, dDensity: float,
166
+ fType1: float = 0.0, fType2: float = 0.0,
167
+ fType3: float = 0.0, fType4: float = 0.0):
168
+ """修改已有材料数据。
169
+
170
+ 用于在选定 Unassigned(无规范)后修改上一规范材料的弹性和设计数据。
171
+
172
+ Args:
173
+ nMat (int): 已有材料编号
174
+ strOP (str): 操作,m = 修改
175
+ eMaterialType (str): 材料类型,不区分大小写。CONC/STEEL/PRESTRESSED/REBAR
176
+ dE (float): 弹性模量(Pa)
177
+ dG (float): 剪切模量(Pa)
178
+ dMu (float): 泊松比
179
+ dExpCoeff (float): 线膨胀系数(1/摄氏度)
180
+ dUnitWeight (float): 容重(N/m3)
181
+ dDensity (float): 质量密度(kg/m3)
182
+ fType1 (float): 第一个强度值
183
+ fType2 (float): 第二个强度值
184
+ fType3 (float): 第三个强度值
185
+ fType4 (float): 第四个强度值
186
+
187
+ 混凝土 fck,fcd,ftk,ftd;钢材暂无(填0);预应力 fpk,fpd,fppd;钢筋 fsk,fsd,fssd
188
+
189
+ Returns:
190
+ tuple (bool, str):
191
+ - bool: 操作是否成功
192
+ - str: 失败原因(如果操作失败)
193
+ """
194
+ pass
195
+
133
196
  @REGISTRY.register('MaterialDel')
134
197
  def osis_material_del(nMat: int):
135
198
  """删除一个材料
@@ -21,6 +21,7 @@ from .interface import (
21
21
  osis_material_prestressed,
22
22
  osis_material_rebar,
23
23
  osis_material_custom,
24
+ osis_material_modify_para,
24
25
  osis_material_del,
25
26
  osis_material_mod,
26
27
  )
@@ -219,8 +220,8 @@ class MaterialManager(BasicManager):
219
220
  self,
220
221
  no: int | None,
221
222
  name: str,
222
- code: Literal["JTG3362_2018", "JTGD62_2004"],
223
- grade: Literal["C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80"],
223
+ code: Literal["JTG3362_2018", "JTGD62_2004", "GB50010_2002", "GB50010_2010", "Unassigned"],
224
+ grade: Literal["C15", "C20", "C25", "C30", "C35", "C40", "C45", "C50", "C55", "C60", "C65", "C70", "C75", "C80"] | str = "",
224
225
  crep_shrk: int | str = "",
225
226
  dmp: float = 0.05,
226
227
  strength_prog: str = None,
@@ -233,9 +234,12 @@ class MaterialManager(BasicManager):
233
234
  code: 材料标准代码,可选值:
234
235
  - JTG3362_2018
235
236
  - JTGD62_2004
237
+ - GB50010_2002
238
+ - GB50010_2010
239
+ - Unassigned(无规范)
236
240
  grade: 材料等级牌号,可选值:
237
- C15, C20, C25, C30, C35, C40, C45, C50, C55, C60, C65, C70, C75, C80
238
- no: 材料编号,不指定时自动生成(取最大编号+1)
241
+ C15, C20, C25, C30, C35, C40, C45, C50, C55, C60, C65, C70, C75, C80;
242
+ 选择 Unassigned(无规范)时缺省
239
243
  crep_shrk: 收缩徐变特性编号,可缺省
240
244
  dmp: 材料阻尼比
241
245
  strength_prog: 强度进展特性名称(StrengthPrg 定义),None 时不带该列
@@ -257,8 +261,12 @@ class MaterialManager(BasicManager):
257
261
  self,
258
262
  no: int | None,
259
263
  name: str,
260
- code: Literal["JTGD64_2015"],
261
- grade: Literal["Q235", "Q345", "Q390", "Q420"],
264
+ code: Literal["JTGD64_2015", "GB50017_2017", "GB50018_2002", "GBT50018_2025",
265
+ "GB50017_2003", "GBJ17_1988", "JGJ99_2015", "JGJ99_1998",
266
+ "JTJ025_86", "Unassigned"],
267
+ grade: Literal["Q235", "Q345", "Q345GJ", "Q355", "Q390", "Q420", "Q460", "Q550",
268
+ "S280", "S350", "S550", "Grade3", "16Mn", "16Mnq", "15MnV",
269
+ "15MnVq", "A3"] | str = "",
262
270
  dmp: float = 0.0,
263
271
 
264
272
  ) -> Material:
@@ -269,11 +277,19 @@ class MaterialManager(BasicManager):
269
277
  name: 材料名称
270
278
  code: 材料标准代码,可选值:
271
279
  - JTGD64_2015
280
+ - GB50017_2017
281
+ - GB50018_2002
282
+ - GBT50018_2025
283
+ - GB50017_2003
284
+ - GBJ17_1988
285
+ - JGJ99_2015
286
+ - JGJ99_1998
287
+ - JTJ025_86
288
+ - Unassigned(无规范)
272
289
  grade: 材料等级牌号,根据材料类型可选:
273
- - Q235
274
- - Q345
275
- - Q390
276
- - Q420
290
+ - Q235, Q345, Q345GJ, Q355, Q390, Q420, Q460, Q550
291
+ - S280, S350, S550, Grade3, 16Mn, 16Mnq, 15MnV, 15MnVq, A3
292
+ - 选择 Unassigned(无规范)时缺省
277
293
  dmp: 材料阻尼比
278
294
 
279
295
  Returns:
@@ -296,8 +312,8 @@ class MaterialManager(BasicManager):
296
312
  self,
297
313
  no: int | None,
298
314
  name: str,
299
- code: Literal["JTG3362_2018", "JTGD62_2004"],
300
- grade: str,
315
+ code: Literal["JTG3362_2018", "JTGD62_2004", "Unassigned"],
316
+ grade: str = "",
301
317
  dmp: float = 0.0,
302
318
 
303
319
  ) -> Material:
@@ -309,10 +325,12 @@ class MaterialManager(BasicManager):
309
325
  code: 材料标准代码,可选值:
310
326
  - JTG3362_2018
311
327
  - JTGD62_2004
328
+ - Unassigned(无规范)
312
329
  grade: 材料等级牌号,根据材料标准可选:
313
330
  - JTG3362_2018: Strand1720, Strand1860, Strand1960, Wire1470, Wire1570,
314
331
  Wire1770, Wire1860, Rebar785, Rebar930, Rebar1080
315
332
  - JTGD62_2004: Strand1860, Wire1670, Wire1770, Rebar785, Rebar930
333
+ - 选择 Unassigned(无规范)时缺省
316
334
  dmp: 材料阻尼比
317
335
 
318
336
  Returns:
@@ -335,8 +353,9 @@ class MaterialManager(BasicManager):
335
353
  self,
336
354
  no: int | None,
337
355
  name: str,
338
- code: Literal["JTG3362_2018", "JTGD62_2004"],
339
- grade: Literal["HPB300", "HRB400", "HRBF400", "RRB400", "HRB500"] | Literal["R235", "HRB335", "HRB400", "KL400"],
356
+ code: Literal["JTG3362_2018", "JTGD62_2004", "Unassigned"],
357
+ grade: Literal["HPB300", "HRB400", "HRBF400", "RRB400", "HRB500"]
358
+ | Literal["R235", "HRB335", "HRB400", "KL400"] | str = "",
340
359
  dmp: float = 0.0,
341
360
  ) -> Material:
342
361
  """创建钢筋材料。
@@ -347,9 +366,11 @@ class MaterialManager(BasicManager):
347
366
  code: 材料标准代码,可选值:
348
367
  - JTG3362_2018
349
368
  - JTGD62_2004
369
+ - Unassigned(无规范)
350
370
  grade: 材料等级牌号,根据材料类型可选(不按照规定填写可能会有错误):
351
371
  - JTG3362_2018: HPB300, HRB400, HRBF400, RRB400, HRB500
352
372
  - JTGD62_2004: R235, HRB335, HRB400, KL400
373
+ - 选择 Unassigned(无规范)时缺省
353
374
  dmp: 材料阻尼比
354
375
 
355
376
  Returns:
@@ -416,6 +437,66 @@ class MaterialManager(BasicManager):
416
437
  raise RuntimeError(f"创建自定义材料 {no} 失败: {err}")
417
438
  return self.get(no)
418
439
 
440
+ def modify_para(
441
+ self,
442
+ no: int | None,
443
+ op: str,
444
+ type: Literal["CONC", "STEEL", "PRESTRESSED", "REBAR"],
445
+ e: float,
446
+ g: float,
447
+ mu: float,
448
+ exp_coeff: float,
449
+ unit_weight: float,
450
+ density: float,
451
+ f_type1: float = 0.0,
452
+ f_type2: float = 0.0,
453
+ f_type3: float = 0.0,
454
+ f_type4: float = 0.0,
455
+ ) -> Material:
456
+ """修改已有材料数据(对应命令流 MaterialMP)。
457
+
458
+ 用于在选定 Unassigned(无规范)后修改上一规范材料的弹性和设计数据。
459
+ 形参顺序与命令流一致:
460
+ MaterialMP, Index, OP, Type, E, G, Mu, ExpCoeff, UnitWeight, Density,
461
+ fType1, fType2, fType3, fType4
462
+
463
+ Args:
464
+ no: 已有材料编号
465
+ op: 操作,m = 修改
466
+ type: 材料类型
467
+ - CONC = 混凝土
468
+ - STEEL = 钢材
469
+ - PRESTRESSED = 预应力材料
470
+ - REBAR = 普通钢筋
471
+ e: 弹性模量(Pa)
472
+ g: 剪切模量(Pa)
473
+ mu: 泊松比
474
+ exp_coeff: 线膨胀系数(1/摄氏度)
475
+ unit_weight: 容重(N/m3)
476
+ density: 质量密度(kg/m3)
477
+ f_type1: 第一个强度值
478
+ f_type2: 第二个强度值
479
+ f_type3: 第三个强度值
480
+ f_type4: 第四个强度值
481
+
482
+ 混凝土 fck,fcd,ftk,ftd;钢材暂无(填0);
483
+ 预应力 fpk,fpd,fppd;钢筋 fsk,fsd,fssd
484
+
485
+ Returns:
486
+ 修改后的材料对象
487
+
488
+ Raises:
489
+ RuntimeError: 修改失败时抛出异常
490
+ """
491
+ ok, err = osis_material_modify_para(
492
+ no, op, str(type).upper(),
493
+ e, g, mu, exp_coeff, unit_weight, density,
494
+ f_type1, f_type2, f_type3, f_type4,
495
+ )
496
+ if not ok:
497
+ raise RuntimeError(f"修改材料 {no} 参数失败: {err}")
498
+ return self.get(no)
499
+
419
500
  def delete(self, no: int) -> None:
420
501
  """删除材料
421
502
 
@@ -49,6 +49,10 @@ from .steel import (
49
49
  osis_section_steel_custom,
50
50
  osis_section_steel_custom_plate,
51
51
  osis_steel_plate,
52
+ osis_steel_plate_detail,
53
+ osis_steel_plate_del,
54
+ osis_rib_layout_c,
55
+ osis_rib_layout_c_del,
52
56
  )
53
57
  from .shaped_steel import (
54
58
  osis_section_shaped_steel_l,
@@ -1101,40 +1105,149 @@ class Section:
1101
1105
 
1102
1106
  def add_steel_plate(
1103
1107
  self,
1104
- plate_id: int,
1105
- plate_type: Literal["Top", "Bottom", "Web"],
1106
- start_x: float,
1107
- start_y: float,
1108
- end_x: float,
1109
- end_y: float,
1110
- thickness: float,
1108
+ plate_id_or_position: int | str,
1109
+ *args: Any,
1111
1110
  ) -> None:
1112
- """定义或修改自定义钢梁截面的板件。
1111
+ """定义或修改自定义钢梁截面的母板 / 板件。
1112
+
1113
+ 命令流 `SteelPlate` 有两种字段组合,用第一个字段区分:
1114
+
1115
+ * 母板(PlateID 为数字)::
1116
+
1117
+ SteelPlate, Index, PlateID, Type, StartX, StartY, EndX, EndY, Thickness
1118
+
1119
+ * 板件(PlatePosition 为板件位置名)::
1120
+
1121
+ SteelPlate, Index, PlatePosition, StartX, StartY, EndX, EndY,
1122
+ Thickness, IsSymmetric, RibStartPosition,
1123
+ RibStartDistance, RibLocation
1113
1124
 
1114
1125
  Args:
1115
- plate_id (int): 板件编号,大于 0,同一截面内唯一;已存在的编号表示修改
1116
- plate_type (str): 板件类型
1117
- * Top = 顶板
1118
- * Bottom = 底板
1119
- * Web = 腹板
1120
- start_x (float): 板件起始点x坐标。
1121
- start_y (float): 板件起始点y坐标。
1122
- end_x (float): 板件终点x坐标。
1123
- end_y (float): 板件终点y坐标。
1124
- thickness (float): 板件厚度,大于 0。
1126
+ plate_id_or_position: 母板形式为板件编号(int);板件形式为
1127
+ 板件位置(str,如 "TopFlange" / "SideWeb" / "MiddleWeb1")。
1128
+ *args: 其余字段按命令流原序:
1129
+ - 母板: (plate_type, start_x, start_y, end_x, end_y, thickness)
1130
+ - 板件: (start_x, start_y, end_x, end_y, thickness,
1131
+ is_symmetric, rib_start_position, rib_start_distance,
1132
+ rib_location)
1125
1133
 
1126
1134
  Raises:
1135
+ ValueError: 字段个数与形式不匹配
1127
1136
  RuntimeError: 添加失败时抛出
1137
+ """
1138
+ if isinstance(plate_id_or_position, int):
1139
+ plate_id = plate_id_or_position
1140
+ elif (
1141
+ isinstance(plate_id_or_position, str)
1142
+ and plate_id_or_position.strip().isdigit()
1143
+ ):
1144
+ plate_id = int(plate_id_or_position)
1145
+ else:
1146
+ plate_id = None
1128
1147
 
1129
- Note:
1130
- 加劲肋不在这里定义,用 add_rib_layout。
1148
+ if plate_id is not None:
1149
+ if len(args) != 6:
1150
+ raise ValueError(
1151
+ "母板形式需要 6 个参数: "
1152
+ "(plate_type, start_x, start_y, end_x, end_y, thickness)"
1153
+ )
1154
+ plate_type, start_x, start_y, end_x, end_y, thickness = args
1155
+ ok, err = osis_steel_plate(
1156
+ self.no, plate_id, plate_type,
1157
+ start_x, start_y, end_x, end_y, thickness,
1158
+ )
1159
+ if not ok:
1160
+ raise RuntimeError(f"添加截面 {self.no} 母板 {plate_id} 失败: {err}")
1161
+ return
1162
+
1163
+ if len(args) != 9:
1164
+ raise ValueError(
1165
+ "板件形式需要 9 个参数: "
1166
+ "(start_x, start_y, end_x, end_y, thickness, is_symmetric, "
1167
+ "rib_start_position, rib_start_distance, rib_location)"
1168
+ )
1169
+ ok, err = osis_steel_plate_detail(
1170
+ self.no, str(plate_id_or_position), *args,
1171
+ )
1172
+ if not ok:
1173
+ raise RuntimeError(
1174
+ f"添加截面 {self.no} 板件 {plate_id_or_position} 失败: {err}"
1175
+ )
1176
+
1177
+ def delete_steel_plate(self, plate_id: int) -> None:
1178
+ """删除自定义钢梁截面的母板。
1179
+
1180
+ Args:
1181
+ plate_id (int): 母板编号。
1182
+
1183
+ Raises:
1184
+ RuntimeError: 删除失败时抛出
1185
+ """
1186
+ ok, err = osis_steel_plate_del(self.no, plate_id)
1187
+ if not ok:
1188
+ raise RuntimeError(f"删除截面 {self.no} 母板 {plate_id} 失败: {err}")
1189
+
1190
+ def add_rib_layout_c(
1191
+ self,
1192
+ plate_id: int,
1193
+ layout_id: int,
1194
+ rib_name: str,
1195
+ rib_start_position: Literal[0, 1],
1196
+ rib_location: Literal["Left", "Right", "Both"],
1197
+ *layout: Any,
1198
+ ) -> None:
1199
+ """定义或修改自定义钢梁截面板件上的加劲肋布置。
1200
+
1201
+ 命令流:RibLayoutC, Index, PlateID, LayoutID, RibName,
1202
+ RibStartPosition, RibLocation, LayoutDis1, LayoutNum1, ..., LayoutDisi, LayoutNumi
1203
+
1204
+ Args:
1205
+ plate_id: 母板编号
1206
+ layout_id: 加劲肋布置信息编号
1207
+ rib_name: 加劲肋名称
1208
+ rib_start_position: 布置参考点,1=从起点开始,0=从终点开始
1209
+ rib_location: 以起点到终点的线段为基准,Left=左侧,Right=右侧,Both=双侧
1210
+ *layout: (布置间距, 布置次数) 序列。可直接展平传
1211
+ (d1, n1, d2, n2, ...),也可传 [(d1, n1), (d2, n2), ...]。
1212
+
1213
+ Raises:
1214
+ ValueError: 间距/次数不是成对出现
1215
+ RuntimeError: 添加失败时抛出
1131
1216
  """
1132
- ok, err = osis_steel_plate(
1133
- self.no, plate_id, plate_type,
1134
- start_x, start_y, end_x, end_y, thickness,
1217
+ flat: list[Any] = []
1218
+ stack = list(layout)
1219
+ while stack:
1220
+ item = stack.pop(0)
1221
+ if isinstance(item, (list, tuple)):
1222
+ stack[0:0] = list(item)
1223
+ else:
1224
+ flat.append(item)
1225
+ if len(flat) % 2:
1226
+ raise ValueError("加劲肋布置需要 (间距, 次数) 成对出现")
1227
+ ok, err = osis_rib_layout_c(
1228
+ self.no, plate_id, layout_id, rib_name,
1229
+ rib_start_position, rib_location, *flat,
1135
1230
  )
1136
1231
  if not ok:
1137
- raise RuntimeError(f"添加截面 {self.no} 板件 {plate_id} 失败: {err}")
1232
+ raise RuntimeError(
1233
+ f"添加截面 {self.no} 母板 {plate_id} 加劲肋布置 {layout_id} 失败: {err}"
1234
+ )
1235
+
1236
+ def delete_rib_layout_c(self, plate_id: int, layout_id: int) -> None:
1237
+ """删除自定义钢梁截面板件上的加劲肋布置。
1238
+
1239
+ Args:
1240
+ plate_id (int): 母板编号
1241
+ layout_id (int): 加劲肋布置信息编号
1242
+
1243
+ Raises:
1244
+ RuntimeError: 删除失败时抛出
1245
+ """
1246
+ ok, err = osis_rib_layout_c_del(self.no, plate_id, layout_id)
1247
+ if not ok:
1248
+ raise RuntimeError(
1249
+ f"删除截面 {self.no} 母板 {plate_id} 加劲肋布置 {layout_id} 失败: {err}"
1250
+ )
1138
1251
 
1139
1252
  def renumber(self, new_no: int) -> None:
1140
1253
  '''修改截面编号
@@ -245,7 +245,7 @@ def osis_section_steel_custom_plate(Index: int, Name: str, Type: Literal["STEELC
245
245
  @REGISTRY.register("SteelPlate")
246
246
  def osis_steel_plate(Index: int, PlateID: int, PlateType: Literal["Top", "Bottom", "Web"],
247
247
  StartX: float, StartY: float, EndX: float, EndY: float, Thickness: float):
248
- """定义或修改自定义钢梁截面的板件。
248
+ """定义或修改自定义钢梁截面的母板。
249
249
 
250
250
  Args:
251
251
  Index (int): 截面编号。
@@ -260,6 +260,102 @@ def osis_steel_plate(Index: int, PlateID: int, PlateType: Literal["Top", "Bottom
260
260
  EndY (float): 板件终点y坐标。
261
261
  Thickness (float): 板件厚度,大于 0。
262
262
 
263
+ Returns:
264
+ tuple (bool, str): 返回一个元组,包含:
265
+ - bool: 操作是否成功
266
+ - str: 失败原因(如果操作失败)
267
+ """
268
+ pass
269
+
270
+
271
+ @REGISTRY.register("SteelPlate")
272
+ def osis_steel_plate_detail(Index: int, PlatePosition: str,
273
+ StartX: float, StartY: float, EndX: float, EndY: float,
274
+ Thickness: float, IsSymmetric: Literal[0, 1],
275
+ RibStartPosition: Literal[0, 1], RibStartDistance: float,
276
+ RibLocation: Literal["Left", "Right", "Both"]):
277
+ """定义或修改自定义钢梁截面的板件(母板定义完成后的逐板参数)。
278
+
279
+ Args:
280
+ Index (int): 截面编号。
281
+ PlatePosition (str): 板件所在位置。
282
+ * 顶板:TopFlange、TopFlange1~TopFlange10
283
+ * 斜顶板:TopFlangeInclined、TopFlangeInclined1~TopFlangeInclined10
284
+ * 底板:BottomFlange、BottomFlange1~BottomFlange10
285
+ * 斜底板:BottomFlangeInclined、BottomFlangeInclined1~BottomFlangeInclined10
286
+ * 边腹板:SideWeb、SideWebL、SideWebR
287
+ * 中腹板:MiddleWeb、MiddleWeb1~MiddleWeb10
288
+ * 无加劲肋的板件:PlateWithoutRib
289
+ StartX (float): 板件起始点x坐标。
290
+ StartY (float): 板件起始点y坐标。
291
+ EndX (float): 板件终点x坐标。
292
+ EndY (float): 板件终点y坐标。
293
+ Thickness (float): 板件厚度。
294
+ IsSymmetric (int): 板件是否关于 y 轴对称,1=对称,0=不对称。
295
+ RibStartPosition (int): 加劲肋起始位置,1=从起点开始布置,0=从终点开始布置。
296
+ RibStartDistance (float): 加劲肋起始位置与板件端点的距离。
297
+ RibLocation (str): 加劲肋布置位置。
298
+ * 非中腹板的一般板件:以起点到终点的线段为基准,Left=左侧,Right=右侧,不可选 Both
299
+ * 中腹板:加劲肋在腹板两侧布置的绝对位置,与起止点无关
300
+
301
+ Returns:
302
+ tuple (bool, str): 返回一个元组,包含:
303
+ - bool: 操作是否成功
304
+ - str: 失败原因(如果操作失败)
305
+ """
306
+ pass
307
+
308
+
309
+ @REGISTRY.register("SteelPlateDel")
310
+ def osis_steel_plate_del(Index: int, PlateID: int):
311
+ """删除自定义钢梁截面的母板。
312
+
313
+ Args:
314
+ Index (int): 截面编号。
315
+ PlateID (int): 母板编号。
316
+
317
+ Returns:
318
+ tuple (bool, str): 返回一个元组,包含:
319
+ - bool: 操作是否成功
320
+ - str: 失败原因(如果操作失败)
321
+ """
322
+ pass
323
+
324
+
325
+ @REGISTRY.register("RibLayoutC")
326
+ def osis_rib_layout_c(Index: int, PlateID: int, LayoutID: int, RibName: str,
327
+ RibStartPosition: Literal[0, 1],
328
+ RibLocation: Literal["Left", "Right", "Both"],
329
+ *layout: Any):
330
+ """定义或修改自定义钢梁截面的加劲肋布置。
331
+
332
+ Args:
333
+ Index (int): 截面编号。
334
+ PlateID (int): 母板编号。
335
+ LayoutID (int): 加劲肋布置信息编号。
336
+ RibName (str): 加劲肋名称。
337
+ RibStartPosition (int): 加劲肋布置参考点,1=从起点开始布置,0=从终点开始布置。
338
+ RibLocation (str): 以起点到终点的线段为基准,Left=左侧,Right=右侧,Both=双侧。
339
+ *layout: 展平的 (布置间距, 布置次数) 序列:
340
+ LayoutDis1, LayoutNum1, ..., LayoutDisi, LayoutNumi。
341
+
342
+ Returns:
343
+ tuple (bool, str): 返回一个元组,包含:
344
+ - bool: 操作是否成功
345
+ - str: 失败原因(如果操作失败)
346
+ """
347
+ pass
348
+
349
+
350
+ @REGISTRY.register("RibLayoutCDel")
351
+ def osis_rib_layout_c_del(Index: int, PlateID: int, LayoutID: int):
352
+ """删除自定义钢梁截面板件上的加劲肋布置。
353
+
354
+ Args:
355
+ Index (int): 截面编号。
356
+ PlateID (int): 母板编号。
357
+ LayoutID (int): 加劲肋布置信息编号。
358
+
263
359
  Returns:
264
360
  tuple (bool, str): 返回一个元组,包含:
265
361
  - bool: 操作是否成功