RS2Scripting 11.23.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 (188) hide show
  1. RS2Scripting-11.23.0.dist-info/License.txt +20 -0
  2. RS2Scripting-11.23.0.dist-info/METADATA +147 -0
  3. RS2Scripting-11.23.0.dist-info/RECORD +188 -0
  4. RS2Scripting-11.23.0.dist-info/WHEEL +5 -0
  5. RS2Scripting-11.23.0.dist-info/top_level.txt +1 -0
  6. rs2/BaseModel.py +46 -0
  7. rs2/Units.py +6 -0
  8. rs2/__init__.py +0 -0
  9. rs2/_common/Client.py +67 -0
  10. rs2/_common/ProxyObject.py +12 -0
  11. rs2/_common/__init__.py +0 -0
  12. rs2/_common/documentProxy.py +5 -0
  13. rs2/interpreter/InterpreterEnums.py +86 -0
  14. rs2/interpreter/InterpreterGraphEnums.py +54 -0
  15. rs2/interpreter/InterpreterModel.py +328 -0
  16. rs2/interpreter/RS2Interpreter.py +78 -0
  17. rs2/interpreter/_UtilityResult.py +20 -0
  18. rs2/interpreter/__init__.py +0 -0
  19. rs2/interpreter/queryResults/HistoryQueryResults.py +30 -0
  20. rs2/interpreter/queryResults/MaterialQueryResults.py +67 -0
  21. rs2/interpreter/queryResults/MeshResults.py +12 -0
  22. rs2/interpreter/queryResults/TimeQueryResults.py +111 -0
  23. rs2/interpreter/queryResults/__init__.py +0 -0
  24. rs2/interpreter/supportResults/BoltResult.py +49 -0
  25. rs2/interpreter/supportResults/CompositeResult.py +24 -0
  26. rs2/interpreter/supportResults/JointResult.py +25 -0
  27. rs2/interpreter/supportResults/LinerResult.py +33 -0
  28. rs2/interpreter/supportResults/__init__.py +0 -0
  29. rs2/modeler/Model.py +350 -0
  30. rs2/modeler/RS2Modeler.py +81 -0
  31. rs2/modeler/__init__.py +0 -0
  32. rs2/modeler/properties/AbsoluteStageFactorGettersInterface.py +31 -0
  33. rs2/modeler/properties/AbsoluteStageFactorInterface.py +49 -0
  34. rs2/modeler/properties/CompositeProperty.py +81 -0
  35. rs2/modeler/properties/DiscreteFunction.py +43 -0
  36. rs2/modeler/properties/MaterialJoint.py +25 -0
  37. rs2/modeler/properties/MaterialJointOptions.py +28 -0
  38. rs2/modeler/properties/PropertyEnums.py +376 -0
  39. rs2/modeler/properties/RelativeStageFactorInterface.py +50 -0
  40. rs2/modeler/properties/ShearNormalFunction.py +45 -0
  41. rs2/modeler/properties/SnowdenAnisotropicFunction.py +56 -0
  42. rs2/modeler/properties/StructuralInterface.py +59 -0
  43. rs2/modeler/properties/UserDefinedWaterMode.py +21 -0
  44. rs2/modeler/properties/__init__.py +0 -0
  45. rs2/modeler/properties/bolt/Bolt.py +33 -0
  46. rs2/modeler/properties/bolt/EndAnchored.py +59 -0
  47. rs2/modeler/properties/bolt/FullyBonded.py +66 -0
  48. rs2/modeler/properties/bolt/PlainStrandCable.py +112 -0
  49. rs2/modeler/properties/bolt/Swellex.py +136 -0
  50. rs2/modeler/properties/bolt/Tieback.py +192 -0
  51. rs2/modeler/properties/bolt/__init__.py +0 -0
  52. rs2/modeler/properties/joint/BartonBandis.py +143 -0
  53. rs2/modeler/properties/joint/BartonBandisMaterial.py +82 -0
  54. rs2/modeler/properties/joint/DisplacementDependent.py +134 -0
  55. rs2/modeler/properties/joint/GeosyntheticHyperbolic.py +147 -0
  56. rs2/modeler/properties/joint/GeosyntheticHyperbolicMaterial.py +93 -0
  57. rs2/modeler/properties/joint/HyperbolicSoftening.py +202 -0
  58. rs2/modeler/properties/joint/Joint.py +57 -0
  59. rs2/modeler/properties/joint/MaterialDependent.py +128 -0
  60. rs2/modeler/properties/joint/MohrCoulomb.py +211 -0
  61. rs2/modeler/properties/joint/MohrCoulombMaterial.py +115 -0
  62. rs2/modeler/properties/joint/NoneSlip.py +103 -0
  63. rs2/modeler/properties/joint/__init__.py +0 -0
  64. rs2/modeler/properties/liner/CableTruss.py +199 -0
  65. rs2/modeler/properties/liner/Geosynthetic.py +167 -0
  66. rs2/modeler/properties/liner/Liner.py +31 -0
  67. rs2/modeler/properties/liner/ReinforcedConcrete.py +291 -0
  68. rs2/modeler/properties/liner/StandardBeam.py +268 -0
  69. rs2/modeler/properties/liner/__init__.py +0 -0
  70. rs2/modeler/properties/material/InitialConditions.py +152 -0
  71. rs2/modeler/properties/material/MaterialProperty.py +49 -0
  72. rs2/modeler/properties/material/StageFactors.py +100 -0
  73. rs2/modeler/properties/material/__init__.py +0 -0
  74. rs2/modeler/properties/material/datum/BaseDatum.py +23 -0
  75. rs2/modeler/properties/material/datum/Datum.py +79 -0
  76. rs2/modeler/properties/material/datum/PeakResidualDatum.py +31 -0
  77. rs2/modeler/properties/material/datum/SimpleDatum.py +17 -0
  78. rs2/modeler/properties/material/datum/__init__.py +0 -0
  79. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Brooks.py +106 -0
  80. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Constant.py +54 -0
  81. rs2/modeler/properties/material/hydraulic/FEAGroundwater/FEAGroundwater.py +82 -0
  82. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Fredlund.py +117 -0
  83. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Gardner.py +106 -0
  84. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Genuchten.py +124 -0
  85. rs2/modeler/properties/material/hydraulic/FEAGroundwater/Simple.py +91 -0
  86. rs2/modeler/properties/material/hydraulic/FEAGroundwater/UserDefined.py +10 -0
  87. rs2/modeler/properties/material/hydraulic/FEAGroundwater/__init__.py +0 -0
  88. rs2/modeler/properties/material/hydraulic/Hydraulic.py +41 -0
  89. rs2/modeler/properties/material/hydraulic/StaticGroundwater.py +85 -0
  90. rs2/modeler/properties/material/hydraulic/__init__.py +0 -0
  91. rs2/modeler/properties/material/stiffness/ChSoil.py +45 -0
  92. rs2/modeler/properties/material/stiffness/Custom.py +83 -0
  93. rs2/modeler/properties/material/stiffness/CySoil.py +45 -0
  94. rs2/modeler/properties/material/stiffness/DoubleYield.py +45 -0
  95. rs2/modeler/properties/material/stiffness/HardeningSoil.py +73 -0
  96. rs2/modeler/properties/material/stiffness/HardeningSoilSmallStrainStiffness.py +73 -0
  97. rs2/modeler/properties/material/stiffness/Isotropic.py +122 -0
  98. rs2/modeler/properties/material/stiffness/ManzariAndDafalias.py +38 -0
  99. rs2/modeler/properties/material/stiffness/NonLinearHyperbolic.py +117 -0
  100. rs2/modeler/properties/material/stiffness/NonLinearIsotropic.py +255 -0
  101. rs2/modeler/properties/material/stiffness/Norsand.py +45 -0
  102. rs2/modeler/properties/material/stiffness/Orthotropic.py +180 -0
  103. rs2/modeler/properties/material/stiffness/Pm4Sand.py +80 -0
  104. rs2/modeler/properties/material/stiffness/Pm4Silt.py +87 -0
  105. rs2/modeler/properties/material/stiffness/SoftSoil.py +24 -0
  106. rs2/modeler/properties/material/stiffness/SoftSoilCreep.py +24 -0
  107. rs2/modeler/properties/material/stiffness/Stiffness.py +53 -0
  108. rs2/modeler/properties/material/stiffness/SwellingRock.py +52 -0
  109. rs2/modeler/properties/material/stiffness/TransverselyIsotropic.py +145 -0
  110. rs2/modeler/properties/material/stiffness/ViscoElastic.py +59 -0
  111. rs2/modeler/properties/material/stiffness/__init__.py +0 -0
  112. rs2/modeler/properties/material/strength/AnisotropicLinear.py +150 -0
  113. rs2/modeler/properties/material/strength/BarcelonaBasic.py +176 -0
  114. rs2/modeler/properties/material/strength/BartonBandisStrength.py +59 -0
  115. rs2/modeler/properties/material/strength/BoundingSurfacePlasticity.py +66 -0
  116. rs2/modeler/properties/material/strength/CamClay.py +113 -0
  117. rs2/modeler/properties/material/strength/ChSoilStrength.py +66 -0
  118. rs2/modeler/properties/material/strength/CySoilStrength.py +94 -0
  119. rs2/modeler/properties/material/strength/DiscreteFunction.py +41 -0
  120. rs2/modeler/properties/material/strength/DoubleYieldStrength.py +94 -0
  121. rs2/modeler/properties/material/strength/DruckerPrager.py +113 -0
  122. rs2/modeler/properties/material/strength/Finn.py +129 -0
  123. rs2/modeler/properties/material/strength/GeneralizedAnisotropic.py +20 -0
  124. rs2/modeler/properties/material/strength/GeneralizedHoekBrown.py +195 -0
  125. rs2/modeler/properties/material/strength/HardeningSoilStrength.py +101 -0
  126. rs2/modeler/properties/material/strength/HardeningSoilWithSmallStrainStiffness.py +101 -0
  127. rs2/modeler/properties/material/strength/HoekBrown.py +102 -0
  128. rs2/modeler/properties/material/strength/Hyperbolic.py +59 -0
  129. rs2/modeler/properties/material/strength/JointedGeneralizedHoekBrown.py +198 -0
  130. rs2/modeler/properties/material/strength/JointedMohrCoulomb.py +116 -0
  131. rs2/modeler/properties/material/strength/ManzariAndDafaliasStrength.py +108 -0
  132. rs2/modeler/properties/material/strength/ModifiedCamClay.py +113 -0
  133. rs2/modeler/properties/material/strength/MohrCoulombStrength.py +113 -0
  134. rs2/modeler/properties/material/strength/MohrCoulombWithCap.py +112 -0
  135. rs2/modeler/properties/material/strength/NorSandStrength.py +101 -0
  136. rs2/modeler/properties/material/strength/PM4SandStrength.py +178 -0
  137. rs2/modeler/properties/material/strength/PM4SiltStrength.py +241 -0
  138. rs2/modeler/properties/material/strength/PowerCurve.py +101 -0
  139. rs2/modeler/properties/material/strength/Shansep.py +172 -0
  140. rs2/modeler/properties/material/strength/ShearNormalFunction.py +21 -0
  141. rs2/modeler/properties/material/strength/SnowdenModAnisotropicLinear.py +78 -0
  142. rs2/modeler/properties/material/strength/SoftSoilCreepStrength.py +87 -0
  143. rs2/modeler/properties/material/strength/SoftSoilStrength.py +80 -0
  144. rs2/modeler/properties/material/strength/SofteningHardeningModel.py +150 -0
  145. rs2/modeler/properties/material/strength/Strength.py +185 -0
  146. rs2/modeler/properties/material/strength/SwellingRockStrength.py +122 -0
  147. rs2/modeler/properties/material/strength/VerticalStressRatio.py +94 -0
  148. rs2/modeler/properties/material/strength/__init__.py +0 -0
  149. rs2/modeler/properties/material/thermal/Thermal.py +74 -0
  150. rs2/modeler/properties/material/thermal/__init__.py +0 -0
  151. rs2/modeler/properties/material/thermal/conductivity/Conductivity.py +27 -0
  152. rs2/modeler/properties/material/thermal/conductivity/ConstantConductivity.py +31 -0
  153. rs2/modeler/properties/material/thermal/conductivity/CoteAndKonrad.py +45 -0
  154. rs2/modeler/properties/material/thermal/conductivity/Derives.py +17 -0
  155. rs2/modeler/properties/material/thermal/conductivity/Johansen.py +45 -0
  156. rs2/modeler/properties/material/thermal/conductivity/JohansenLu.py +24 -0
  157. rs2/modeler/properties/material/thermal/conductivity/Tabular.py +31 -0
  158. rs2/modeler/properties/material/thermal/conductivity/__init__.py +0 -0
  159. rs2/modeler/properties/material/thermal/heatcapacity/ConstantHeatCapacity.py +38 -0
  160. rs2/modeler/properties/material/thermal/heatcapacity/CustomHeatCapacity.py +38 -0
  161. rs2/modeler/properties/material/thermal/heatcapacity/HeatCapacity.py +21 -0
  162. rs2/modeler/properties/material/thermal/heatcapacity/JameNewman.py +24 -0
  163. rs2/modeler/properties/material/thermal/heatcapacity/__init__.py +0 -0
  164. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/CustomWaterContent.py +13 -0
  165. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/Konrad.py +31 -0
  166. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/SoilUnfrozenWaterContent.py +23 -0
  167. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/TiceAnderson.py +31 -0
  168. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/__init__.py +0 -0
  169. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/BrooksWaterContent.py +24 -0
  170. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/FredlundWaterContent.py +31 -0
  171. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GardnerWaterContent.py +24 -0
  172. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/GenuchtenWaterContent.py +38 -0
  173. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/HydraulicModel.py +37 -0
  174. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/SimpleWaterContent.py +17 -0
  175. rs2/modeler/properties/material/thermal/soilunfrozenwatercontent/hydraulic/__init__.py +0 -0
  176. rs2/modeler/properties/pile/Beam.py +34 -0
  177. rs2/modeler/properties/pile/Elastic.py +45 -0
  178. rs2/modeler/properties/pile/ForceDisplacement.py +59 -0
  179. rs2/modeler/properties/pile/Linear.py +59 -0
  180. rs2/modeler/properties/pile/MaterialDependentPile.py +87 -0
  181. rs2/modeler/properties/pile/MohrCoulombPile.py +94 -0
  182. rs2/modeler/properties/pile/MultiLinear.py +56 -0
  183. rs2/modeler/properties/pile/Pile.py +63 -0
  184. rs2/modeler/properties/pile/__init__.py +0 -0
  185. rs2/modeler/properties/propertyProxy.py +283 -0
  186. rs2/utilities/ApplicationManager.py +64 -0
  187. rs2/utilities/ColorPicker.py +78 -0
  188. rs2/utilities/__init__.py +0 -0
@@ -0,0 +1,145 @@
1
+ from rs2.modeler.properties.propertyProxy import PropertyProxy
2
+ from rs2._common.Client import Client
3
+ from enum import Enum, auto
4
+ from typing import List
5
+ from rs2.modeler.properties.PropertyEnums import *
6
+ from rs2._common.ProxyObject import ProxyObject
7
+ from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
8
+ class TransverselyIsotropicStageFactor(ProxyObject):
9
+ def __init__(self, client : Client, ID, propertyID):
10
+ super().__init__(client, ID)
11
+ self.propertyID = propertyID
12
+ def getAngleCounterclockwiseFromHorizontalToE1Factor(self) -> float:
13
+ return self._callFunction("getDoubleFactor", ["MP_ELASTIC_ANGLE", self.propertyID], proxyArgumentIndices=[1])
14
+ def getPoissonsRatioVAndV1zFactor(self) -> float:
15
+ return self._callFunction("getDoubleFactor", ["MP_POISSONS_RATIO_V_AND_V1Z", self.propertyID], proxyArgumentIndices=[1])
16
+ def getPoissonsRatioV12Factor(self) -> float:
17
+ return self._callFunction("getDoubleFactor", ["MP_POISSONS_RATIO_V12", self.propertyID], proxyArgumentIndices=[1])
18
+ def getShearModulusFactor(self) -> float:
19
+ return self._callFunction("getDoubleFactor", ["MP_SHEAR_MODULUS", self.propertyID], proxyArgumentIndices=[1])
20
+ def getYoungsModulusE2Factor(self) -> float:
21
+ return self._callFunction("getDoubleFactor", ["MP_YOUNGS_MODULUS_E2", self.propertyID], proxyArgumentIndices=[1])
22
+ def getYoungsModulusE1AndEzFactor(self) -> float:
23
+ return self._callFunction("getDoubleFactor", ["MP_YOUNGS_MODULUS_E1_AND_EZ", self.propertyID], proxyArgumentIndices=[1])
24
+ class TransverselyIsotropicDefinedStageFactor(TransverselyIsotropicStageFactor):
25
+ def __init__(self, client : Client, ID, propertyID):
26
+ super().__init__(client, ID, propertyID)
27
+ def setAngleCounterclockwiseFromHorizontalToE1Factor(self, value: float):
28
+ return self._callFunction("setDoubleFactor", ["MP_ELASTIC_ANGLE", value, self.propertyID], proxyArgumentIndices=[2])
29
+ def setPoissonsRatioVAndV1zFactor(self, value: float):
30
+ return self._callFunction("setDoubleFactor", ["MP_POISSONS_RATIO_V_AND_V1Z", value, self.propertyID], proxyArgumentIndices=[2])
31
+ def setPoissonsRatioV12Factor(self, value: float):
32
+ return self._callFunction("setDoubleFactor", ["MP_POISSONS_RATIO_V12", value, self.propertyID], proxyArgumentIndices=[2])
33
+ def setShearModulusFactor(self, value: float):
34
+ return self._callFunction("setDoubleFactor", ["MP_SHEAR_MODULUS", value, self.propertyID], proxyArgumentIndices=[2])
35
+ def setYoungsModulusE2Factor(self, value: float):
36
+ return self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_E2", value, self.propertyID], proxyArgumentIndices=[2])
37
+ def setYoungsModulusE1AndEzFactor(self, value: float):
38
+ self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_E1", value, self.propertyID], proxyArgumentIndices = [2])
39
+ self._callFunction("setDoubleFactor", ["MP_YOUNGS_MODULUS_EZ", value, self.propertyID], proxyArgumentIndices = [2])
40
+ class TransverselyIsotropic(PropertyProxy):
41
+ def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
42
+ super().__init__(client, ID, documentProxyID)
43
+ self.stageFactorInterface = AbsoluteStageFactorGettersInterface[TransverselyIsotropicDefinedStageFactor, TransverselyIsotropicStageFactor](self._client, stageFactorInterfaceID, ID, TransverselyIsotropicDefinedStageFactor, TransverselyIsotropicStageFactor)
44
+ def getUseUnloadingCondition(self) -> bool:
45
+ return self._getBoolProperty("MP_USE_UNLOADING_CONDITION")
46
+ def setUseUnloadingCondition(self, value: bool):
47
+ return self._setBoolProperty("MP_USE_UNLOADING_CONDITION", value)
48
+ def getUnloadingCondition(self) -> UnloadingConditions:
49
+ return UnloadingConditions(self._getEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION"))
50
+ def setUnloadingCondition(self, value: UnloadingConditions):
51
+ return self._setEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION", value)
52
+ def getShearModulus(self) -> float:
53
+ return self._getDoubleProperty("MP_SHEAR_MODULUS")
54
+ def setShearModulus(self, value: float):
55
+ return self._setDoubleProperty("MP_SHEAR_MODULUS", value)
56
+ def getAngleCounterclockwiseFromHorizontalToE1(self) -> float:
57
+ return self._getDoubleProperty("MP_ELASTIC_ANGLE")
58
+ def setAngleCounterclockwiseFromHorizontalToE1(self, value: float):
59
+ return self._setDoubleProperty("MP_ELASTIC_ANGLE", value)
60
+ def getYoungsModulusE1AndEz(self) -> float:
61
+ return self._getDoubleProperty("MP_YOUNGS_MODULUS_E1_AND_EZ")
62
+ def setYoungsModulusE1AndEz(self, value: float):
63
+ return self._setDoubleProperty("MP_YOUNGS_MODULUS_E1_AND_EZ", value)
64
+ def getYoungsModulusE2(self) -> float:
65
+ return self._getDoubleProperty("MP_YOUNGS_MODULUS_E2")
66
+ def setYoungsModulusE2(self, value: float):
67
+ return self._setDoubleProperty("MP_YOUNGS_MODULUS_E2", value)
68
+ def getPoissonsRatioV12(self) -> float:
69
+ return self._getDoubleProperty("MP_POISSONS_RATIO_V12")
70
+ def setPoissonsRatioV12(self, value: float):
71
+ return self._setDoubleProperty("MP_POISSONS_RATIO_V12", value)
72
+ def getPoissonsRatioVAndV1z(self) -> float:
73
+ return self._getDoubleProperty("MP_POISSONS_RATIO_V_AND_V1Z")
74
+ def setPoissonsRatioVAndV1z(self, value: float):
75
+ return self._setDoubleProperty("MP_POISSONS_RATIO_V_AND_V1Z", value)
76
+ def getUnloadingShearModulus(self) -> float:
77
+ return self._getDoubleProperty("MP_UNLOADING_SHEAR_MODULUS")
78
+ def setUnloadingShearModulus(self, value: float):
79
+ return self._setDoubleProperty("MP_UNLOADING_SHEAR_MODULUS", value)
80
+ def getUnloadingAngleCounterclockwiseFromHorizontalToE1(self) -> float:
81
+ return self._getDoubleProperty("MP_UNLOADING_ELASTIC_ANGLE")
82
+ def setUnloadingAngleCounterclockwiseFromHorizontalToE1(self, value: float):
83
+ return self._setDoubleProperty("MP_UNLOADING_ELASTIC_ANGLE", value)
84
+ def getUnloadingYoungsModulusE1AndEz(self) -> float:
85
+ return self._getDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E1_AND_EZ")
86
+ def setUnloadingYoungsModulusE1AndEz(self, value: float):
87
+ return self._setDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E1_AND_EZ", value)
88
+ def getUnloadingYoungsModulusE2(self) -> float:
89
+ return self._getDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E2")
90
+ def setUnloadingYoungsModulusE2(self, value: float):
91
+ return self._setDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E2", value)
92
+ def getUnloadingPoissonsRatioV12(self) -> float:
93
+ return self._getDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V12")
94
+ def setUnloadingPoissonsRatioV12(self, value: float):
95
+ return self._setDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V12", value)
96
+ def getUnloadingPoissonsRatioVAndV1z(self) -> float:
97
+ return self._getDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V_AND_V1Z")
98
+ def setUnloadingPoissonsRatioVAndV1z(self, value: float):
99
+ return self._setDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V_AND_V1Z", value)
100
+ def setProperties(self, UseUnloadingCondition : bool = None, UnloadingCondition : UnloadingConditions = None, ShearModulus : float = None, AngleCounterclockwiseFromHorizontalToE1 : float = None, YoungsModulusE1AndEz : float = None, YoungsModulusE2 : float = None, PoissonsRatioV12 : float = None, PoissonsRatioVAndV1z : float = None, UnloadingShearModulus : float = None, UnloadingAngleCounterclockwiseFromHorizontalToE1 : float = None, UnloadingYoungsModulusE1AndEz : float = None, UnloadingYoungsModulusE2 : float = None, UnloadingPoissonsRatioV12 : float = None, UnloadingPoissonsRatioVAndV1z : float = None):
101
+ if UseUnloadingCondition is not None:
102
+ self._setBoolProperty("MP_USE_UNLOADING_CONDITION", UseUnloadingCondition)
103
+ if UnloadingCondition is not None:
104
+ self._setEnumEUnloadingConditionsProperty("MP_UNLOADING_CONDITION", UnloadingCondition)
105
+ if ShearModulus is not None:
106
+ self._setDoubleProperty("MP_SHEAR_MODULUS", ShearModulus)
107
+ if AngleCounterclockwiseFromHorizontalToE1 is not None:
108
+ self._setDoubleProperty("MP_ELASTIC_ANGLE", AngleCounterclockwiseFromHorizontalToE1)
109
+ if YoungsModulusE1AndEz is not None:
110
+ self._setDoubleProperty("MP_YOUNGS_MODULUS_E1_AND_EZ", YoungsModulusE1AndEz)
111
+ if YoungsModulusE2 is not None:
112
+ self._setDoubleProperty("MP_YOUNGS_MODULUS_E2", YoungsModulusE2)
113
+ if PoissonsRatioV12 is not None:
114
+ self._setDoubleProperty("MP_POISSONS_RATIO_V12", PoissonsRatioV12)
115
+ if PoissonsRatioVAndV1z is not None:
116
+ self._setDoubleProperty("MP_POISSONS_RATIO_V_AND_V1Z", PoissonsRatioVAndV1z)
117
+ if UnloadingShearModulus is not None:
118
+ self._setDoubleProperty("MP_UNLOADING_SHEAR_MODULUS", UnloadingShearModulus)
119
+ if UnloadingAngleCounterclockwiseFromHorizontalToE1 is not None:
120
+ self._setDoubleProperty("MP_UNLOADING_ELASTIC_ANGLE", UnloadingAngleCounterclockwiseFromHorizontalToE1)
121
+ if UnloadingYoungsModulusE1AndEz is not None:
122
+ self._setDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E1_AND_EZ", UnloadingYoungsModulusE1AndEz)
123
+ if UnloadingYoungsModulusE2 is not None:
124
+ self._setDoubleProperty("MP_UNLOADING_YOUNGS_MODULUS_E2", UnloadingYoungsModulusE2)
125
+ if UnloadingPoissonsRatioV12 is not None:
126
+ self._setDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V12", UnloadingPoissonsRatioV12)
127
+ if UnloadingPoissonsRatioVAndV1z is not None:
128
+ self._setDoubleProperty("MP_UNLOADING_POISSONS_RATIO_V_AND_V1Z", UnloadingPoissonsRatioVAndV1z)
129
+ def getProperties(self):
130
+ return {
131
+ "UseUnloadingCondition" : self.getUseUnloadingCondition(),
132
+ "UnloadingCondition" : self.getUnloadingCondition(),
133
+ "ShearModulus" : self.getShearModulus(),
134
+ "AngleCounterclockwiseFromHorizontalToE1" : self.getAngleCounterclockwiseFromHorizontalToE1(),
135
+ "YoungsModulusE1AndEz" : self.getYoungsModulusE1AndEz(),
136
+ "YoungsModulusE2" : self.getYoungsModulusE2(),
137
+ "PoissonsRatioV12" : self.getPoissonsRatioV12(),
138
+ "PoissonsRatioVAndV1z" : self.getPoissonsRatioVAndV1z(),
139
+ "UnloadingShearModulus" : self.getUnloadingShearModulus(),
140
+ "UnloadingAngleCounterclockwiseFromHorizontalToE1" : self.getUnloadingAngleCounterclockwiseFromHorizontalToE1(),
141
+ "UnloadingYoungsModulusE1AndEz" : self.getUnloadingYoungsModulusE1AndEz(),
142
+ "UnloadingYoungsModulusE2" : self.getUnloadingYoungsModulusE2(),
143
+ "UnloadingPoissonsRatioV12" : self.getUnloadingPoissonsRatioV12(),
144
+ "UnloadingPoissonsRatioVAndV1z" : self.getUnloadingPoissonsRatioVAndV1z(),
145
+ }
@@ -0,0 +1,59 @@
1
+ from rs2.modeler.properties.propertyProxy import PropertyProxy
2
+ from rs2._common.Client import Client
3
+ from enum import Enum, auto
4
+ from typing import List
5
+ from rs2.modeler.properties.PropertyEnums import *
6
+ class ViscoElastic(PropertyProxy):
7
+ def getViscoElasticType(self) -> ViscoElasticTypes:
8
+ return ViscoElasticTypes(self._getEnumEViscoElasticTypesProperty("MP_VISCO_ELASTIC_TYPE"))
9
+ def setViscoElasticType(self, value: ViscoElasticTypes):
10
+ return self._setEnumEViscoElasticTypesProperty("MP_VISCO_ELASTIC_TYPE", value)
11
+ def getBulkModulus(self) -> float:
12
+ return self._getDoubleProperty("MP_BULK_MODULUS")
13
+ def setBulkModulus(self, value: float):
14
+ return self._setDoubleProperty("MP_BULK_MODULUS", value)
15
+ def getMaxwellShearModulus(self) -> float:
16
+ return self._getDoubleProperty("MP_MAXWELL_SHEAR_MODULUS")
17
+ def setMaxwellShearModulus(self, value: float):
18
+ return self._setDoubleProperty("MP_MAXWELL_SHEAR_MODULUS", value)
19
+ def getMaxwellViscosity(self) -> float:
20
+ return self._getDoubleProperty("MP_MAXWELL_VISCOSITY")
21
+ def setMaxwellViscosity(self, value: float):
22
+ return self._setDoubleProperty("MP_MAXWELL_VISCOSITY", value)
23
+ def getKelvinShearModulus(self) -> float:
24
+ return self._getDoubleProperty("MP_KELVIN_SHEAR_MODULUS")
25
+ def setKelvinShearModulus(self, value: float):
26
+ return self._setDoubleProperty("MP_KELVIN_SHEAR_MODULUS", value)
27
+ def getKelvinViscosity(self) -> float:
28
+ return self._getDoubleProperty("MP_KELVIN_VISCOSITY")
29
+ def setKelvinViscosity(self, value: float):
30
+ return self._setDoubleProperty("MP_KELVIN_VISCOSITY", value)
31
+ def getShearModulus(self) -> float:
32
+ return self._getDoubleProperty("MP_SHEAR_MODULUS")
33
+ def setShearModulus(self, value: float):
34
+ return self._setDoubleProperty("MP_SHEAR_MODULUS", value)
35
+ def setProperties(self, ViscoElasticType : ViscoElasticTypes = None, BulkModulus : float = None, MaxwellShearModulus : float = None, MaxwellViscosity : float = None, KelvinShearModulus : float = None, KelvinViscosity : float = None, ShearModulus : float = None):
36
+ if ViscoElasticType is not None:
37
+ self._setEnumEViscoElasticTypesProperty("MP_VISCO_ELASTIC_TYPE", ViscoElasticType)
38
+ if BulkModulus is not None:
39
+ self._setDoubleProperty("MP_BULK_MODULUS", BulkModulus)
40
+ if MaxwellShearModulus is not None:
41
+ self._setDoubleProperty("MP_MAXWELL_SHEAR_MODULUS", MaxwellShearModulus)
42
+ if MaxwellViscosity is not None:
43
+ self._setDoubleProperty("MP_MAXWELL_VISCOSITY", MaxwellViscosity)
44
+ if KelvinShearModulus is not None:
45
+ self._setDoubleProperty("MP_KELVIN_SHEAR_MODULUS", KelvinShearModulus)
46
+ if KelvinViscosity is not None:
47
+ self._setDoubleProperty("MP_KELVIN_VISCOSITY", KelvinViscosity)
48
+ if ShearModulus is not None:
49
+ self._setDoubleProperty("MP_SHEAR_MODULUS", ShearModulus)
50
+ def getProperties(self):
51
+ return {
52
+ "ViscoElasticType" : self.getViscoElasticType(),
53
+ "BulkModulus" : self.getBulkModulus(),
54
+ "MaxwellShearModulus" : self.getMaxwellShearModulus(),
55
+ "MaxwellViscosity" : self.getMaxwellViscosity(),
56
+ "KelvinShearModulus" : self.getKelvinShearModulus(),
57
+ "KelvinViscosity" : self.getKelvinViscosity(),
58
+ "ShearModulus" : self.getShearModulus(),
59
+ }
File without changes
@@ -0,0 +1,150 @@
1
+ from rs2.modeler.properties.propertyProxy import PropertyProxy
2
+ from rs2._common.Client import Client
3
+ from enum import Enum, auto
4
+ from typing import List
5
+ from rs2.modeler.properties.PropertyEnums import *
6
+ class AnisotropicLinear(PropertyProxy):
7
+ def getMaterialType(self) -> MaterialType:
8
+ return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
9
+ def setMaterialType(self, value: MaterialType):
10
+ return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
11
+ def getA1Parameter(self) -> float:
12
+ return self._getDoubleProperty("MP_A1")
13
+ def setA1Parameter(self, value: float):
14
+ return self._setDoubleProperty("MP_A1", value)
15
+ def getB1Parameter(self) -> float:
16
+ return self._getDoubleProperty("MP_B1")
17
+ def setB1Parameter(self, value: float):
18
+ return self._setDoubleProperty("MP_B1", value)
19
+ def getUseTensileStrength(self) -> bool:
20
+ return self._getBoolProperty("MP_USE_TENSILE_STRENGTH")
21
+ def setUseTensileStrength(self, value: bool):
22
+ return self._setBoolProperty("MP_USE_TENSILE_STRENGTH", value)
23
+ def getCohesion1(self) -> float:
24
+ return self._getDoubleProperty("MP_COHESION_1")
25
+ def setCohesion1(self, value: float):
26
+ return self._setDoubleProperty("MP_COHESION_1", value)
27
+ def getCohesion2(self) -> float:
28
+ return self._getDoubleProperty("MP_COHESION_2")
29
+ def setCohesion2(self, value: float):
30
+ return self._setDoubleProperty("MP_COHESION_2", value)
31
+ def getFrictionAngle1(self) -> float:
32
+ return self._getDoubleProperty("MP_PHI_1")
33
+ def setFrictionAngle1(self, value: float):
34
+ return self._setDoubleProperty("MP_PHI_1", value)
35
+ def getFrictionAngle2(self) -> float:
36
+ return self._getDoubleProperty("MP_PHI_2")
37
+ def setFrictionAngle2(self, value: float):
38
+ return self._setDoubleProperty("MP_PHI_2", value)
39
+ def getPeakTensileStrength(self) -> float:
40
+ return self._getDoubleProperty("MP_PEAK_TENSILE_STRENGTH")
41
+ def setPeakTensileStrength(self, value: float):
42
+ return self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", value)
43
+ def getResidualCohesion1(self) -> float:
44
+ return self._getDoubleProperty("MP_COHESION_1_RES")
45
+ def setResidualCohesion1(self, value: float):
46
+ return self._setDoubleProperty("MP_COHESION_1_RES", value)
47
+ def getResidualCohesion2(self) -> float:
48
+ return self._getDoubleProperty("MP_COHESION_2_RES")
49
+ def setResidualCohesion2(self, value: float):
50
+ return self._setDoubleProperty("MP_COHESION_2_RES", value)
51
+ def getResidualFrictionAngle1(self) -> float:
52
+ return self._getDoubleProperty("MP_PHI_1_RES")
53
+ def setResidualFrictionAngle1(self, value: float):
54
+ return self._setDoubleProperty("MP_PHI_1_RES", value)
55
+ def getResidualFrictionAngle2(self) -> float:
56
+ return self._getDoubleProperty("MP_PHI_2_RES")
57
+ def setResidualFrictionAngle2(self, value: float):
58
+ return self._setDoubleProperty("MP_PHI_2_RES", value)
59
+ def getDilationAngle1(self) -> float:
60
+ return self._getDoubleProperty("MP_DILATION_ANGLE_1")
61
+ def setDilationAngle1(self, value: float):
62
+ return self._setDoubleProperty("MP_DILATION_ANGLE_1", value)
63
+ def getDilationAngle2(self) -> float:
64
+ return self._getDoubleProperty("MP_DILATION_ANGLE_2")
65
+ def setDilationAngle2(self, value: float):
66
+ return self._setDoubleProperty("MP_DILATION_ANGLE_2", value)
67
+ def getResidualTensileStrength(self) -> float:
68
+ return self._getDoubleProperty("MP_TENSILE_STRENGTH_RES")
69
+ def setResidualTensileStrength(self, value: float):
70
+ return self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", value)
71
+ def getApplySSRShearStrengthReduction(self) -> bool:
72
+ return self._getBoolProperty("MP_APPLY_SSR")
73
+ def setApplySSRShearStrengthReduction(self, value: bool):
74
+ return self._setBoolProperty("MP_APPLY_SSR", value)
75
+ def getAnisotropyDefinition(self) -> AnisotropyDefinitions:
76
+ return AnisotropyDefinitions(self._getEnumEAnisotropyDefinitionsProperty("MP_ANISOTROPY_DEFINITION"))
77
+ def setAnisotropyDefinition(self, value: AnisotropyDefinitions):
78
+ return self._setEnumEAnisotropyDefinitionsProperty("MP_ANISOTROPY_DEFINITION", value)
79
+ def getAngleCcwTo1(self) -> float:
80
+ return self._getDoubleProperty("MP_ANISOTROPY_ANGLE")
81
+ def setAngleCcwTo1(self, value: float):
82
+ return self._setDoubleProperty("MP_ANISOTROPY_ANGLE", value)
83
+ def setAnisotropicSurfaceByName(self, surfaceName: str):
84
+ """
85
+ Sets the anisotropic surface by name. The surface must be defined in the model.
86
+ """
87
+ return self._callFunction("setAnisotropicSurfaceByName", [surfaceName])
88
+ def getAnisotropicSurfaceName(self) -> str:
89
+ return self._callFunction("getAnisotropicSurfaceName", [])
90
+ def setProperties(self, MaterialType : MaterialType = None, A1Parameter : float = None, B1Parameter : float = None, UseTensileStrength : bool = None, Cohesion1 : float = None, Cohesion2 : float = None, FrictionAngle1 : float = None, FrictionAngle2 : float = None, PeakTensileStrength : float = None, ResidualCohesion1 : float = None, ResidualCohesion2 : float = None, ResidualFrictionAngle1 : float = None, ResidualFrictionAngle2 : float = None, DilationAngle1 : float = None, DilationAngle2 : float = None, ResidualTensileStrength : float = None, ApplySSRShearStrengthReduction : bool = None, AnisotropyDefinition : AnisotropyDefinitions = None, AngleCcwTo1 : float = None):
91
+ if MaterialType is not None:
92
+ self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
93
+ if A1Parameter is not None:
94
+ self._setDoubleProperty("MP_A1", A1Parameter)
95
+ if B1Parameter is not None:
96
+ self._setDoubleProperty("MP_B1", B1Parameter)
97
+ if UseTensileStrength is not None:
98
+ self._setBoolProperty("MP_USE_TENSILE_STRENGTH", UseTensileStrength)
99
+ if Cohesion1 is not None:
100
+ self._setDoubleProperty("MP_COHESION_1", Cohesion1)
101
+ if Cohesion2 is not None:
102
+ self._setDoubleProperty("MP_COHESION_2", Cohesion2)
103
+ if FrictionAngle1 is not None:
104
+ self._setDoubleProperty("MP_PHI_1", FrictionAngle1)
105
+ if FrictionAngle2 is not None:
106
+ self._setDoubleProperty("MP_PHI_2", FrictionAngle2)
107
+ if PeakTensileStrength is not None:
108
+ self._setDoubleProperty("MP_PEAK_TENSILE_STRENGTH", PeakTensileStrength)
109
+ if ResidualCohesion1 is not None:
110
+ self._setDoubleProperty("MP_COHESION_1_RES", ResidualCohesion1)
111
+ if ResidualCohesion2 is not None:
112
+ self._setDoubleProperty("MP_COHESION_2_RES", ResidualCohesion2)
113
+ if ResidualFrictionAngle1 is not None:
114
+ self._setDoubleProperty("MP_PHI_1_RES", ResidualFrictionAngle1)
115
+ if ResidualFrictionAngle2 is not None:
116
+ self._setDoubleProperty("MP_PHI_2_RES", ResidualFrictionAngle2)
117
+ if DilationAngle1 is not None:
118
+ self._setDoubleProperty("MP_DILATION_ANGLE_1", DilationAngle1)
119
+ if DilationAngle2 is not None:
120
+ self._setDoubleProperty("MP_DILATION_ANGLE_2", DilationAngle2)
121
+ if ResidualTensileStrength is not None:
122
+ self._setDoubleProperty("MP_TENSILE_STRENGTH_RES", ResidualTensileStrength)
123
+ if ApplySSRShearStrengthReduction is not None:
124
+ self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
125
+ if AnisotropyDefinition is not None:
126
+ self._setEnumEAnisotropyDefinitionsProperty("MP_ANISOTROPY_DEFINITION", AnisotropyDefinition)
127
+ if AngleCcwTo1 is not None:
128
+ self._setDoubleProperty("MP_ANISOTROPY_ANGLE", AngleCcwTo1)
129
+ def getProperties(self):
130
+ return {
131
+ "MaterialType" : self.getMaterialType(),
132
+ "A1Parameter" : self.getA1Parameter(),
133
+ "B1Parameter" : self.getB1Parameter(),
134
+ "UseTensileStrength" : self.getUseTensileStrength(),
135
+ "Cohesion1" : self.getCohesion1(),
136
+ "Cohesion2" : self.getCohesion2(),
137
+ "FrictionAngle1" : self.getFrictionAngle1(),
138
+ "FrictionAngle2" : self.getFrictionAngle2(),
139
+ "PeakTensileStrength" : self.getPeakTensileStrength(),
140
+ "ResidualCohesion1" : self.getResidualCohesion1(),
141
+ "ResidualCohesion2" : self.getResidualCohesion2(),
142
+ "ResidualFrictionAngle1" : self.getResidualFrictionAngle1(),
143
+ "ResidualFrictionAngle2" : self.getResidualFrictionAngle2(),
144
+ "DilationAngle1" : self.getDilationAngle1(),
145
+ "DilationAngle2" : self.getDilationAngle2(),
146
+ "ResidualTensileStrength" : self.getResidualTensileStrength(),
147
+ "ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
148
+ "AnisotropyDefinition" : self.getAnisotropyDefinition(),
149
+ "AngleCcwTo1" : self.getAngleCcwTo1(),
150
+ }
@@ -0,0 +1,176 @@
1
+ from rs2.modeler.properties.propertyProxy import PropertyProxy
2
+ from rs2._common.Client import Client
3
+ from enum import Enum, auto
4
+ from typing import List
5
+ from rs2.modeler.properties.PropertyEnums import *
6
+ from rs2._common.ProxyObject import ProxyObject
7
+ from rs2.modeler.properties.AbsoluteStageFactorGettersInterface import AbsoluteStageFactorGettersInterface
8
+ class BarcelonaBasicStageFactor(ProxyObject):
9
+ def __init__(self, client : Client, ID, propertyID):
10
+ super().__init__(client, ID)
11
+ self.propertyID = propertyID
12
+ def getCriticalStateSlopeFactor(self) -> float:
13
+ return self._callFunction("getDoubleFactor", ["MP_CRITICAL_STATE_SLOPE", self.propertyID], proxyArgumentIndices=[1])
14
+ def getGammaFactor(self) -> float:
15
+ return self._callFunction("getDoubleFactor", ["MP_GAMMA", self.propertyID], proxyArgumentIndices=[1])
16
+ def getKappaFactor(self) -> float:
17
+ return self._callFunction("getDoubleFactor", ["MP_KAPPA", self.propertyID], proxyArgumentIndices=[1])
18
+ def getLambdaFactor(self) -> float:
19
+ return self._callFunction("getDoubleFactor", ["MP_LAMBDA", self.propertyID], proxyArgumentIndices=[1])
20
+ def getNParameterFactor(self) -> float:
21
+ return self._callFunction("getDoubleFactor", ["MP_N", self.propertyID], proxyArgumentIndices=[1])
22
+ def getOverconsolidationRatioFactor(self) -> float:
23
+ return self._callFunction("getDoubleFactor", ["MP_OVERCONSOLIDATION_RATIO", self.propertyID], proxyArgumentIndices=[1])
24
+ def getPreconsolidationStressFactor(self) -> float:
25
+ return self._callFunction("getDoubleFactor", ["MP_PRECONSOLIDATION_STRESS", self.propertyID], proxyArgumentIndices=[1])
26
+ class BarcelonaBasicDefinedStageFactor(BarcelonaBasicStageFactor):
27
+ def __init__(self, client : Client, ID, propertyID):
28
+ super().__init__(client, ID, propertyID)
29
+ def setCriticalStateSlopeFactor(self, value: float):
30
+ return self._callFunction("setDoubleFactor", ["MP_CRITICAL_STATE_SLOPE", value, self.propertyID], proxyArgumentIndices=[2])
31
+ def setGammaFactor(self, value: float):
32
+ return self._callFunction("setDoubleFactor", ["MP_GAMMA", value, self.propertyID], proxyArgumentIndices=[2])
33
+ def setKappaFactor(self, value: float):
34
+ return self._callFunction("setDoubleFactor", ["MP_KAPPA", value, self.propertyID], proxyArgumentIndices=[2])
35
+ def setLambdaFactor(self, value: float):
36
+ return self._callFunction("setDoubleFactor", ["MP_LAMBDA", value, self.propertyID], proxyArgumentIndices=[2])
37
+ def setNParameterFactor(self, value: float):
38
+ return self._callFunction("setDoubleFactor", ["MP_N", value, self.propertyID], proxyArgumentIndices=[2])
39
+ def setOverconsolidationRatioFactor(self, value: float):
40
+ return self._callFunction("setDoubleFactor", ["MP_OVERCONSOLIDATION_RATIO", value, self.propertyID], proxyArgumentIndices=[2])
41
+ def setPreconsolidationStressFactor(self, value: float):
42
+ return self._callFunction("setDoubleFactor", ["MP_PRECONSOLIDATION_STRESS", value, self.propertyID], proxyArgumentIndices=[2])
43
+ class BarcelonaBasic(PropertyProxy):
44
+ def __init__(self, client : Client, ID, documentProxyID, stageFactorInterfaceID):
45
+ super().__init__(client, ID, documentProxyID)
46
+ self.stageFactorInterface = AbsoluteStageFactorGettersInterface[BarcelonaBasicDefinedStageFactor, BarcelonaBasicStageFactor](self._client, stageFactorInterfaceID, ID, BarcelonaBasicDefinedStageFactor, BarcelonaBasicStageFactor)
47
+ def getSlopeOfCriticalStateLines(self) -> float:
48
+ return self._getDoubleProperty("MP_M_SLOPE")
49
+ def setSlopeOfCriticalStateLines(self, value: float):
50
+ return self._setDoubleProperty("MP_M_SLOPE", value)
51
+ def getIncludeTheEffectOfLodesAngle(self) -> bool:
52
+ return self._getBoolProperty("MP_USE_LODE")
53
+ def setIncludeTheEffectOfLodesAngle(self, value: bool):
54
+ return self._setBoolProperty("MP_USE_LODE", value)
55
+ def getLambda(self) -> float:
56
+ return self._getDoubleProperty("MP_BB_LAMBDA")
57
+ def setLambda(self, value: float):
58
+ return self._setDoubleProperty("MP_BB_LAMBDA", value)
59
+ def getKappa(self) -> float:
60
+ return self._getDoubleProperty("MP_BB_KAPPA")
61
+ def setKappa(self, value: float):
62
+ return self._setDoubleProperty("MP_BB_KAPPA", value)
63
+ def getSpecificVolumeAtUnitPressure(self) -> float:
64
+ return self._getDoubleProperty("MP_BB_N")
65
+ def setSpecificVolumeAtUnitPressure(self, value: float):
66
+ return self._setDoubleProperty("MP_BB_N", value)
67
+ def getInitialStateOfConsolidation(self) -> InitialStateOfConsolidation:
68
+ return InitialStateOfConsolidation(self._getEnumEInitialStateOfConsolidationProperty("MP_INITIAL_CONSOLIDATION_STATE"))
69
+ def setInitialStateOfConsolidation(self, value: InitialStateOfConsolidation):
70
+ return self._setEnumEInitialStateOfConsolidationProperty("MP_INITIAL_CONSOLIDATION_STATE", value)
71
+ def getOverConsolidationRatio(self) -> float:
72
+ return self._getDoubleProperty("MP_BB_OCR")
73
+ def setOverConsolidationRatio(self, value: float):
74
+ return self._setDoubleProperty("MP_BB_OCR", value)
75
+ def getPreconsolidationPressure(self) -> float:
76
+ return self._getDoubleProperty("MP_BB_PC")
77
+ def setPreconsolidationPressure(self, value: float):
78
+ return self._setDoubleProperty("MP_BB_PC", value)
79
+ def getElasticParameters(self) -> ElasticParameters:
80
+ return ElasticParameters(self._getEnumEElasticParametersProperty("MP_ELASTIC_PARAMETERS"))
81
+ def setElasticParameters(self, value: ElasticParameters):
82
+ return self._setEnumEElasticParametersProperty("MP_ELASTIC_PARAMETERS", value)
83
+ def getAutoCalculateAlfaFactor(self) -> bool:
84
+ return self._getBoolProperty("MP_USE_AUTO_ALFA")
85
+ def setAutoCalculateAlfaFactor(self, value: bool):
86
+ return self._setBoolProperty("MP_USE_AUTO_ALFA", value)
87
+ def getAlfaFactor(self) -> float:
88
+ return self._getDoubleProperty("MP_ALFA")
89
+ def setAlfaFactor(self, value: float):
90
+ return self._setDoubleProperty("MP_ALFA", value)
91
+ def getMinimumBulkModulus(self) -> float:
92
+ return self._getDoubleProperty("MP_MIN_BULK_MODULUS")
93
+ def setMinimumBulkModulus(self, value: float):
94
+ return self._setDoubleProperty("MP_MIN_BULK_MODULUS", value)
95
+ def getKTensionSuction(self) -> float:
96
+ return self._getDoubleProperty("MP_K_TENSION_SUCTION")
97
+ def setKTensionSuction(self, value: float):
98
+ return self._setDoubleProperty("MP_K_TENSION_SUCTION", value)
99
+ def getKapaSuction(self) -> float:
100
+ return self._getDoubleProperty("MP_KAPA_SUCTION")
101
+ def setKapaSuction(self, value: float):
102
+ return self._setDoubleProperty("MP_KAPA_SUCTION", value)
103
+ def getRParameter(self) -> float:
104
+ return self._getDoubleProperty("MP_BB_R")
105
+ def setRParameter(self, value: float):
106
+ return self._setDoubleProperty("MP_BB_R", value)
107
+ def getBetaParameter(self) -> float:
108
+ return self._getDoubleProperty("MP_BB_BETA")
109
+ def setBetaParameter(self, value: float):
110
+ return self._setDoubleProperty("MP_BB_BETA", value)
111
+ def getReferenceMeanStress(self) -> float:
112
+ return self._getDoubleProperty("MP_REF_PRESSURE")
113
+ def setReferenceMeanStress(self, value: float):
114
+ return self._setDoubleProperty("MP_REF_PRESSURE", value)
115
+ def getAtmosphericPressure(self) -> float:
116
+ return self._getDoubleProperty("MP_P_ATM")
117
+ def setAtmosphericPressure(self, value: float):
118
+ return self._setDoubleProperty("MP_P_ATM", value)
119
+ def setProperties(self, SlopeOfCriticalStateLines : float = None, IncludeTheEffectOfLodesAngle : bool = None, Lambda : float = None, Kappa : float = None, SpecificVolumeAtUnitPressure : float = None, InitialStateOfConsolidation : InitialStateOfConsolidation = None, OverConsolidationRatio : float = None, PreconsolidationPressure : float = None, ElasticParameters : ElasticParameters = None, AutoCalculateAlfaFactor : bool = None, AlfaFactor : float = None, MinimumBulkModulus : float = None, KTensionSuction : float = None, KapaSuction : float = None, RParameter : float = None, BetaParameter : float = None, ReferenceMeanStress : float = None, AtmosphericPressure : float = None):
120
+ if SlopeOfCriticalStateLines is not None:
121
+ self._setDoubleProperty("MP_M_SLOPE", SlopeOfCriticalStateLines)
122
+ if IncludeTheEffectOfLodesAngle is not None:
123
+ self._setBoolProperty("MP_USE_LODE", IncludeTheEffectOfLodesAngle)
124
+ if Lambda is not None:
125
+ self._setDoubleProperty("MP_BB_LAMBDA", Lambda)
126
+ if Kappa is not None:
127
+ self._setDoubleProperty("MP_BB_KAPPA", Kappa)
128
+ if SpecificVolumeAtUnitPressure is not None:
129
+ self._setDoubleProperty("MP_BB_N", SpecificVolumeAtUnitPressure)
130
+ if InitialStateOfConsolidation is not None:
131
+ self._setEnumEInitialStateOfConsolidationProperty("MP_INITIAL_CONSOLIDATION_STATE", InitialStateOfConsolidation)
132
+ if OverConsolidationRatio is not None:
133
+ self._setDoubleProperty("MP_BB_OCR", OverConsolidationRatio)
134
+ if PreconsolidationPressure is not None:
135
+ self._setDoubleProperty("MP_BB_PC", PreconsolidationPressure)
136
+ if ElasticParameters is not None:
137
+ self._setEnumEElasticParametersProperty("MP_ELASTIC_PARAMETERS", ElasticParameters)
138
+ if AutoCalculateAlfaFactor is not None:
139
+ self._setBoolProperty("MP_USE_AUTO_ALFA", AutoCalculateAlfaFactor)
140
+ if AlfaFactor is not None:
141
+ self._setDoubleProperty("MP_ALFA", AlfaFactor)
142
+ if MinimumBulkModulus is not None:
143
+ self._setDoubleProperty("MP_MIN_BULK_MODULUS", MinimumBulkModulus)
144
+ if KTensionSuction is not None:
145
+ self._setDoubleProperty("MP_K_TENSION_SUCTION", KTensionSuction)
146
+ if KapaSuction is not None:
147
+ self._setDoubleProperty("MP_KAPA_SUCTION", KapaSuction)
148
+ if RParameter is not None:
149
+ self._setDoubleProperty("MP_BB_R", RParameter)
150
+ if BetaParameter is not None:
151
+ self._setDoubleProperty("MP_BB_BETA", BetaParameter)
152
+ if ReferenceMeanStress is not None:
153
+ self._setDoubleProperty("MP_REF_PRESSURE", ReferenceMeanStress)
154
+ if AtmosphericPressure is not None:
155
+ self._setDoubleProperty("MP_P_ATM", AtmosphericPressure)
156
+ def getProperties(self):
157
+ return {
158
+ "SlopeOfCriticalStateLines" : self.getSlopeOfCriticalStateLines(),
159
+ "IncludeTheEffectOfLodesAngle" : self.getIncludeTheEffectOfLodesAngle(),
160
+ "Lambda" : self.getLambda(),
161
+ "Kappa" : self.getKappa(),
162
+ "SpecificVolumeAtUnitPressure" : self.getSpecificVolumeAtUnitPressure(),
163
+ "InitialStateOfConsolidation" : self.getInitialStateOfConsolidation(),
164
+ "OverConsolidationRatio" : self.getOverConsolidationRatio(),
165
+ "PreconsolidationPressure" : self.getPreconsolidationPressure(),
166
+ "ElasticParameters" : self.getElasticParameters(),
167
+ "AutoCalculateAlfaFactor" : self.getAutoCalculateAlfaFactor(),
168
+ "AlfaFactor" : self.getAlfaFactor(),
169
+ "MinimumBulkModulus" : self.getMinimumBulkModulus(),
170
+ "KTensionSuction" : self.getKTensionSuction(),
171
+ "KapaSuction" : self.getKapaSuction(),
172
+ "RParameter" : self.getRParameter(),
173
+ "BetaParameter" : self.getBetaParameter(),
174
+ "ReferenceMeanStress" : self.getReferenceMeanStress(),
175
+ "AtmosphericPressure" : self.getAtmosphericPressure(),
176
+ }
@@ -0,0 +1,59 @@
1
+ from rs2.modeler.properties.propertyProxy import PropertyProxy
2
+ from rs2._common.Client import Client
3
+ from enum import Enum, auto
4
+ from typing import List
5
+ from rs2.modeler.properties.PropertyEnums import *
6
+ class BartonBandisStrength(PropertyProxy):
7
+ def getMaterialType(self) -> MaterialType:
8
+ return MaterialType(self._getEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE"))
9
+ def setMaterialType(self, value: MaterialType):
10
+ return self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", value)
11
+ def getPhiR(self) -> float:
12
+ return self._getDoubleProperty("MP_PHI_R")
13
+ def setPhiR(self, value: float):
14
+ return self._setDoubleProperty("MP_PHI_R", value)
15
+ def getJRC(self) -> float:
16
+ return self._getDoubleProperty("MP_JRC")
17
+ def setJRC(self, value: float):
18
+ return self._setDoubleProperty("MP_JRC", value)
19
+ def getJCS(self) -> float:
20
+ return self._getDoubleProperty("MP_JCS")
21
+ def setJCS(self, value: float):
22
+ return self._setDoubleProperty("MP_JCS", value)
23
+ def getDilationRatio(self) -> float:
24
+ return self._getDoubleProperty("MP_DILATION_RATIO")
25
+ def setDilationRatio(self, value: float):
26
+ return self._setDoubleProperty("MP_DILATION_RATIO", value)
27
+ def getResidualStrength(self) -> bool:
28
+ return self._getBoolProperty("MP_RESIDUAL_STRENGTH")
29
+ def setResidualStrength(self, value: bool):
30
+ return self._setBoolProperty("MP_RESIDUAL_STRENGTH", value)
31
+ def getApplySSRShearStrengthReduction(self) -> bool:
32
+ return self._getBoolProperty("MP_APPLY_SSR")
33
+ def setApplySSRShearStrengthReduction(self, value: bool):
34
+ return self._setBoolProperty("MP_APPLY_SSR", value)
35
+ def setProperties(self, MaterialType : MaterialType = None, PhiR : float = None, JRC : float = None, JCS : float = None, DilationRatio : float = None, ResidualStrength : bool = None, ApplySSRShearStrengthReduction : bool = None):
36
+ if MaterialType is not None:
37
+ self._setEnumEMaterialAnalysisTypesProperty("MP_MATERIAL_TYPE", MaterialType)
38
+ if PhiR is not None:
39
+ self._setDoubleProperty("MP_PHI_R", PhiR)
40
+ if JRC is not None:
41
+ self._setDoubleProperty("MP_JRC", JRC)
42
+ if JCS is not None:
43
+ self._setDoubleProperty("MP_JCS", JCS)
44
+ if DilationRatio is not None:
45
+ self._setDoubleProperty("MP_DILATION_RATIO", DilationRatio)
46
+ if ResidualStrength is not None:
47
+ self._setBoolProperty("MP_RESIDUAL_STRENGTH", ResidualStrength)
48
+ if ApplySSRShearStrengthReduction is not None:
49
+ self._setBoolProperty("MP_APPLY_SSR", ApplySSRShearStrengthReduction)
50
+ def getProperties(self):
51
+ return {
52
+ "MaterialType" : self.getMaterialType(),
53
+ "PhiR" : self.getPhiR(),
54
+ "JRC" : self.getJRC(),
55
+ "JCS" : self.getJCS(),
56
+ "DilationRatio" : self.getDilationRatio(),
57
+ "ResidualStrength" : self.getResidualStrength(),
58
+ "ApplySSRShearStrengthReduction" : self.getApplySSRShearStrengthReduction(),
59
+ }