RS3Scripting 4.42.0__py3-none-any.whl

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 (393) hide show
  1. rs3/ApplicationManager.py +77 -0
  2. rs3/ColorPicker.py +123 -0
  3. rs3/CommonEnums.py +16 -0
  4. rs3/Compute.py +105 -0
  5. rs3/ExternalVolume.py +48 -0
  6. rs3/Geometry.py +74 -0
  7. rs3/Model.py +795 -0
  8. rs3/ModelEnums.py +9 -0
  9. rs3/RS3Modeler.py +109 -0
  10. rs3/Restraints.py +91 -0
  11. rs3/Selection.py +123 -0
  12. rs3/__init__.py +18 -0
  13. rs3/_client.py +57 -0
  14. rs3/_proxyObject.py +5 -0
  15. rs3/generatedFiles/BFPCommonMessage_pb2.py +38 -0
  16. rs3/generatedFiles/BFPCommonMessage_pb2.pyi +47 -0
  17. rs3/generatedFiles/BFPCommonMessage_pb2_grpc.py +24 -0
  18. rs3/generatedFiles/BeamDataService_pb2.py +37 -0
  19. rs3/generatedFiles/BeamDataService_pb2.pyi +5 -0
  20. rs3/generatedFiles/BeamDataService_pb2_grpc.py +226 -0
  21. rs3/generatedFiles/BeamService_pb2.py +37 -0
  22. rs3/generatedFiles/BeamService_pb2.pyi +5 -0
  23. rs3/generatedFiles/BeamService_pb2_grpc.py +140 -0
  24. rs3/generatedFiles/BeamStageFactorService_pb2.py +37 -0
  25. rs3/generatedFiles/BeamStageFactorService_pb2.pyi +5 -0
  26. rs3/generatedFiles/BeamStageFactorService_pb2_grpc.py +140 -0
  27. rs3/generatedFiles/BeamsResultsQueryService_pb2.py +50 -0
  28. rs3/generatedFiles/BeamsResultsQueryService_pb2.pyi +48 -0
  29. rs3/generatedFiles/BeamsResultsQueryService_pb2_grpc.py +141 -0
  30. rs3/generatedFiles/BoltDataService_pb2.py +37 -0
  31. rs3/generatedFiles/BoltDataService_pb2.pyi +5 -0
  32. rs3/generatedFiles/BoltDataService_pb2_grpc.py +226 -0
  33. rs3/generatedFiles/BoltService_pb2.py +37 -0
  34. rs3/generatedFiles/BoltService_pb2.pyi +5 -0
  35. rs3/generatedFiles/BoltService_pb2_grpc.py +140 -0
  36. rs3/generatedFiles/BoltsResultsQueryService_pb2.py +51 -0
  37. rs3/generatedFiles/BoltsResultsQueryService_pb2.pyi +75 -0
  38. rs3/generatedFiles/BoltsResultsQueryService_pb2_grpc.py +141 -0
  39. rs3/generatedFiles/ClientService_pb2.py +40 -0
  40. rs3/generatedFiles/ClientService_pb2.pyi +15 -0
  41. rs3/generatedFiles/ClientService_pb2_grpc.py +97 -0
  42. rs3/generatedFiles/CommonGeometryMessages_pb2.py +52 -0
  43. rs3/generatedFiles/CommonGeometryMessages_pb2.pyi +92 -0
  44. rs3/generatedFiles/CommonGeometryMessages_pb2_grpc.py +24 -0
  45. rs3/generatedFiles/CommonMessages_pb2.py +66 -0
  46. rs3/generatedFiles/CommonMessages_pb2.pyi +145 -0
  47. rs3/generatedFiles/CommonMessages_pb2_grpc.py +24 -0
  48. rs3/generatedFiles/CompositeLinerDataService_pb2.py +47 -0
  49. rs3/generatedFiles/CompositeLinerDataService_pb2.pyi +51 -0
  50. rs3/generatedFiles/CompositeLinerDataService_pb2_grpc.py +227 -0
  51. rs3/generatedFiles/CompositeLinerResultsQueryService_pb2.py +63 -0
  52. rs3/generatedFiles/CompositeLinerResultsQueryService_pb2.pyi +139 -0
  53. rs3/generatedFiles/CompositeLinerResultsQueryService_pb2_grpc.py +314 -0
  54. rs3/generatedFiles/CompositeLinerService_pb2.py +37 -0
  55. rs3/generatedFiles/CompositeLinerService_pb2.pyi +5 -0
  56. rs3/generatedFiles/CompositeLinerService_pb2_grpc.py +140 -0
  57. rs3/generatedFiles/ComputeService_pb2.py +48 -0
  58. rs3/generatedFiles/ComputeService_pb2.pyi +56 -0
  59. rs3/generatedFiles/ComputeService_pb2_grpc.py +147 -0
  60. rs3/generatedFiles/ExternalVolumesService_pb2.py +45 -0
  61. rs3/generatedFiles/ExternalVolumesService_pb2.pyi +34 -0
  62. rs3/generatedFiles/ExternalVolumesService_pb2_grpc.py +270 -0
  63. rs3/generatedFiles/FieldStressService_pb2.py +37 -0
  64. rs3/generatedFiles/FieldStressService_pb2.pyi +5 -0
  65. rs3/generatedFiles/FieldStressService_pb2_grpc.py +140 -0
  66. rs3/generatedFiles/FieldStressSourceService_pb2.py +85 -0
  67. rs3/generatedFiles/FieldStressSourceService_pb2.pyi +182 -0
  68. rs3/generatedFiles/FieldStressSourceService_pb2_grpc.py +657 -0
  69. rs3/generatedFiles/GaussPointFailureMessage_pb2.py +37 -0
  70. rs3/generatedFiles/GaussPointFailureMessage_pb2.pyi +14 -0
  71. rs3/generatedFiles/GaussPointFailureMessage_pb2_grpc.py +24 -0
  72. rs3/generatedFiles/HydraulicStageFactorService_pb2.py +45 -0
  73. rs3/generatedFiles/HydraulicStageFactorService_pb2.pyi +36 -0
  74. rs3/generatedFiles/HydraulicStageFactorService_pb2_grpc.py +227 -0
  75. rs3/generatedFiles/JointDataService_pb2.py +45 -0
  76. rs3/generatedFiles/JointDataService_pb2.pyi +30 -0
  77. rs3/generatedFiles/JointDataService_pb2_grpc.py +313 -0
  78. rs3/generatedFiles/JointResultsQueryService_pb2.py +54 -0
  79. rs3/generatedFiles/JointResultsQueryService_pb2.pyi +92 -0
  80. rs3/generatedFiles/JointResultsQueryService_pb2_grpc.py +141 -0
  81. rs3/generatedFiles/JointService_pb2.py +45 -0
  82. rs3/generatedFiles/JointService_pb2.pyi +30 -0
  83. rs3/generatedFiles/JointService_pb2_grpc.py +227 -0
  84. rs3/generatedFiles/JointStageFactorService_pb2.py +37 -0
  85. rs3/generatedFiles/JointStageFactorService_pb2.pyi +5 -0
  86. rs3/generatedFiles/JointStageFactorService_pb2_grpc.py +140 -0
  87. rs3/generatedFiles/LinerDataService_pb2.py +37 -0
  88. rs3/generatedFiles/LinerDataService_pb2.pyi +5 -0
  89. rs3/generatedFiles/LinerDataService_pb2_grpc.py +226 -0
  90. rs3/generatedFiles/LinerService_pb2.py +37 -0
  91. rs3/generatedFiles/LinerService_pb2.pyi +5 -0
  92. rs3/generatedFiles/LinerService_pb2_grpc.py +140 -0
  93. rs3/generatedFiles/LinerStageFactorService_pb2.py +37 -0
  94. rs3/generatedFiles/LinerStageFactorService_pb2.pyi +5 -0
  95. rs3/generatedFiles/LinerStageFactorService_pb2_grpc.py +140 -0
  96. rs3/generatedFiles/MaterialDataService_pb2.py +37 -0
  97. rs3/generatedFiles/MaterialDataService_pb2.pyi +5 -0
  98. rs3/generatedFiles/MaterialDataService_pb2_grpc.py +226 -0
  99. rs3/generatedFiles/MaterialDatumService_pb2.py +45 -0
  100. rs3/generatedFiles/MaterialDatumService_pb2.pyi +38 -0
  101. rs3/generatedFiles/MaterialDatumService_pb2_grpc.py +140 -0
  102. rs3/generatedFiles/MaterialHydraulicDataService_pb2.py +93 -0
  103. rs3/generatedFiles/MaterialHydraulicDataService_pb2.pyi +193 -0
  104. rs3/generatedFiles/MaterialHydraulicDataService_pb2_grpc.py +829 -0
  105. rs3/generatedFiles/MaterialHydraulicModelService_pb2.py +55 -0
  106. rs3/generatedFiles/MaterialHydraulicModelService_pb2.pyi +79 -0
  107. rs3/generatedFiles/MaterialHydraulicModelService_pb2_grpc.py +313 -0
  108. rs3/generatedFiles/MaterialInitialConditionsService_pb2.py +37 -0
  109. rs3/generatedFiles/MaterialInitialConditionsService_pb2.pyi +5 -0
  110. rs3/generatedFiles/MaterialInitialConditionsService_pb2_grpc.py +140 -0
  111. rs3/generatedFiles/MaterialJointService_pb2.py +49 -0
  112. rs3/generatedFiles/MaterialJointService_pb2.pyi +52 -0
  113. rs3/generatedFiles/MaterialJointService_pb2_grpc.py +183 -0
  114. rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2.py +69 -0
  115. rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2.pyi +130 -0
  116. rs3/generatedFiles/MaterialJointSetSlipCriterionService_pb2_grpc.py +398 -0
  117. rs3/generatedFiles/MaterialJointStageFactorService_pb2.py +45 -0
  118. rs3/generatedFiles/MaterialJointStageFactorService_pb2.pyi +42 -0
  119. rs3/generatedFiles/MaterialJointStageFactorService_pb2_grpc.py +140 -0
  120. rs3/generatedFiles/MaterialStageFactorsService_pb2.py +37 -0
  121. rs3/generatedFiles/MaterialStageFactorsService_pb2.pyi +5 -0
  122. rs3/generatedFiles/MaterialStageFactorsService_pb2_grpc.py +140 -0
  123. rs3/generatedFiles/MaterialStiffnessFormulaService_pb2.py +47 -0
  124. rs3/generatedFiles/MaterialStiffnessFormulaService_pb2.pyi +54 -0
  125. rs3/generatedFiles/MaterialStiffnessFormulaService_pb2_grpc.py +140 -0
  126. rs3/generatedFiles/MaterialStiffnessService_pb2.py +53 -0
  127. rs3/generatedFiles/MaterialStiffnessService_pb2.pyi +66 -0
  128. rs3/generatedFiles/MaterialStiffnessService_pb2_grpc.py +313 -0
  129. rs3/generatedFiles/MaterialStrengthService_pb2.py +105 -0
  130. rs3/generatedFiles/MaterialStrengthService_pb2.pyi +243 -0
  131. rs3/generatedFiles/MaterialStrengthService_pb2_grpc.py +833 -0
  132. rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2.py +47 -0
  133. rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2.pyi +43 -0
  134. rs3/generatedFiles/MaterialUnsaturatedSoilDataService_pb2_grpc.py +228 -0
  135. rs3/generatedFiles/MeshSettingsService_pb2.py +41 -0
  136. rs3/generatedFiles/MeshSettingsService_pb2.pyi +16 -0
  137. rs3/generatedFiles/MeshSettingsService_pb2_grpc.py +184 -0
  138. rs3/generatedFiles/ModelFunctionService_pb2.py +119 -0
  139. rs3/generatedFiles/ModelFunctionService_pb2.pyi +331 -0
  140. rs3/generatedFiles/ModelFunctionService_pb2_grpc.py +871 -0
  141. rs3/generatedFiles/ModelService_pb2.py +342 -0
  142. rs3/generatedFiles/ModelService_pb2.pyi +962 -0
  143. rs3/generatedFiles/ModelService_pb2_grpc.py +3322 -0
  144. rs3/generatedFiles/PileDataService_pb2.py +55 -0
  145. rs3/generatedFiles/PileDataService_pb2.pyi +63 -0
  146. rs3/generatedFiles/PileDataService_pb2_grpc.py +399 -0
  147. rs3/generatedFiles/PileForepoleResultsQueryService_pb2.py +51 -0
  148. rs3/generatedFiles/PileForepoleResultsQueryService_pb2.pyi +63 -0
  149. rs3/generatedFiles/PileForepoleResultsQueryService_pb2_grpc.py +141 -0
  150. rs3/generatedFiles/PileStageFactorService_pb2.py +37 -0
  151. rs3/generatedFiles/PileStageFactorService_pb2.pyi +5 -0
  152. rs3/generatedFiles/PileStageFactorService_pb2_grpc.py +140 -0
  153. rs3/generatedFiles/PlainStrandCableBoltService_pb2.py +44 -0
  154. rs3/generatedFiles/PlainStrandCableBoltService_pb2.pyi +30 -0
  155. rs3/generatedFiles/PlainStrandCableBoltService_pb2_grpc.py +140 -0
  156. rs3/generatedFiles/ProjectSettingsDataService_pb2.py +69 -0
  157. rs3/generatedFiles/ProjectSettingsDataService_pb2.pyi +119 -0
  158. rs3/generatedFiles/ProjectSettingsDataService_pb2_grpc.py +786 -0
  159. rs3/generatedFiles/RFCApplicationService_pb2.py +34 -0
  160. rs3/generatedFiles/RFCApplicationService_pb2.pyi +27 -0
  161. rs3/generatedFiles/RFCApplicationService_pb2_grpc.py +145 -0
  162. rs3/generatedFiles/RS3ModelerService_pb2.py +50 -0
  163. rs3/generatedFiles/RS3ModelerService_pb2.pyi +45 -0
  164. rs3/generatedFiles/RS3ModelerService_pb2_grpc.py +183 -0
  165. rs3/generatedFiles/RelativeStageFactorService_pb2.py +40 -0
  166. rs3/generatedFiles/RelativeStageFactorService_pb2.pyi +17 -0
  167. rs3/generatedFiles/RelativeStageFactorService_pb2_grpc.py +97 -0
  168. rs3/generatedFiles/RestraintsService_pb2.py +62 -0
  169. rs3/generatedFiles/RestraintsService_pb2.pyi +84 -0
  170. rs3/generatedFiles/RestraintsService_pb2_grpc.py +312 -0
  171. rs3/generatedFiles/ResultsQueryCommonMessage_pb2.py +56 -0
  172. rs3/generatedFiles/ResultsQueryCommonMessage_pb2.pyi +85 -0
  173. rs3/generatedFiles/ResultsQueryCommonMessage_pb2_grpc.py +24 -0
  174. rs3/generatedFiles/ResultsQueryService_pb2.py +87 -0
  175. rs3/generatedFiles/ResultsQueryService_pb2.pyi +185 -0
  176. rs3/generatedFiles/ResultsQueryService_pb2_grpc.py +745 -0
  177. rs3/generatedFiles/SelectionService_pb2.py +49 -0
  178. rs3/generatedFiles/SelectionService_pb2.pyi +51 -0
  179. rs3/generatedFiles/SelectionService_pb2_grpc.py +269 -0
  180. rs3/generatedFiles/SolidsResultsQueryService_pb2.py +93 -0
  181. rs3/generatedFiles/SolidsResultsQueryService_pb2.pyi +213 -0
  182. rs3/generatedFiles/SolidsResultsQueryService_pb2_grpc.py +195 -0
  183. rs3/generatedFiles/StageFactorService_pb2.py +58 -0
  184. rs3/generatedFiles/StageFactorService_pb2.pyi +79 -0
  185. rs3/generatedFiles/StageFactorService_pb2_grpc.py +226 -0
  186. rs3/generatedFiles/StiffnessStageFactorService_pb2.py +37 -0
  187. rs3/generatedFiles/StiffnessStageFactorService_pb2.pyi +5 -0
  188. rs3/generatedFiles/StiffnessStageFactorService_pb2_grpc.py +140 -0
  189. rs3/generatedFiles/StrengthStageFactorService_pb2.py +37 -0
  190. rs3/generatedFiles/StrengthStageFactorService_pb2.pyi +5 -0
  191. rs3/generatedFiles/StrengthStageFactorService_pb2_grpc.py +140 -0
  192. rs3/generatedFiles/WaterByLocationDataService_pb2.py +61 -0
  193. rs3/generatedFiles/WaterByLocationDataService_pb2.pyi +95 -0
  194. rs3/generatedFiles/WaterByLocationDataService_pb2_grpc.py +312 -0
  195. rs3/generatedFiles/WaterPressureGridDataService_pb2.py +63 -0
  196. rs3/generatedFiles/WaterPressureGridDataService_pb2.pyi +107 -0
  197. rs3/generatedFiles/WaterPressureGridDataService_pb2_grpc.py +312 -0
  198. rs3/generatedFiles/__init__.py +3 -0
  199. rs3/loadings/LoadingEnums.py +6 -0
  200. rs3/loadings/Loadings.py +15 -0
  201. rs3/loadings/__init__.py +0 -0
  202. rs3/loadings/fieldStress/AdvancedConstant.py +115 -0
  203. rs3/loadings/fieldStress/AdvancedGravity.py +176 -0
  204. rs3/loadings/fieldStress/Constant.py +119 -0
  205. rs3/loadings/fieldStress/FieldStress.py +38 -0
  206. rs3/loadings/fieldStress/Gravity.py +206 -0
  207. rs3/loadings/fieldStress/_PropertyAccessor.py +41 -0
  208. rs3/loadings/fieldStress/__init__.py +0 -0
  209. rs3/mesh/Graded.py +59 -0
  210. rs3/mesh/Mesh.py +50 -0
  211. rs3/mesh/MeshEnums.py +16 -0
  212. rs3/mesh/Uniform.py +35 -0
  213. rs3/mesh/_PropertyAccessor.py +10 -0
  214. rs3/mesh/__init__.py +0 -0
  215. rs3/projectSettings/Dynamic.py +110 -0
  216. rs3/projectSettings/Groundwater.py +118 -0
  217. rs3/projectSettings/ProjectSettingEnums.py +108 -0
  218. rs3/projectSettings/ProjectSettings.py +43 -0
  219. rs3/projectSettings/ShearStrengthReduction.py +130 -0
  220. rs3/projectSettings/SolverOptions.py +88 -0
  221. rs3/projectSettings/Stages.py +162 -0
  222. rs3/projectSettings/StressAnalysis.py +183 -0
  223. rs3/projectSettings/Units.py +82 -0
  224. rs3/projectSettings/_PropertyAccessor.py +133 -0
  225. rs3/projectSettings/__init__.py +0 -0
  226. rs3/properties/CustomHydraulicModel.py +129 -0
  227. rs3/properties/DiscreteFunction.py +147 -0
  228. rs3/properties/GeneralizedAnisotropicFunction.py +98 -0
  229. rs3/properties/IPropertyGroupAccessors.py +12 -0
  230. rs3/properties/PropertyEnums.py +387 -0
  231. rs3/properties/ShearNormalFunction.py +94 -0
  232. rs3/properties/SnowdenStrengthFunction.py +115 -0
  233. rs3/properties/_PropertyAccessor.py +111 -0
  234. rs3/properties/__init__.py +0 -0
  235. rs3/properties/beam/Beam.py +86 -0
  236. rs3/properties/beam/BeamCommon.py +175 -0
  237. rs3/properties/beam/Standard.py +97 -0
  238. rs3/properties/beam/Truss.py +23 -0
  239. rs3/properties/beam/_PropertyAccessor.py +9 -0
  240. rs3/properties/beam/__init__.py +0 -0
  241. rs3/properties/bolt/Bolt.py +81 -0
  242. rs3/properties/bolt/EndAnchored.py +77 -0
  243. rs3/properties/bolt/FullyBonded.py +78 -0
  244. rs3/properties/bolt/PlainStrandCable.py +151 -0
  245. rs3/properties/bolt/Swellex.py +106 -0
  246. rs3/properties/bolt/Tieback.py +176 -0
  247. rs3/properties/bolt/_PropertyAccessor.py +7 -0
  248. rs3/properties/bolt/__init__.py +0 -0
  249. rs3/properties/groundwater/WaterByLocation.py +83 -0
  250. rs3/properties/groundwater/WaterGrid.py +120 -0
  251. rs3/properties/groundwater/_PropertyAccessor.py +36 -0
  252. rs3/properties/groundwater/__init__.py +0 -0
  253. rs3/properties/joint/BartonBandis.py +118 -0
  254. rs3/properties/joint/GeosyntheticHyperbolic.py +158 -0
  255. rs3/properties/joint/Joint.py +176 -0
  256. rs3/properties/joint/MaterialDependent.py +107 -0
  257. rs3/properties/joint/MohrCoulomb.py +169 -0
  258. rs3/properties/joint/NoneSlip.py +68 -0
  259. rs3/properties/joint/_PropertyAccessor.py +9 -0
  260. rs3/properties/joint/__init__.py +0 -0
  261. rs3/properties/liner/Geosynthetic.py +85 -0
  262. rs3/properties/liner/Liner.py +83 -0
  263. rs3/properties/liner/ReinforcedConcrete.py +216 -0
  264. rs3/properties/liner/Standard.py +183 -0
  265. rs3/properties/liner/_PropertyAccessor.py +7 -0
  266. rs3/properties/liner/__init__.py +0 -0
  267. rs3/properties/liningComposition/LiningComposition.py +244 -0
  268. rs3/properties/liningComposition/_PropertyAccessor.py +7 -0
  269. rs3/properties/liningComposition/__init__.py +0 -0
  270. rs3/properties/material/Material.py +74 -0
  271. rs3/properties/material/__init__.py +0 -0
  272. rs3/properties/material/constitutiveModel/AnisotropicLinear.py +149 -0
  273. rs3/properties/material/constitutiveModel/AnisotropicLinearPlanarBase.py +72 -0
  274. rs3/properties/material/constitutiveModel/BarcelonaBasic.py +158 -0
  275. rs3/properties/material/constitutiveModel/BartonBandis.py +77 -0
  276. rs3/properties/material/constitutiveModel/BaseConstitutiveModel.py +11 -0
  277. rs3/properties/material/constitutiveModel/BoundingSurfacePlasticity.py +88 -0
  278. rs3/properties/material/constitutiveModel/CamClay.py +144 -0
  279. rs3/properties/material/constitutiveModel/ChSoil.py +111 -0
  280. rs3/properties/material/constitutiveModel/ConstitutiveModel.py +87 -0
  281. rs3/properties/material/constitutiveModel/CySoil.py +137 -0
  282. rs3/properties/material/constitutiveModel/DiscreteFunction.py +39 -0
  283. rs3/properties/material/constitutiveModel/DoubleYield.py +130 -0
  284. rs3/properties/material/constitutiveModel/DruckerPrager.py +136 -0
  285. rs3/properties/material/constitutiveModel/GeneralizedAnisotropic.py +39 -0
  286. rs3/properties/material/constitutiveModel/GeneralizedHoekBrown.py +226 -0
  287. rs3/properties/material/constitutiveModel/HardeningSoil.py +156 -0
  288. rs3/properties/material/constitutiveModel/HardeningSoilWithSmallStrain.py +170 -0
  289. rs3/properties/material/constitutiveModel/HoekBrown.py +125 -0
  290. rs3/properties/material/constitutiveModel/Hyperbolic.py +77 -0
  291. rs3/properties/material/constitutiveModel/JointedGeneralizedHoekBrown.py +184 -0
  292. rs3/properties/material/constitutiveModel/JointedMohrCoulomb.py +173 -0
  293. rs3/properties/material/constitutiveModel/ManzariAndDafalias.py +148 -0
  294. rs3/properties/material/constitutiveModel/ModifiedCamClay.py +11 -0
  295. rs3/properties/material/constitutiveModel/MohrCoulomb.py +147 -0
  296. rs3/properties/material/constitutiveModel/MohrCoulombUnsaturatedZoneCalculations.py +80 -0
  297. rs3/properties/material/constitutiveModel/MohrCoulombWithCap.py +154 -0
  298. rs3/properties/material/constitutiveModel/Norsand.py +146 -0
  299. rs3/properties/material/constitutiveModel/PowerCurve.py +119 -0
  300. rs3/properties/material/constitutiveModel/Shansep.py +214 -0
  301. rs3/properties/material/constitutiveModel/ShearNormalFunction.py +34 -0
  302. rs3/properties/material/constitutiveModel/SnowdenAnisotropicLinear.py +108 -0
  303. rs3/properties/material/constitutiveModel/SoftSoil.py +104 -0
  304. rs3/properties/material/constitutiveModel/SoftSoilCreep.py +111 -0
  305. rs3/properties/material/constitutiveModel/SofteningHardening.py +214 -0
  306. rs3/properties/material/constitutiveModel/SwellingRock.py +202 -0
  307. rs3/properties/material/constitutiveModel/UnsaturatedZoneCalculations.py +138 -0
  308. rs3/properties/material/constitutiveModel/VerticalStressRatio.py +113 -0
  309. rs3/properties/material/constitutiveModel/_PropertyAccessor.py +96 -0
  310. rs3/properties/material/constitutiveModel/__init__.py +0 -0
  311. rs3/properties/material/constitutiveModel/jointOption/BartonBandis.py +109 -0
  312. rs3/properties/material/constitutiveModel/jointOption/MaterialJoint.py +48 -0
  313. rs3/properties/material/constitutiveModel/jointOption/MaterialJointOptions.py +32 -0
  314. rs3/properties/material/constitutiveModel/jointOption/MohrCoulomb.py +142 -0
  315. rs3/properties/material/constitutiveModel/jointOption/PlaneOrientationBase.py +92 -0
  316. rs3/properties/material/constitutiveModel/jointOption/SimpleHyperbolic.py +112 -0
  317. rs3/properties/material/constitutiveModel/jointOption/_PropertyAccessor.py +61 -0
  318. rs3/properties/material/constitutiveModel/jointOption/__init__.py +0 -0
  319. rs3/properties/material/constitutiveModel/stiffness/BaseStiffness.py +11 -0
  320. rs3/properties/material/constitutiveModel/stiffness/DuncanChangHyperbolic.py +128 -0
  321. rs3/properties/material/constitutiveModel/stiffness/GeneralizedHoekBrownEstimation.py +50 -0
  322. rs3/properties/material/constitutiveModel/stiffness/LinearIsotropic.py +106 -0
  323. rs3/properties/material/constitutiveModel/stiffness/NonlinearIsotropic.py +104 -0
  324. rs3/properties/material/constitutiveModel/stiffness/Orthotropic.py +296 -0
  325. rs3/properties/material/constitutiveModel/stiffness/TransverselyIsotropic.py +186 -0
  326. rs3/properties/material/constitutiveModel/stiffness/_PropertyAccessor.py +33 -0
  327. rs3/properties/material/constitutiveModel/stiffness/__init__.py +0 -0
  328. rs3/properties/material/constitutiveModel/stiffness/formula/Formula1.py +96 -0
  329. rs3/properties/material/constitutiveModel/stiffness/formula/Formula2.py +136 -0
  330. rs3/properties/material/constitutiveModel/stiffness/formula/Formula3.py +113 -0
  331. rs3/properties/material/constitutiveModel/stiffness/formula/_PropertyAccessor.py +37 -0
  332. rs3/properties/material/constitutiveModel/stiffness/formula/__init__.py +0 -0
  333. rs3/properties/material/datum/CohesionDatumDependency.py +99 -0
  334. rs3/properties/material/datum/Datum.py +23 -0
  335. rs3/properties/material/datum/FrictionAngleDatumDependency.py +99 -0
  336. rs3/properties/material/datum/YoungsModulusDatumDependency.py +78 -0
  337. rs3/properties/material/datum/_PropertyAccessor.py +26 -0
  338. rs3/properties/material/datum/__init__.py +0 -0
  339. rs3/properties/material/hydraulic/FEAGroundwater/Brooks.py +71 -0
  340. rs3/properties/material/hydraulic/FEAGroundwater/Custom.py +79 -0
  341. rs3/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +85 -0
  342. rs3/properties/material/hydraulic/FEAGroundwater/Fredlund.py +82 -0
  343. rs3/properties/material/hydraulic/FEAGroundwater/Gardner.py +72 -0
  344. rs3/properties/material/hydraulic/FEAGroundwater/HydraulicMethodVectors.py +97 -0
  345. rs3/properties/material/hydraulic/FEAGroundwater/HydraulicParametersCommon.py +157 -0
  346. rs3/properties/material/hydraulic/FEAGroundwater/Simple.py +37 -0
  347. rs3/properties/material/hydraulic/FEAGroundwater/VanGenuchten.py +94 -0
  348. rs3/properties/material/hydraulic/FEAGroundwater/_PropertyAccessor.py +16 -0
  349. rs3/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
  350. rs3/properties/material/hydraulic/Hydraulic.py +111 -0
  351. rs3/properties/material/hydraulic/PhreaticConditions.py +37 -0
  352. rs3/properties/material/hydraulic/StaticGroundwater.py +100 -0
  353. rs3/properties/material/hydraulic/WaterConditions.py +110 -0
  354. rs3/properties/material/hydraulic/_PropertyAccessor.py +31 -0
  355. rs3/properties/material/hydraulic/__init__.py +0 -0
  356. rs3/properties/material/initialConditions/InitialConditions.py +108 -0
  357. rs3/properties/material/initialConditions/_PropertyAccessor.py +11 -0
  358. rs3/properties/material/initialConditions/__init__.py +0 -0
  359. rs3/properties/material/stageFactors/StageFactors.py +77 -0
  360. rs3/properties/material/stageFactors/_PropertyAccessor.py +7 -0
  361. rs3/properties/material/stageFactors/__init__.py +0 -0
  362. rs3/properties/pile/EndCondition.py +109 -0
  363. rs3/properties/pile/Linear.py +69 -0
  364. rs3/properties/pile/MohrCoulomb.py +123 -0
  365. rs3/properties/pile/MultiLinear.py +70 -0
  366. rs3/properties/pile/Pile.py +108 -0
  367. rs3/properties/pile/PileCommon.py +99 -0
  368. rs3/properties/pile/_PropertyAccessor.py +9 -0
  369. rs3/properties/pile/__init__.py +0 -0
  370. rs3/properties/stageFactors/IStageFactorBase.py +10 -0
  371. rs3/properties/stageFactors/StageFactorBaseInterfaces.py +24 -0
  372. rs3/properties/stageFactors/StageFactorInterfaces.py +70 -0
  373. rs3/properties/stageFactors/_StageFactorInterface.py +48 -0
  374. rs3/properties/stageFactors/_StageFactorPropertyAccessor.py +18 -0
  375. rs3/properties/stageFactors/__init__.py +0 -0
  376. rs3/results/BeamResults.py +181 -0
  377. rs3/results/BoltResults.py +214 -0
  378. rs3/results/CompositeLinerResults.py +374 -0
  379. rs3/results/JointResults.py +160 -0
  380. rs3/results/PileForepoleResults.py +219 -0
  381. rs3/results/ResultEnums.py +146 -0
  382. rs3/results/Results.py +661 -0
  383. rs3/results/ResultsCommon.py +66 -0
  384. rs3/results/SolidElementResults.py +175 -0
  385. rs3/results/SolidNodalResults.py +248 -0
  386. rs3/results/SolidResults.py +206 -0
  387. rs3/results/YieldedElement.py +33 -0
  388. rs3/results/__init__.py +0 -0
  389. rs3scripting-4.42.0.dist-info/METADATA +70 -0
  390. rs3scripting-4.42.0.dist-info/RECORD +393 -0
  391. rs3scripting-4.42.0.dist-info/WHEEL +5 -0
  392. rs3scripting-4.42.0.dist-info/licenses/License.txt +20 -0
  393. rs3scripting-4.42.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,11 @@
1
+ from rs3.properties._PropertyAccessor import PropertyAccessor as BasePropertyAccessor
2
+ import rs3.generatedFiles.MaterialInitialConditionsService_pb2_grpc as MaterialInitialConditionsService_pb2_grpc
3
+ import rs3.generatedFiles.MaterialHydraulicDataService_pb2_grpc as MaterialHydraulicDataService_pb2_grpc
4
+ from rs3._client import Client
5
+ class PropertyAccessor(BasePropertyAccessor):
6
+ def __init__(self, client : Client, objectId : str):
7
+ super().__init__(client, objectId, MaterialInitialConditionsService_pb2_grpc.MaterialInitialConditionsServiceStub(client.channel))
8
+
9
+ class HydraulicPropertyAccessor(BasePropertyAccessor):
10
+ def __init__(self, client : Client, objectId : str):
11
+ super().__init__(client, objectId, MaterialHydraulicDataService_pb2_grpc.MaterialHydraulicDataServiceStub(client.channel))
File without changes
@@ -0,0 +1,77 @@
1
+ # Generated by RPCBinder in RFC_Common.
2
+ from rs3._client import Client
3
+ from ._PropertyAccessor import PropertyAccessor
4
+ from rs3._proxyObject import _ProxyObject
5
+ from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
6
+ class StageFactorsBase(_ProxyObject, IPropertyGroupAccessors):
7
+ def __init__(self, client: Client, id: str):
8
+ super().__init__(client, id)
9
+ self._propertyAccessor = PropertyAccessor(client, id)
10
+ def getApplyConstitutiveModelStageFactors(self) -> bool:
11
+ return self._propertyAccessor.getBoolValue("ApplyStageFactors")
12
+ def setApplyConstitutiveModelStageFactors(self, value: bool):
13
+ self._propertyAccessor.setBoolValue("ApplyStageFactors", value)
14
+ def getApplyHydraulicStageFactors(self) -> bool:
15
+ return self._propertyAccessor.getBoolValue("UseGWStageFactors")
16
+ def setApplyHydraulicStageFactors(self, value: bool):
17
+ self._propertyAccessor.setBoolValue("UseGWStageFactors", value)
18
+ def getResetElementStressOnMaterialChange(self) -> bool:
19
+ return self._propertyAccessor.getBoolValue("ResetElementStressOnMaterialChange")
20
+ def setResetElementStressOnMaterialChange(self, value: bool):
21
+ self._propertyAccessor.setBoolValue("ResetElementStressOnMaterialChange", value)
22
+ def getProperties(self):
23
+ return {
24
+ "ApplyConstitutiveModelStageFactors": self.getApplyConstitutiveModelStageFactors(),
25
+ "ApplyHydraulicStageFactors": self.getApplyHydraulicStageFactors(),
26
+ "ResetElementStressOnMaterialChange": self.getResetElementStressOnMaterialChange(),
27
+ }
28
+ def setProperties(self, ApplyConstitutiveModelStageFactors: bool = None, ApplyHydraulicStageFactors: bool = None, ResetElementStressOnMaterialChange: bool = None):
29
+ if ApplyConstitutiveModelStageFactors is not None:
30
+ self.setApplyConstitutiveModelStageFactors(ApplyConstitutiveModelStageFactors)
31
+ if ApplyHydraulicStageFactors is not None:
32
+ self.setApplyHydraulicStageFactors(ApplyHydraulicStageFactors)
33
+ if ResetElementStressOnMaterialChange is not None:
34
+ self.setResetElementStressOnMaterialChange(ResetElementStressOnMaterialChange)
35
+
36
+ ################ Code below this line will not be overridden ################
37
+ from rs3.properties.PropertyEnums import *
38
+ import rs3.generatedFiles.StageFactorService_pb2 as StageFactorService_pb2
39
+ import rs3.generatedFiles.MaterialDataService_pb2_grpc as MaterialDataService_pb2_grpc
40
+ from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
41
+ from rs3.properties.stageFactors.StageFactorBaseInterfaces import AbsoluteStageFactorInterface as StageFactorBaseInterfaces
42
+
43
+ class DefinedStageFactor(IStageFactorBase):
44
+ def __init__(self, id : str, stageFactorID : str, client : Client):
45
+ super().__init__(id, stageFactorID, client, MaterialDataService_pb2_grpc.MaterialDataServiceStub(client.channel))
46
+ class StageFactor(DefinedStageFactor):
47
+ pass
48
+
49
+ class StageFactors(StageFactorsBase, StageFactorBaseInterfaces[DefinedStageFactor, StageFactor]):
50
+ """
51
+ Examples:
52
+ See :ref:`material_stage_factors_example`.
53
+ """
54
+ def __init__(self, client: Client, id: str):
55
+ super().__init__(client, id)
56
+ self._definedStageFactorClass = DefinedStageFactor
57
+ self._stageFactorClass = StageFactor
58
+ StageFactorBaseInterfaces.__init__(self, id, client, DefinedStageFactor, StageFactor)
59
+
60
+ def createStageFactor(self, stage : int) -> DefinedStageFactor:
61
+ """
62
+ Creates a stage factor for the given stage.
63
+
64
+ NOTE: Invalidates any existing stage factor proxies. Get them again using getDefinedStageFactors or getStageFactor.
65
+ """
66
+ return self._createStageFactor(stage)
67
+
68
+ def setDefinedStageFactors(self, stageFactors : dict[int, StageFactor]):
69
+ """
70
+ Sets the defined stage factors to those given.
71
+
72
+ NOTE: Invalidates any existing stage factor proxies. Get them again using getDefinedStageFactors or getStageFactor.
73
+ """
74
+ convertedStageFactors = {}
75
+ for stageNum, stageFactor in stageFactors.items():
76
+ convertedStageFactors[stageNum] = StageFactorService_pb2.StageFactorProperty(stageFactorID = stageFactor._objectId)
77
+ self._setDefinedStageFactors(StageFactorMethodType.ABSOLUTE_STAGE_FACTOR, convertedStageFactors)
@@ -0,0 +1,7 @@
1
+ from rs3.properties._PropertyAccessor import PropertyAccessor
2
+ import rs3.generatedFiles.MaterialStageFactorsService_pb2_grpc as MaterialStageFactorsService_pb2_grpc
3
+ from rs3._client import Client
4
+ class PropertyAccessor(PropertyAccessor):
5
+ def __init__(self, client : Client, objectId : str):
6
+ super().__init__(client, objectId, MaterialStageFactorsService_pb2_grpc.MaterialStageFactorsServiceStub(client.channel))
7
+
File without changes
@@ -0,0 +1,109 @@
1
+ # Generated by RPCBinder in RFC_Common.
2
+ from rs3._client import Client
3
+ from ._PropertyAccessor import PropertyAccessor
4
+ from rs3._proxyObject import _ProxyObject
5
+ from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
6
+ from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
7
+ import rs3.generatedFiles.PileStageFactorService_pb2_grpc as PileStageFactorService_pb2_grpc
8
+ class EndConditionBase(_ProxyObject, IPropertyGroupAccessors):
9
+ def __init__(self, client: Client, id: str):
10
+ super().__init__(client, id)
11
+ self._propertyAccessor = PropertyAccessor(client, id)
12
+ def getMagnitude(self) -> float:
13
+ return self._propertyAccessor.getDoubleProperty("ForceDisplacementValue")
14
+ def setMagnitude(self, value: float):
15
+ self._propertyAccessor.setDoubleProperty("ForceDisplacementValue", value)
16
+ def getX(self) -> float:
17
+ return self._propertyAccessor.getDoubleProperty("ForceDisplacementVectorX")
18
+ def setX(self, value: float):
19
+ self._propertyAccessor.setDoubleProperty("ForceDisplacementVectorX", value)
20
+ def getY(self) -> float:
21
+ return self._propertyAccessor.getDoubleProperty("ForceDisplacementVectorY")
22
+ def setY(self, value: float):
23
+ self._propertyAccessor.setDoubleProperty("ForceDisplacementVectorY", value)
24
+ def getZ(self) -> float:
25
+ return self._propertyAccessor.getDoubleProperty("ForceDisplacementVectorZ")
26
+ def setZ(self, value: float):
27
+ self._propertyAccessor.setDoubleProperty("ForceDisplacementVectorZ", value)
28
+ def getProperties(self):
29
+ return {
30
+ "Magnitude": self.getMagnitude(),
31
+ "X": self.getX(),
32
+ "Y": self.getY(),
33
+ "Z": self.getZ(),
34
+ }
35
+ def setProperties(self, Magnitude: float = None, X: float = None, Y: float = None, Z: float = None):
36
+ if Magnitude is not None:
37
+ self.setMagnitude(Magnitude)
38
+ if X is not None:
39
+ self.setX(X)
40
+ if Y is not None:
41
+ self.setY(Y)
42
+ if Z is not None:
43
+ self.setZ(Z)
44
+ class EndConditionStageFactorBase(IStageFactorBase):
45
+ def __init__(self, id : str, stageFactorID : str, client : Client):
46
+ super().__init__(id, stageFactorID, client, PileStageFactorService_pb2_grpc.PileStageFactorServiceStub(client.channel))
47
+ def getEndConditionFactor(self) -> float:
48
+ return self._stageFactorPropertyAccessor.getDoubleProperty("Common_Force")
49
+ class EndConditionDefinedStageFactorBase(EndConditionStageFactorBase):
50
+ def setEndConditionFactor(self, value: float):
51
+ self._stageFactorPropertyAccessor.setDoubleProperty("Common_Force", value)
52
+
53
+ ################ Code below this line will not be overridden ################
54
+ from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
55
+ import rs3.generatedFiles.PileDataService_pb2_grpc as PileDataService_pb2_grpc
56
+ from rs3.properties.PropertyEnums import *
57
+
58
+ class EndConditionStageFactor(EndConditionStageFactorBase):
59
+ """
60
+ Examples:
61
+ See :ref:`pile_example`.
62
+ """
63
+ def __init__(self, id: str, stageFactorId: str, client: Client):
64
+ super().__init__(id, stageFactorId, client)
65
+
66
+ class EndConditionDefinedStageFactor(EndConditionStageFactor, EndConditionDefinedStageFactorBase):
67
+ """
68
+ Examples:
69
+ See :ref:`pile_example`.
70
+ """
71
+ pass
72
+
73
+ class EndCondition(EndConditionBase):
74
+ """
75
+ Examples:
76
+ See :ref:`pile_example`.
77
+ """
78
+ def __init__(self, client: Client, id: str):
79
+ super().__init__(client, id)
80
+ self._pileDataService = PileDataService_pb2_grpc.PileDataServiceStub(self._client.channel)
81
+ self._propertyAccessor = PropertyAccessor(client, id, self._pileDataService)
82
+ self.StageFactorInterface = AbsoluteStageFactorInterface[EndConditionDefinedStageFactor, EndConditionStageFactor](id, client, EndConditionDefinedStageFactor, EndConditionStageFactor)
83
+ def getEndConditionType(self) -> EndConditionType:
84
+ """
85
+ When force/displacement function is not enabled, this function returns EndConditionType.NONE.
86
+ Otherwise, this function returns the defined force/displacement type.
87
+ """
88
+ hasEndCondition = self._propertyAccessor.getBoolValue("HasForceDisplacement")
89
+ if not hasEndCondition:
90
+ return EndConditionType.NONE
91
+ else:
92
+ return self._propertyAccessor.getEnumValue("ForceDisplacementType", EndConditionType)
93
+ def setEndConditionType(self, endConditionType : EndConditionType):
94
+ """
95
+ When EndConditionType is not set to be NONE, force displacement function is automatically on
96
+ when force type is set. If the EndConditionType is set to be NONE, force displacement function
97
+ is automatically off.
98
+ """
99
+ if endConditionType == EndConditionType.NONE:
100
+ self._propertyAccessor.setBoolValue("HasForceDisplacement", False)
101
+ elif endConditionType == EndConditionType.FORCE or endConditionType == EndConditionType.DISPLACEMENT:
102
+ self._propertyAccessor.setBoolValue("HasForceDisplacement", True)
103
+ self._propertyAccessor.setEnumValue("ForceDisplacementType", endConditionType.value)
104
+ else:
105
+ raise Excpetion(f"Invalid force type {endConditionType}")
106
+ def getApplicationPoint(self) -> EndConditionPlacementPoint:
107
+ return self._propertyAccessor.getEnumValue("ForceDisplacementPlacement", EndConditionPlacementPoint)
108
+ def setApplicationPoint(self, applicationPoint : EndConditionPlacementPoint):
109
+ self._propertyAccessor.setEnumValue("ForceDisplacementPlacement", applicationPoint.value)
@@ -0,0 +1,69 @@
1
+ # Generated by RPCBinder in RFC_Common.
2
+ from rs3._client import Client
3
+ from ._PropertyAccessor import PropertyAccessor
4
+ from rs3._proxyObject import _ProxyObject
5
+ from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
6
+ from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
7
+ import rs3.generatedFiles.PileStageFactorService_pb2_grpc as PileStageFactorService_pb2_grpc
8
+ class LinearBase(_ProxyObject, IPropertyGroupAccessors):
9
+ def __init__(self, client: Client, id: str):
10
+ super().__init__(client, id)
11
+ self._propertyAccessor = PropertyAccessor(client, id)
12
+ def getMaxTractionAtTop(self) -> float:
13
+ return self._propertyAccessor.getDoubleProperty("MaxTractionTop")
14
+ def setMaxTractionAtTop(self, value: float):
15
+ self._propertyAccessor.setDoubleProperty("MaxTractionTop", value)
16
+ def getMaxTractionAtBottom(self) -> float:
17
+ return self._propertyAccessor.getDoubleProperty("MaxTractionBottom")
18
+ def setMaxTractionAtBottom(self, value: float):
19
+ self._propertyAccessor.setDoubleProperty("MaxTractionBottom", value)
20
+ def getProperties(self):
21
+ return {
22
+ "MaxTractionAtTop": self.getMaxTractionAtTop(),
23
+ "MaxTractionAtBottom": self.getMaxTractionAtBottom(),
24
+ }
25
+ def setProperties(self, MaxTractionAtTop: float = None, MaxTractionAtBottom: float = None):
26
+ if MaxTractionAtTop is not None:
27
+ self.setMaxTractionAtTop(MaxTractionAtTop)
28
+ if MaxTractionAtBottom is not None:
29
+ self.setMaxTractionAtBottom(MaxTractionAtBottom)
30
+ class LinearStageFactorBase(IStageFactorBase):
31
+ def __init__(self, id : str, stageFactorID : str, client : Client):
32
+ super().__init__(id, stageFactorID, client, PileStageFactorService_pb2_grpc.PileStageFactorServiceStub(client.channel))
33
+ def getMaxTractionAtTopFactor(self) -> float:
34
+ return self._stageFactorPropertyAccessor.getDoubleProperty("Linear_MaxTractionTop")
35
+ def getMaxTractionAtBottomFactor(self) -> float:
36
+ return self._stageFactorPropertyAccessor.getDoubleProperty("Linear_MaxTractionBottom")
37
+ class LinearDefinedStageFactorBase(LinearStageFactorBase):
38
+ def setMaxTractionAtTopFactor(self, value: float):
39
+ self._stageFactorPropertyAccessor.setDoubleProperty("Linear_MaxTractionTop", value)
40
+ def setMaxTractionAtBottomFactor(self, value: float):
41
+ self._stageFactorPropertyAccessor.setDoubleProperty("Linear_MaxTractionBottom", value)
42
+
43
+ ################ Code below this line will not be overridden ################
44
+ from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
45
+ from rs3.properties.pile.PileCommon import PileCommon, PileCommonStageFactor, PileCommonDefinedStageFactor
46
+
47
+ class LinearStageFactor(PileCommonStageFactor, LinearStageFactorBase):
48
+ """
49
+ Examples:
50
+ See :ref:`pile_example`.
51
+ """
52
+ def __init__(self, id : str, stageFactorID : str, client : Client):
53
+ IStageFactorBase.__init__(self, id, stageFactorID, client, PileStageFactorService_pb2_grpc.PileStageFactorServiceStub(client.channel))
54
+
55
+ class LinearDefinedStageFactor(PileCommonDefinedStageFactor, LinearDefinedStageFactorBase, LinearStageFactor):
56
+ """
57
+ Examples:
58
+ See :ref:`pile_example`.
59
+ """
60
+ pass
61
+
62
+ class Linear(LinearBase, PileCommon):
63
+ """
64
+ Examples:
65
+ See :ref:`pile_example`.
66
+ """
67
+ def __init__(self, client: Client, id: str):
68
+ super().__init__(client, id)
69
+ self.StageFactorInterface = AbsoluteStageFactorInterface[LinearDefinedStageFactor, LinearStageFactor](id, client, LinearDefinedStageFactor, LinearStageFactor)
@@ -0,0 +1,123 @@
1
+ # Generated by RPCBinder in RFC_Common.
2
+ from rs3._client import Client
3
+ from ._PropertyAccessor import PropertyAccessor
4
+ from rs3._proxyObject import _ProxyObject
5
+ from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
6
+ from rs3.properties.stageFactors.IStageFactorBase import IStageFactorBase
7
+ import rs3.generatedFiles.PileStageFactorService_pb2_grpc as PileStageFactorService_pb2_grpc
8
+ class MohrCoulombBase(_ProxyObject, IPropertyGroupAccessors):
9
+ def __init__(self, client: Client, id: str):
10
+ super().__init__(client, id)
11
+ self._propertyAccessor = PropertyAccessor(client, id)
12
+ def getPerimeter(self) -> float:
13
+ return self._propertyAccessor.getDoubleProperty("Perimeter")
14
+ def setPerimeter(self, value: float):
15
+ self._propertyAccessor.setDoubleProperty("Perimeter", value)
16
+ def getCohesion(self) -> float:
17
+ return self._propertyAccessor.getDoubleProperty("Cohesion")
18
+ def setCohesion(self, value: float):
19
+ self._propertyAccessor.setDoubleProperty("Cohesion", value)
20
+ def getResidualCohesion(self) -> float:
21
+ return self._propertyAccessor.getDoubleProperty("ResidualCohesion")
22
+ def setResidualCohesion(self, value: float):
23
+ self._propertyAccessor.setDoubleProperty("ResidualCohesion", value)
24
+ def getFrictionAngle(self) -> float:
25
+ return self._propertyAccessor.getDoubleProperty("FrictionAngle")
26
+ def setFrictionAngle(self, value: float):
27
+ self._propertyAccessor.setDoubleProperty("FrictionAngle", value)
28
+ def getResidualFrictionAngle(self) -> float:
29
+ return self._propertyAccessor.getDoubleProperty("ResidualFrictionAngle")
30
+ def setResidualFrictionAngle(self, value: float):
31
+ self._propertyAccessor.setDoubleProperty("ResidualFrictionAngle", value)
32
+ def getUseShearResistanceCutoff(self) -> bool:
33
+ return self._propertyAccessor.getBoolValue("HasShearResistanceCutoff")
34
+ def setUseShearResistanceCutoff(self, value: bool):
35
+ self._propertyAccessor.setBoolValue("HasShearResistanceCutoff", value)
36
+ def getShearResistanceCutoff(self) -> float:
37
+ return self._propertyAccessor.getDoubleProperty("ShearResistanceCutoff")
38
+ def setShearResistanceCutoff(self, value: float):
39
+ self._propertyAccessor.setDoubleProperty("ShearResistanceCutoff", value)
40
+ def getProperties(self):
41
+ return {
42
+ "Perimeter": self.getPerimeter(),
43
+ "Cohesion": self.getCohesion(),
44
+ "ResidualCohesion": self.getResidualCohesion(),
45
+ "FrictionAngle": self.getFrictionAngle(),
46
+ "ResidualFrictionAngle": self.getResidualFrictionAngle(),
47
+ "UseShearResistanceCutoff": self.getUseShearResistanceCutoff(),
48
+ "ShearResistanceCutoff": self.getShearResistanceCutoff(),
49
+ }
50
+ def setProperties(self, Perimeter: float = None, Cohesion: float = None, ResidualCohesion: float = None, FrictionAngle: float = None, ResidualFrictionAngle: float = None, UseShearResistanceCutoff: bool = None, ShearResistanceCutoff: float = None):
51
+ if Perimeter is not None:
52
+ self.setPerimeter(Perimeter)
53
+ if Cohesion is not None:
54
+ self.setCohesion(Cohesion)
55
+ if ResidualCohesion is not None:
56
+ self.setResidualCohesion(ResidualCohesion)
57
+ if FrictionAngle is not None:
58
+ self.setFrictionAngle(FrictionAngle)
59
+ if ResidualFrictionAngle is not None:
60
+ self.setResidualFrictionAngle(ResidualFrictionAngle)
61
+ if UseShearResistanceCutoff is not None:
62
+ self.setUseShearResistanceCutoff(UseShearResistanceCutoff)
63
+ if ShearResistanceCutoff is not None:
64
+ self.setShearResistanceCutoff(ShearResistanceCutoff)
65
+ class MohrCoulombStageFactorBase(IStageFactorBase):
66
+ def __init__(self, id : str, stageFactorID : str, client : Client):
67
+ super().__init__(id, stageFactorID, client, PileStageFactorService_pb2_grpc.PileStageFactorServiceStub(client.channel))
68
+ def getExposedPerimeterFactor(self) -> float:
69
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_ExposedPerimeter")
70
+ def getCohesionFactor(self) -> float:
71
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_Cohesion")
72
+ def getResidualCohesionFactor(self) -> float:
73
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_CohesionResidual")
74
+ def getFrictionAngleFactor(self) -> float:
75
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_FrictionAngle")
76
+ def getResidualFrictionAngleFactor(self) -> float:
77
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_FrictionAngleResidual")
78
+ def getShearResistanceCutoffFactor(self) -> float:
79
+ return self._stageFactorPropertyAccessor.getDoubleProperty("CAndPhi_ShearResistanceCutoff")
80
+ class MohrCoulombDefinedStageFactorBase(MohrCoulombStageFactorBase):
81
+ def setExposedPerimeterFactor(self, value: float):
82
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_ExposedPerimeter", value)
83
+ def setCohesionFactor(self, value: float):
84
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_Cohesion", value)
85
+ def setResidualCohesionFactor(self, value: float):
86
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_CohesionResidual", value)
87
+ def setFrictionAngleFactor(self, value: float):
88
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_FrictionAngle", value)
89
+ def setResidualFrictionAngleFactor(self, value: float):
90
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_FrictionAngleResidual", value)
91
+ def setShearResistanceCutoffFactor(self, value: float):
92
+ self._stageFactorPropertyAccessor.setDoubleProperty("CAndPhi_ShearResistanceCutoff", value)
93
+
94
+ ################ Code below this line will not be overridden ################
95
+ from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
96
+ from rs3.properties.pile.PileCommon import PileCommon, PileCommonStageFactor, PileCommonDefinedStageFactor
97
+
98
+ class MohrCoulombStageFactor(PileCommonStageFactor, MohrCoulombStageFactorBase):
99
+ """
100
+ Examples:
101
+ See :ref:`pile_example`.
102
+ """
103
+ def __init__(self, id : str, stageFactorID : str, client : Client):
104
+ IStageFactorBase.__init__(self, id, stageFactorID, client, PileStageFactorService_pb2_grpc.PileStageFactorServiceStub(client.channel))
105
+
106
+ class MohrCoulombDefinedStageFactor(PileCommonDefinedStageFactor, MohrCoulombDefinedStageFactorBase, MohrCoulombStageFactor):
107
+ """
108
+ Examples:
109
+ See :ref:`pile_example`.
110
+ """
111
+ pass
112
+
113
+ class MohrCoulomb(PileCommon, MohrCoulombBase):
114
+ """
115
+ UI Label:
116
+ C and phi
117
+
118
+ Examples:
119
+ See :ref:`pile_example`.
120
+ """
121
+ def __init__(self, client: Client, id: str):
122
+ super().__init__(client, id)
123
+ self.StageFactorInterface = AbsoluteStageFactorInterface[MohrCoulombDefinedStageFactor, MohrCoulombStageFactor](id, client, MohrCoulombDefinedStageFactor, MohrCoulombStageFactor)
@@ -0,0 +1,70 @@
1
+ from rs3._client import Client
2
+ from ._PropertyAccessor import PropertyAccessor
3
+ import rs3.generatedFiles.PileDataService_pb2 as PileDataService_pb2
4
+ import rs3.generatedFiles.PileDataService_pb2_grpc as PileDataService_pb2_grpc
5
+ from rs3.properties.stageFactors.StageFactorInterfaces import AbsoluteStageFactorInterface
6
+ from rs3.properties.pile.PileCommon import PileCommon, PileCommonStageFactor, PileCommonDefinedStageFactor
7
+ class MultiLinearStageFactor(PileCommonStageFactor):
8
+ """
9
+ Examples:
10
+ See :ref:`pile_example`.
11
+ """
12
+ def __init__(self, id : str, stageFactorID : str, client : Client):
13
+ super().__init__(id, stageFactorID, client)
14
+ def getMultiLinearFactor(self) -> float:
15
+ return self._stageFactorPropertyAccessor.getDoubleProperty("MultiLinear_MultiLinear")
16
+ class MultiLinearDefinedStageFactor(PileCommonDefinedStageFactor, MultiLinearStageFactor):
17
+ """
18
+ Examples:
19
+ See :ref:`pile_example`.
20
+ """
21
+ def setMultiLinearFactor(self, value: float):
22
+ self._stageFactorPropertyAccessor.setDoubleProperty("MultiLinear_MultiLinear", value)
23
+ class MultiLinear(PileCommon):
24
+ """
25
+ Examples:
26
+ See :ref:`pile_example`.
27
+ """
28
+ def __init__(self, client: Client, id: str):
29
+ super().__init__(client, id)
30
+ self._pileDataService = PileDataService_pb2_grpc.PileDataServiceStub(self._client.channel)
31
+ self._propertyAccessor = PropertyAccessor(client, id)
32
+ self.StageFactorInterface = AbsoluteStageFactorInterface[MultiLinearDefinedStageFactor, MultiLinearStageFactor](id, client, MultiLinearDefinedStageFactor, MultiLinearStageFactor)
33
+ def getMultiLinearGrid(self) -> list[tuple[float, float]]:
34
+ """
35
+ Get a list of multi-linear skin resistance (distance to top, max traction) data points.
36
+
37
+ Returns:
38
+ list[tuple[float, float]]
39
+ A list of (distance_to_top, max_traction) data points.
40
+
41
+ - distance_to_top : float
42
+ Distance measured from the top of the pile.
43
+ - max_traction : float
44
+ Maximum skin resistance (traction) at the corresponding distance.
45
+
46
+ """
47
+ request = PileDataService_pb2.GetMultiLinearGridRequest(pileId=self._objectId)
48
+ response : PileDataService_pb2.GetMultiLinearGridResponse = self._client.callFunction(self._pileDataService.GetMultiLinearGrid, request)
49
+ return [(dtv.distances, dtv.tractions) for dtv in response.distanceTractionValues]
50
+ def setMultiLinearGrid(self, value: list[tuple[float, float]]):
51
+ """
52
+ Set a list of multi-linear skin resistance (distance to top, max traction) data points.
53
+
54
+ Parameters:
55
+ value : list[tuple[float, float]]
56
+ A list of (distance_to_top, max_traction) data points.
57
+
58
+ - distance_to_top : float
59
+ Distance measured from the top of the pile.
60
+ - max_traction : float
61
+ Maximum skin resistance (traction) at that distance.
62
+
63
+ Example:
64
+ >>> list = [(1.1, 2.2), (3.3, 4.4), (5.5, 6.6)]
65
+ >>> MultiLinearPile.setMultiLinearGrid(list)
66
+
67
+ """
68
+ request = PileDataService_pb2.SetMultiLinearGridRequest(pileId=self._objectId,
69
+ distanceTractionValues=[PileDataService_pb2.DistanceTractionValues(distances=d, tractions=t)for d, t in value])
70
+ self._client.callFunction(self._pileDataService.SetMultiLinearGrid, request)
@@ -0,0 +1,108 @@
1
+ # Generated by RPCBinder in RFC_Common.
2
+ from rs3._client import Client
3
+ from ._PropertyAccessor import PropertyAccessor
4
+ from rs3._proxyObject import _ProxyObject
5
+ from rs3.properties.IPropertyGroupAccessors import IPropertyGroupAccessors
6
+ class PileBase(_ProxyObject, IPropertyGroupAccessors):
7
+ def __init__(self, client: Client, id: str):
8
+ super().__init__(client, id)
9
+ self._propertyAccessor = PropertyAccessor(client, id)
10
+ def getApplyStageFactors(self) -> bool:
11
+ return self._propertyAccessor.getBoolValue("StageProperties")
12
+ def setApplyStageFactors(self, value: bool):
13
+ self._propertyAccessor.setBoolValue("StageProperties", value)
14
+ def getProperties(self):
15
+ return {
16
+ "ApplyStageFactors": self.getApplyStageFactors(),
17
+ }
18
+ def setProperties(self, ApplyStageFactors: bool = None):
19
+ if ApplyStageFactors is not None:
20
+ self.setApplyStageFactors(ApplyStageFactors)
21
+
22
+ ################ Code below this line will not be overridden ################
23
+ import rs3.generatedFiles.PileDataService_pb2_grpc as PileDataService_pb2_grpc
24
+ import rs3.generatedFiles.PileDataService_pb2 as PileDataService_pb2
25
+ import rs3.generatedFiles.CommonMessages_pb2 as CommonMessages_pb2
26
+ from rs3.properties.PropertyEnums import *
27
+ from rs3.properties.pile.Linear import Linear
28
+ from rs3.properties.pile.MohrCoulomb import MohrCoulomb
29
+ from rs3.properties.pile.MultiLinear import MultiLinear
30
+ from rs3.properties.pile.EndCondition import EndCondition
31
+ from rs3.ColorPicker import ColorPicker
32
+
33
+ class PileProperty(PileBase):
34
+ """
35
+ Define pile properties.
36
+
37
+ Attributes:
38
+ Linear (Linear): Reference object for modifying property.
39
+ MohrCoulomb (MohrCoulomb): Reference object for modifying property.
40
+ MultiLinear (MultiLinear): Reference object for modifying property.
41
+
42
+ Examples:
43
+ See :ref:`pile_example`.
44
+ """
45
+ def __init__(self, client : Client, pileID : str):
46
+ super().__init__(client, pileID)
47
+ self._pileDataService = PileDataService_pb2_grpc.PileDataServiceStub(self._client.channel)
48
+ self._propertyAccessor = PropertyAccessor(client, pileID, self._pileDataService)
49
+ self.Linear = Linear(client, pileID)
50
+ self.MohrCoulomb = MohrCoulomb(client, pileID)
51
+ self.MultiLinear = MultiLinear(client, pileID)
52
+ self.EndCondition = EndCondition(client, pileID)
53
+
54
+ def getPileName(self) -> str:
55
+ return self._propertyAccessor.getStringValue("Name")
56
+ def setPileName(self, name):
57
+ self._propertyAccessor.setStringValue("Name", name)
58
+ def setPileColor(self, *args):
59
+ """
60
+ Sets the RGBA color for the object.
61
+
62
+ Raises:
63
+ ValueError: If inputs are invalid or out of range.
64
+
65
+ Notes:
66
+ Accepted formats:
67
+ - setColor(red, green, blue)
68
+ - setColor(red, green, blue, alpha)
69
+ - setColor("#RRGGBB")
70
+ - setColor("#RRGGBBAA")
71
+ - setColor(ColorType.Rose)
72
+ - setColor(0xE1E4FF) # Integer COLORREF
73
+
74
+ """
75
+ color_bytes = ColorPicker._setColorValidation(*args)
76
+ request = CommonMessages_pb2.SetColorRequest(objectId=self._objectId, value=color_bytes)
77
+ self._client.callFunction(self._pileDataService.SetColorProperty, request)
78
+ def getPileColor(self) -> tuple[int, int, int, int]:
79
+ """
80
+ Retrieves the RGBA color of the object.
81
+
82
+ Returns:
83
+ tuple[int, int, int, int]: A tuple of four integers representing the red, green, blue, and alpha components of the object's color, each in the range [0, 255].
84
+ """
85
+ request = CommonMessages_pb2.GetColorRequest(objectId=self._objectId)
86
+ response : CommonMessages_pb2.GetColorResponse = self._client.callFunction(self._pileDataService.GetColorProperty, request)
87
+ red, green, blue, alpha = response.value
88
+ return red, green, blue, alpha
89
+
90
+ def getSkinResistance(self) -> PileSkinResistanceType:
91
+ return self._propertyAccessor.getEnumValue("SkinResistance", PileSkinResistanceType)
92
+ def setSkinResistance(self, skinResistanceType : PileSkinResistanceType):
93
+ self._propertyAccessor.setEnumValue("SkinResistance", skinResistanceType.value)
94
+ def getConnectionType(self) -> ConnectionType:
95
+ return self._propertyAccessor.getEnumValue("Connection", ConnectionType)
96
+ def setConnectionType(self, connectionType : ConnectionType):
97
+ self._propertyAccessor.setEnumValue("Connection", connectionType.value)
98
+ def getLiningConnectionType(self) -> LiningConnectionType:
99
+ return self._propertyAccessor.getEnumValue("LiningConnection", LiningConnectionType)
100
+ def setLiningConnectionType(self, liningConnectionType : LiningConnectionType):
101
+ self._propertyAccessor.setEnumValue("LiningConnection", liningConnectionType.value)
102
+ def getBeamMaterial(self) -> str:
103
+ request = PileDataService_pb2.GetBeamPropertyRequest(pileId=self._objectId)
104
+ response : PileDataService_pb2.GetBeamPropertyResponse = self._client.callFunction(self._pileDataService.GetBeamProperty, request)
105
+ return response.beamName
106
+ def setBeamMaterial(self, value: str):
107
+ request = PileDataService_pb2.SetBeamPropertyRequest(pileId=self._objectId, beamName=value)
108
+ self._client.callFunction(self._pileDataService.SetBeamProperty, request)